-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (51 loc) · 1.86 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
import os
import re
from io import open
from setuptools import find_packages, setup
def read(f):
return open(f, "r", encoding="utf-8").read()
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(
os.path.join(
os.path.dirname(os.path.abspath(__file__)),
os.path.join(package, "__init__.py"),
)
).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version("dbmi_client")
setup(
name="django-dbmi-client",
version=version,
url="https://github.com/hms-dbmi/django-dbmi-client",
author="HMS DBMI Tech-core",
author_email="[email protected]",
packages=find_packages(exclude=["tests*"]),
license="Creative Commons Attribution-Noncommercial-Share Alike license",
install_requires=read("requirements.txt").splitlines(),
tests_require=read("requirements-test.txt").splitlines(),
extras_require={
"test": read("requirements-test.txt").splitlines(),
"dev": read("requirements-dev.txt").splitlines(),
},
test_suite="dbmi_client.tests.runtests.main",
include_package_data=True,
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License", # example license
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
)