-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
50 lines (43 loc) · 1.61 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
'''`crossify` is a Python library and command line application for drawing
street crossings lines from street centerline and sidewalk centerline data.
See project information at https://github.com/AccessMap/crossify'''
import re
from setuptools import setup, find_packages
# Get version from package __init__.py
with open('crossify/__init__.py', 'r') as f:
__version__ = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)
if not __version__:
raise RuntimeError('Cannot find version information')
doclines = __doc__.split('\n')
config = {
'name': 'crossify',
'version': __version__,
'description': ' '.join(doclines[:2]),
'long_description': '\n'.join(doclines[2:]),
'author': '',
'author_email': '',
'maintainer': '',
'maintainer_email': '',
'url': 'https://github.com/accessmap/crossify',
'license': 'MIT / Apache 2.0',
'download_url': 'https://github.com/accessmap/crossify.git',
'install_requires': ['click',
'geopandas',
'numpy',
'osmnx',
'overpass',
'Shapely'],
'packages': find_packages(),
'include_package_data': True,
'classifiers': ['Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only'],
'zip_safe': False,
'entry_points': '''
[console_scripts]
crossify=crossify.__main__:crossify
'''
}
setup(test_suite='nose.collector',
**config)