chiark / gitweb /
convert setup.py into working setuptools-based installer
authorHans-Christoph Steiner <hans@eds.org>
Thu, 24 Oct 2013 19:29:40 +0000 (15:29 -0400)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 24 Oct 2013 20:28:04 +0000 (21:28 +0100)
With this setup.py, its possible to install the required packages using:
  pip install -e .

The Debian packaging will also automatically get the dependencies from
install_requires.  This does not handle the generation of the docs at all.
I have not found a straightforward way to include running ./gendocs.sh in
setup.py, but its easy to run in the Debian packaging.

setup.py

index 25500175511dfee15f216e0a0af24879f766a83d..dca7645aaeaa56c9f91d4db4e8341a2735303b4b 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,25 @@
 #!/usr/bin/python
 
-from distutils.core import setup
+from setuptools import setup
 
 setup(name='FDroidServer',
       version='0.1',
       description='F-Droid Server Tools',
+      long_description=open('README').read(),
       author='The F-Droid Project',
       author_email='admin@f-droid.org',
       url='http://f-droid.org',
       packages=['fdroidserver'],
       scripts=['fdroid'],
-      data_files = [('', ['COPYING', 'config.sample.py']),
-                    ('docs', ['docs/*.texi'])
-                   ]
-     )
+      install_requires=[
+        'python-magic',
+        'PIL',
+        ],
+      classifiers=[
+        'Development Status :: 3 - Alpha',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
+        'Operating System :: POSIX',
+        'Topic :: Utilities',
+        ],
+      )