-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
60 lines (54 loc) · 1.7 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
# Inspired by the EMPress setup.py file
import ast
import re
from setuptools import find_packages, setup
# version parsing from __init__ pulled from Flask's setup.py
# https://github.com/mitsuhiko/flask/blob/master/setup.py
_version_re = re.compile(r"__version__\s+=\s+(.*)")
with open("birdman/__init__.py", "rb") as f:
hit = _version_re.search(f.read().decode("utf-8")).group(1)
version = str(ast.literal_eval(hit))
classifiers = """
Development Status :: 3 - Alpha
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Intended Audience :: Science/Research
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Topic :: Scientific/Engineering :: Bio-Informatics
"""
short_desc = (
"Framework for differential microbiome abundance using Bayesian "
"inference"
)
with open("README.md") as f:
long_description = f.read()
setup(
name="birdman",
author="Gibraan Rahman",
author_email="[email protected]",
description=short_desc,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gibsramen/BIRDMAn",
version=version,
license="BSD-3-Clause",
packages=find_packages(),
include_package_data=True,
package_data={"": ["*.stan"]},
install_requires=[
"numpy",
"cmdstanpy>=1.0.1",
"scipy",
"biom-format",
"patsy",
"xarray",
"pandas",
"arviz>=0.11.3",
"matplotlib"
],
extras_require={"dev": ["pytest", "scikit-bio", "sphinx"]},
classifiers=[s.strip() for s in classifiers.split('\n') if s]
)