Debian Codegraph @

setup.py

raw ◀ ▶
1 Debian patch touch this file
1 try:
2 from setuptools import setup, find_packages
3 except ImportError:
4 from distutils.core import setup
5
6 from distutils.command.install import install
7 import os
8
9
10 class post_install(install):
11 def run(self):
12 install.run(self)
13 from biomaj.schema_version import SchemaVersion
14 SchemaVersion.migrate_pendings()
15 SchemaVersion.add_property(prop='desc', cfg='db.fullname')
16 SchemaVersion.set_version()
17
18 here = os.path.abspath(os.path.dirname(__file__))
19 try:
20 with open(os.path.join(here, 'README.md')) as f:
21 README = f.read()
22 with open(os.path.join(here, 'CHANGES.txt')) as f:
23 CHANGES = f.read()
24 except UnicodeDecodeError:
25 with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
26 README = f.read()
27 with open(os.path.join(here, 'CHANGES.txt'), encoding='utf-8') as f:
28 CHANGES = f.read()
29
30
31 config = {
32 'description': 'BioMAJ',
33 'long_description': README + '\n\n' + CHANGES,
34 'long_description_content_type': 'text/markdown',
35 'author': 'Olivier Sallou',
36 'url': 'http://biomaj.genouest.org',
37 'download_url': 'http://biomaj.genouest.org',
38 'author_email': '[email protected]',
39 'version': '3.1.24',
40 'classifiers': [
41 # How mature is this project? Common values are
42 # 3 - Alpha
43 # 4 - Beta
44 # 5 - Production/Stable
45 'Development Status :: 5 - Production/Stable',
46 'Environment :: Console',
47 'Natural Language :: English',
48 'Operating System :: POSIX :: Linux',
49 # Indicate who your project is intended for
50 'Intended Audience :: Science/Research',
51 'Topic :: Scientific/Engineering :: Bio-Informatics',
52 # Pick your license as you wish (should match "license" above)
53 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
54 # Specify the Python versions you support here. In particular, ensure
55 # that you indicate whether you support Python 2, Python 3 or both.
56 'Programming Language :: Python :: 3',
57 'Programming Language :: Python :: 3.6'
58 ],
59 'install_requires': [
60 'biomaj_cli',
61 'biomaj_core',
62 'biomaj_user',
63 'biomaj_download',
64 'biomaj_process',
65 'pymongo >=3.2, <4',
66 'pycurl',
67 'py-bcrypt',
68 'tabulate',
69 'requests',
70 'redis',
71 'elasticsearch',
72 'influxdb',
73 'Yapsy==1.12.2',
74 'packaging'
75 ],
76 'tests_require': ['pytest', 'mock'],
77 'packages': find_packages(),
78 'include_package_data': True,
79 'scripts': ['scripts/biomaj_migrate_database.py'],
80 'name': 'biomaj',
81 #'cmdclass': {'install': post_install},
82 }
83
84 setup(**config)