forked from brooksandrew/postman_problems
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (55 loc) · 2.37 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
from setuptools import setup, find_packages
def read(fname):
"""
Utility function to read the README file.
Used for the long_description. It's nice, because now 1) we have a top level README file and 2) it's easier to
type in the README file than to put a raw string in below ...
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='postman_problems',
version='0.4',
author='Andrew Brooks',
author_email='[email protected]',
description='Solutions to Postman graph optimization problems: Chinese and Rural Postman problems',
license='MIT License',
keywords='chinese postman problem networkx optimization network graph arc routing',
url='https://github.com/brooksandrew/postman_problems',
download_url='https://github.com/brooksandrew/postman_problems/archive/v0.3.tar.gz',
packages=find_packages(),
long_description=read('README.rst'),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: MIT License'
],
package_data={
'postman_problems': [
'postman_problems/examples/sleeping_giant/edgelist_sleeping_giant.csv',
'postman_problems/examples/sleeping_giant/nodelist_sleeping_giant.csv',
'postman_problems/examples/seven_bridges/edgelist_seven_bridges.csv'
]
},
include_package_data=True,
entry_points={
'console_scripts': [
'chinese_postman=postman_problems.postman_chinese:chinese_postman',
'rural_postman=postman_problems.postman_rural:rural_postman',
'chinese_postman_sleeping_giant=postman_problems.examples.sleeping_giant.cpp_sleeping_giant:main',
'rural_postman_sleeping_giant=postman_problems.examples.sleeping_giant.rpp_sleeping_giant:main',
'chinese_postman_seven_bridges=postman_problems.examples.seven_bridges.cpp_seven_bridges:main',
'rural_postman_star=postman_problems.examples.star.rpp_star:main'
]
},
python_requires='>=2.7',
install_requires=[
'pandas',
'networkx==2.0'
],
extras_require={
'viz': ['imageio', 'matplotlib', 'graphviz', 'tqdm'],
'test': ['pytest', 'pytest-cov', 'pytest-console-scripts']
}
)