[node-patches] Change in ovirt-node[master]: Add PyPi setup.py

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 11 20:09:34 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: Add PyPi setup.py
......................................................................

Add PyPi setup.py

Change-Id: Ib0a1d753c5f92cef4c93ce646e1e9b6276e266b1
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/Makefile
A scripts/tui/src/setup.py
2 files changed, 40 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/90/9890/1

diff --git a/scripts/tui/src/Makefile b/scripts/tui/src/Makefile
index 54a930c..8f9b3c6 100644
--- a/scripts/tui/src/Makefile
+++ b/scripts/tui/src/Makefile
@@ -1,7 +1,26 @@
 
 PYTHONSOURCES=$(shell find . -name \*.py -not -path */hacks.py)
 XMLSOURCES=$(shell find . -name \*.xml -or -name \*.xsl)
-CLEANFILES=$(shell find . -name \*.pyc -o -name \*.pyo -o -name \*~)
+CLEANFILES=$(shell find . -name \*.pyc -o -name \*.pyo -o -name \*~ -o -name MANIFEST)
+
+ifndef python
+python := "python"
+endif
+
+all:
+	@echo targets: dist, install
+
+manifest:
+	find . -name \*.py > MANIFEST
+
+dist: manifest
+	${python} setup.py sdist
+
+build:
+	:
+
+install: manifest
+	${python} setup.py install ${root} ${lib}
 
 check-local: doctests pep8 pyflakes
 	@echo -e "---\n Passed.\n---"
diff --git a/scripts/tui/src/setup.py b/scripts/tui/src/setup.py
new file mode 100644
index 0000000..742e7b9
--- /dev/null
+++ b/scripts/tui/src/setup.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+from distutils.core import setup
+
+# bump version
+setup(name='ovirt-node-molch',
+    version='0.0.1',
+    description='oVirt Node COnfiguration TUI',
+    author='Fabian Deutsch',
+    author_email='fabiand at fedoraproject.org',
+    url='http://example.com',
+    license="GPLv2+",
+    packages=[
+        'ovirt',
+        'ovirt.node',
+        'ovirt.node.ui',
+        'ovirt.node.utils',
+        'ovirt.node.plugins',
+        ]
+)


--
To view, visit http://gerrit.ovirt.org/9890
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0a1d753c5f92cef4c93ce646e1e9b6276e266b1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list