3 from setuptools import setup
8 # workaround issue on OSX or --user installs, where sys.prefix is not an installable location
9 if os.access(sys.prefix, os.W_OK | os.X_OK):
10 data_prefix = sys.prefix
14 # PyPI accepts reST not Markdown
15 if shutil.which('pandoc'):
16 print('Using reST README')
18 readme = subprocess.check_output(['pandoc', '--from=markdown', '--to=rst', 'README.md'],
19 universal_newlines=True)
21 print('Using Markdown README')
22 with open('README.md') as fp:
25 setup(name='fdroidserver',
27 description='F-Droid Server Tools',
28 long_description=readme,
29 author='The F-Droid Project',
30 author_email='team@f-droid.org',
31 url='https://f-droid.org',
33 packages=['fdroidserver', 'fdroidserver.asynchronousfilereader'],
34 scripts=['fdroid', 'fd-commit', 'makebuildserver'],
36 (data_prefix + '/share/doc/fdroidserver/examples',
37 ['buildserver/config.buildserver.py',
39 'examples/fdroid-icon.png',
40 'examples/makebuildserver.config.py',
41 'examples/opensc-fdroid.cfg',
42 'examples/public-read-only-s3-bucket-policy.json',
43 'examples/template.yml']),
45 python_requires='>=3.4',
52 'apache-libcloud >= 0.14.1',
57 'ruamel.yaml >= 0.13',
58 'requests >= 2.5.2, != 2.11.0, != 2.12.2, != 2.18.0',
59 'docker-py >= 1.9, < 2.0',
62 'Development Status :: 4 - Beta',
63 'Intended Audience :: Developers',
64 'Intended Audience :: Information Technology',
65 'Intended Audience :: System Administrators',
66 'Intended Audience :: Telecommunications Industry',
67 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
68 'Operating System :: POSIX',
69 'Operating System :: MacOS :: MacOS X',
70 'Operating System :: Unix',