setup.py

changeset 135
45c1a38f8709
parent 118
aadd60a24bc8
child 146
e79cc90c7798
--- a/setup.py	Sun Dec 05 13:09:12 2021 +0200
+++ b/setup.py	Sun Dec 05 13:34:02 2021 +0200
@@ -1,20 +1,32 @@
-from setuptools import setup
-
-APP = ['borgend.py']
-DATA_FILES = []
-OPTIONS = {
-    'argv_emulation': False,
-    'plist': {
-        'LSUIElement': True,
-    },
-    'packages': ['rumps', 'keyring', 'yaml'],
-    'includes': ['xdg'],
-    'excludes': ['wx', 'PyQt5', 'matplotlib', 'numpy', 'scipy'],
-}
+from setuptools import setup, find_packages
 
 setup(
-    app=APP,
-    data_files=DATA_FILES,
-    options={'py2app': OPTIONS},
+    name = 'borgend',
+    version = '0.1.0',
+    author = 'Tuomo Valkonen',
+    author_email = 'tuomov@iki.fi',
+    url = 'https://tuomov.iki.fi/software/borgend/',
+    packages = ['borgend'],
+    data_files=[],
+    entry_points= {
+        "console_scripts": ["borgend = borgend.__main__:main"]
+    },
+    #setup_requires=['py2app'],
+    install_requires=[
+        "rumps",
+        "keyring",
+        "PyYAML",
+        "xdg;platform_system!='darwin'",
+    ],
+    app=['borgend/__main__.py'],
     setup_requires=['py2app'],
+    options={
+        'py2app': {
+            'argv_emulation': False,
+            'plist': {
+                'LSUIElement': True,
+            },
+            'excludes': ['wx', 'matplotlib', 'numpy', 'scipy', 'sip'],
+        }
+    }
 )

mercurial