-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (54 loc) · 1.81 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
import os
import setuptools
package_name = "bdi-viz"
package_dir = "bdiviz"
def read_readme():
with open(
os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf8"
) as file:
return file.read()
def read_version():
module_path = os.path.join(package_dir, "__init__.py")
with open(module_path) as file:
for line in file:
parts = line.strip().split(" ")
if parts and parts[0] == "__version__":
return parts[-1].strip("'").strip('"')
raise KeyError("Version not found in {0}".format(module_path))
def get_requires():
with open("requirements.txt") as fp:
dependencies = [line for line in fp if line and not line.startswith("#")]
return dependencies
long_description = read_readme()
version = read_version()
requires = get_requires()
extra_requires = {}
project_urls = {
'Documentation': 'https://bdi-viz.readthedocs.io/en/latest/',
'Project Link': 'https://vida-nyu.github.io/BDF'
}
setuptools.setup(
name=package_name,
version=version,
packages=setuptools.find_packages(),
install_requires=requires,
extras_require=extra_requires,
description="bdi-viz library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/VIDA-NYU/bdi-viz",
project_urls=project_urls,
include_package_data=True,
author="Eden Wu",
author_email="eden.wu@nyu.edu",
maintainer="Eden Wu",
maintainer_email="eden.wu@nyu.edu",
keywords=["askem", "data integration", "nyu"],
license="Apache-2.0",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering",
],
)