-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
104 lines (90 loc) · 3.26 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# import os
# import sys
# try:
# from setuptools import setup
# except ImportError:
# sys.exit('ERROR: setuptools is required.\n')
# try: # for pip >= 10
# from pip._internal.req import parse_requirements
# except ImportError: # for pip <= 9.0.3
# from pip.req import parse_requirements
# # try:
# # from pip.req import parse_requirements
# # except ImportError:
# # sys.exit('ERROR: pip is required.\n')
# if os.environ.get('READTHEDOCS', None):
# # Set empty install_requires to get install to work on readthedocs
# install_requires = []
# else:
# if sys.version_info[0] > 2:
# req_file = 'requirements.txt'
# else:
# req_file = 'requirements2.txt'
# try:
# reqs = parse_requirements(req_file, session=False)
# except TypeError:
# reqs = parse_requirements(req_file)
# try:
# install_requires = [str(r.req) for r in reqs]
# except AttributeError:
# install_requires = [str(r.requirement) for r in reqs]
# # read version
# exec(open('abutils/version.py').read())
# config = {
# 'description': 'Utilities for analysis of antibody NGS data',
# 'author': 'Bryan Briney',
# 'url': 'https://www.github.com/briney/abutils',
# 'author_email': 'briney@scripps.edu',
# 'version': __version__,
# 'install_requires': install_requires,
# 'packages': ['abutils'],
# 'scripts': [],
# 'name': 'abutils',
# 'include_package_data': True,
# 'classifiers': ['License :: OSI Approved :: MIT License',
# 'Programming Language :: Python :: 3.6',
# 'Programming Language :: Python :: 3.7',
# 'Programming Language :: Python :: 3.8',
# 'Topic :: Scientific/Engineering :: Bio-Informatics']
# }
# setup(**config)
import os
from setuptools import setup, find_packages
# read version
version_file = os.path.join(os.path.dirname(__file__), "abutils", "version.py")
with open(version_file) as f:
exec(f.read())
# read requirements
with open("requirements.txt") as f:
requirements = f.read().splitlines()
# read long description
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="abutils",
version=__version__,
author="Bryan Briney",
author_email="briney@scripps.edu",
description="Utilities for analysis of adaptive immune receptor repertoire (AIRR) data",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/briney/abutils",
packages=find_packages(),
install_requires=requirements,
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
# 'Programming Language :: Python :: 3.6',
# 'Programming Language :: Python :: 3.7',
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
python_requires=">=3.8",
)