|
a |
|
b/setup.py |
|
|
1 |
#!/usr/bin/env python3 |
|
|
2 |
|
|
|
3 |
import setuptools |
|
|
4 |
from pathlib import Path |
|
|
5 |
|
|
|
6 |
here = Path(__file__).resolve().parent |
|
|
7 |
|
|
|
8 |
python_version_requirement = ">=3.6, <3.8" |
|
|
9 |
|
|
|
10 |
package_requirements = [ |
|
|
11 |
"importlib_resources >= 1.0", |
|
|
12 |
"loompy >= 2.0", |
|
|
13 |
"numpy >= 1.16", |
|
|
14 |
"matplotlib >= 2.0", |
|
|
15 |
"pandas >= 0.24", |
|
|
16 |
"pillow >= 5.4", |
|
|
17 |
"scikit-learn >= 0.20", |
|
|
18 |
"scipy >= 1.2", |
|
|
19 |
"seaborn >= 0.9", |
|
|
20 |
"tables >= 3.5", |
|
|
21 |
"tensorflow >= 1.15.2, < 2", |
|
|
22 |
"tensorflow-probability == 0.7" |
|
|
23 |
] |
|
|
24 |
|
|
|
25 |
documentation_requirements = [ |
|
|
26 |
"pygments >= 2.4", |
|
|
27 |
"sphinx >= 2.2" |
|
|
28 |
] |
|
|
29 |
|
|
|
30 |
extras_requirements = { |
|
|
31 |
"docs": documentation_requirements |
|
|
32 |
} |
|
|
33 |
|
|
|
34 |
about = {} |
|
|
35 |
|
|
|
36 |
with here.joinpath("scvae", "__init__.py").open(mode="r") as init_file: |
|
|
37 |
exec(init_file.read(), about) |
|
|
38 |
|
|
|
39 |
with here.joinpath("README.md").open(mode="r") as readme_file: |
|
|
40 |
readme = readme_file.read() |
|
|
41 |
|
|
|
42 |
with here.joinpath("CHANGELOG.md").open(mode="r") as changelog_file: |
|
|
43 |
changelog = changelog_file.read() |
|
|
44 |
|
|
|
45 |
setuptools.setup( |
|
|
46 |
name=about["__name__"], |
|
|
47 |
version=about["__version__"], |
|
|
48 |
author=about["__author__"], |
|
|
49 |
author_email=about["__email__"], |
|
|
50 |
description=about["__description__"], |
|
|
51 |
long_description="\n\n".join([readme, changelog]), |
|
|
52 |
long_description_content_type="text/markdown", |
|
|
53 |
url=about["__url__"], |
|
|
54 |
packages=setuptools.find_packages(), |
|
|
55 |
include_package_data=True, |
|
|
56 |
entry_points={ |
|
|
57 |
"console_scripts": ["scvae=scvae.__main__:main"], |
|
|
58 |
}, |
|
|
59 |
python_requires=python_version_requirement, |
|
|
60 |
install_requires=package_requirements, |
|
|
61 |
extras_require=extras_requirements, |
|
|
62 |
license=about["__license__"], |
|
|
63 |
classifiers=[ |
|
|
64 |
"Programming Language :: Python :: 3", |
|
|
65 |
"License :: OSI Approved :: Apache Software License", |
|
|
66 |
"Operating System :: OS Independent", |
|
|
67 |
] |
|
|
68 |
) |