-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
85 lines (73 loc) · 2.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
import subprocess
def get_git_revision_hash():
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8')
def get_git_revision_short_hash():
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])
with open('README.md', 'r') as fp:
readme = fp.read()
pkgs = find_packages('src', exclude=['data'])
print('found these packages:', pkgs)
schema_dir = 'schema'
# reqs_re = re.compile("[<=>]+")
# with open('requirements.txt', 'r') as fp:
# reqs = [reqs_re.split(x.strip())[0] for x in fp.readlines()]
reqs = [
'numpy',
'scipy',
'scikit-learn',
'torch_optimizer',
#'scikit-bio',
'hdmf',
'wandb',
]
print(reqs)
setup_args = {
'version': '0.0.1',
'name': 'deep-taxon',
'description': 'A package for Exabiome code. Built from revisions ' + get_git_revision_hash(),
'long_description': readme,
'long_description_content_type': 'text/x-rst; charset=UTF-8',
'author': 'Andrew Tritt',
'author_email': '[email protected]',
'url': 'http://github.com/exabiome/deep-taxon',
'license': "BSD",
'install_requires': reqs,
'packages': pkgs,
'package_dir': {'': 'src'},
'package_data': {'deep_taxon.sequence': ["%s/*.yaml" % schema_dir, "%s/*.json" % schema_dir]},
'classifiers': [
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: BSD License",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: Unix",
"Topic :: Scientific/Engineering :: Medical Science Apps."
],
#'scripts': ['bin/deep-taxon',],
'entry_points': {
'console_scripts': [
'deep-taxon = deep_taxon:main',
],
},
'keywords': 'python '
'HDF '
'HDF5 '
'cross-platform '
'open-data '
'data-format '
'open-source '
'open-science '
'reproducible-research ',
'zip_safe': False
}
if __name__ == '__main__':
setup(**setup_args)