summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-06-17 19:30:27 +0200
committerGuido Günther <agx@sigxcpu.org>2014-06-17 19:41:39 +0200
commit17c2ee87ee338b2634d51bde18f4eeb216e562e5 (patch)
tree438f3ec08a186c89a1a6ffa63d265613990ff732
parentcb1a7367c54ae56f05cb1486006a2df8418a8e92 (diff)
Use entry pointv0.0.1
-rw-r--r--setup.py29
-rw-r--r--stagepkg/__init__.py0
-rw-r--r--[-rwxr-xr-x]stagepkg/command.py (renamed from stagepkg.py)5
3 files changed, 31 insertions, 3 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..73a4f2d
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+# vim: set fileencoding=utf-8 :
+#
+# (C) 2014 Guido Günther <agx@sigxcpu.org>
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from setuptools import setup
+
+setup(name = "stagepkg",
+ author = 'Guido Günther',
+ author_email = 'agx@sigxcpu.org',
+ packages = ['stagepkg'],
+ entry_points = {
+ 'console_scripts': [ 'stagepkg = stagepkg.command:run' ],
+ },
+)
+
+# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·:
diff --git a/stagepkg/__init__.py b/stagepkg/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/stagepkg/__init__.py
diff --git a/stagepkg.py b/stagepkg/command.py
index 732c31d..1d71f81 100755..100644
--- a/stagepkg.py
+++ b/stagepkg/command.py
@@ -4,9 +4,8 @@
"""
Move a package between repositories
-@license: GPLv2+
+@license: GPLv3+
"""
-
import errno
import re
import sys
@@ -257,7 +256,7 @@ def check_repo(path):
return True
-def main():
+def run():
pkgs = []
global simulate
retval = 0