-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·61 lines (53 loc) · 1.84 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
import codecs
import os.path
from setuptools import find_namespace_packages, setup
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md", "r") as f:
long_description = f.read()
setup(
name="tblg",
version=get_version("src/tblg/__init__.py"),
description="A command-line tool to genotype Mycobacterium tuberculosis lineage from a VCF file",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/dbespiatykh/tblg",
author="Dmitry Bespiatykh",
author_email="d.bespiatykh@gmail.com",
license="MIT",
packages=find_namespace_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
package_data={"tblg.data": ["*.tsv"]},
entry_points={"console_scripts": ["tblg = tblg.__main__:main"]},
install_requires=[
"click>=8.0.4",
"numpy>=1.23.5",
"pandas>=1.5.0",
"tabulate>=0.9.0",
"tqdm>=4.64.1",
"rich>=13.3.1",
"rich-click>=1.6.1",
"datetime>=5.1",
],
python_requires=">=3.10",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
)