-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
44 lines (34 loc) · 1.24 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
import re
from setuptools import setup
_package_name = 'path4gmns'
def get_long_description():
with open('README.md', 'r') as fh:
return fh.read()
def get_version():
init_file = 'path4gmns/__init__.py'
with open(init_file, 'r') as fh:
content = fh.read()
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
if version:
return version.group(1)
raise RuntimeError('unable to find version info in __init__.py')
setup(
name=_package_name,
version=get_version(),
author='Dr. Xuesong Zhou, Dr. Peiheng Li',
author_email='[email protected], [email protected]',
description='An open-source, cross-platform, lightweight, and fast Python\
path engine for networks encoded in GMNS',
long_description=get_long_description(),
long_description_content_type='text/markdown',
url='https://github.com/jdlph/PATH4GMNS',
packages=[_package_name],
package_dir={_package_name: _package_name},
package_data={_package_name: ['bin/*']},
license='Apache License 2.0',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
)