-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup.py
77 lines (62 loc) · 2.28 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
69
70
71
72
73
74
75
76
77
"""
geovoronoi setuptools based setup module
"""
import os
from setuptools import setup
GITHUB_URL = 'https://github.com/WZBSocialScienceCenter/geovoronoi'
__title__ = 'geovoronoi'
__version__ = '0.4.0'
__author__ = 'Markus Konrad'
__license__ = 'Apache License 2.0'
here = os.path.abspath(os.path.dirname(__file__))
DEPS_BASE = ['numpy>=1.19.0', 'scipy>=1.5.0', 'shapely>=1.7.0']
DEPS_EXTRA = {
'plotting': ['matplotlib>=3.3.0', 'geopandas>=0.8.0', 'descartes>=1.1.0'],
'test': ['pytest>=6.2.0', 'pytest-mpl>=0.12', 'hypothesis>=6.0.0', 'tox>=3.21.0'],
'develop': ['ipython>=7.19.0', 'twine>=3.3.0'],
}
DEPS_EXTRA['all'] = []
for k, deps in DEPS_EXTRA.items():
if k != 'all':
DEPS_EXTRA['all'].extend(deps)
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=__title__,
version=__version__,
description='a package to create and plot Voronoi regions in geographic areas',
long_description=long_description,
long_description_content_type='text/markdown',
url=GITHUB_URL,
project_urls={
'Source': GITHUB_URL,
'Tracker': GITHUB_URL + '/issues',
},
author='Markus Konrad',
author_email='[email protected]',
license='Apache 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords='voronoi tesselation gis geographic area visualization plotting',
packages=['geovoronoi'],
# include_package_data=True,
python_requires='>=3.6',
install_requires=DEPS_BASE,
extras_require=DEPS_EXTRA
)