From: Hans-Christoph Steiner Date: Thu, 24 Oct 2013 19:29:40 +0000 (-0400) Subject: convert setup.py into working setuptools-based installer X-Git-Tag: 0.1~309 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4d79f41beaca27604b18a70454802067c48c7166;p=fdroidserver.git convert setup.py into working setuptools-based installer 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. --- diff --git a/setup.py b/setup.py index 25500175..dca7645a 100644 --- 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', + ], + )