-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (50 loc) · 1.54 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
REQUIRED = ['click>=7.1.2',
'numpy>=1.19.2',
'matplotlib>=3.3.2',
'scipy>=1.6.1',
'networkx>=2.5']
EXTRAS = {
'testing': ['pytest>=6.1.1'],
'profiling': ['scikit-learn>=0.24.2']
}
here = os.path.abspath(os.path.dirname(__file__))
# Pull info from __init__.py.
about = {}
with open(os.path.join(here, 'shortestpaths', '__init__.py'), 'r') as fr:
info = "__name__" + fr.read().split("__name__")[1]
exec(info, about)
# Assign long_description with the README.md content.
try:
with open(os.path.join(here, 'README.md'), 'r') as fr:
long_description = fr.read()
except FileNotFoundError:
long_description = about['__description__']
setup(
name=about['__name__'],
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
license='GNU GPL3',
description=about['__description__'],
long_description=long_description,
long_description_content_type='text/markdown',
url=about['__url__'],
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
install_requires=REQUIRED,
extras_require=EXTRAS,
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
'Natural Language :: English',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Operating System :: OS Independent',
],
entry_points={
"console_scripts": [
"ksp=shortestpaths.__main__:main",
]
},
)