-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (38 loc) · 1.39 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
import setuptools
# Long description and versioning code copied with modifications from
# <https://github.com/blackjax-devs/blackjax/blob/main/setup.py>
with open("README.md") as f:
long_description = f.read()
def get_version(path):
"""Get the package's version number.
We fetch the version number from the `__version__` variable located in the
package root's `__init__.py` file. This way there is only a single source
of truth for the package's version number.
"""
with open(path) as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name="StrainPGC",
version=get_version("spgc/__init__.py"),
long_description=long_description,
description="Strain-partitioned gene content inference using metagenomic data",
url="http://github.com/bsmith89/StrainPGC",
author="Byron J. Smith",
author_email="me@byronjsmith.com",
packages=setuptools.find_packages(),
install_requires=[
"xarray>=2022.0",
"netcdf4>=1.0",
"pandas>=1.0",
"scipy>=1.0",
],
dependency_links=[],
entry_points={"console_scripts": ["spgc = spgc.__main__:main"]},
zip_safe=False,
long_description_content_type="text/markdown",
)