forked from mrJean1/PyGeodesy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
117 lines (92 loc) · 4.18 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- coding: utf-8 -*-
# The setuptools script to build, install and test a PyGeodesy distribution.
# Tested with 64-bit Python 2.7.13-16, 3.6.1-2 and 3.7.0-3 (using
# setuptools 28.8.0) but only on macOS 10.12.3-6 Sierra and 10.13.0-6
# High Sierra.
# python setup.py sdist --formats=gztar,bztar,zip # ztar,tar
# python setup.py bdist_wheel --universal # XXX
# python setup.py test
# python setup.py install
# <http://packaging.Python.org/key_projects/#setuptools>
# <http://packaging.Python.org/distributing>
# <http://docs.Python.org/2/distutils/sourcedist.html>
# <http://docs.Python.org/3.6/distutils/sourcedist.html>
# <http://setuptools.ReadTheDocs.io/en/latest/setuptools.html#developer-s-guide>
# <http://setuptools.ReadTheDocs.io/en/latest/setuptools.html#test-build-package-and-run-a-unittest-suite>
# <http://ZetCode.com/articles/packageinpython>
from setuptools import setup
__all__ = ()
__version__ = '19.04.22'
def _c2(*names):
return ' :: '.join(names)
def _long_description():
with open('README.rst', 'rb') as f:
t = f.read()
if isinstance(t, bytes):
t = t.decode('utf-8')
return t
def _version():
with open('pygeodesy/__init__.py') as f:
for t in f.readlines():
if t.startswith('__version__'):
v = t.split('=')[-1].strip().strip('\'"')
return '.'.join(map(str, map(int, v.split('.'))))
_KeyWords=('antipode', 'area', 'azimuth', 'bearing',
'cartesian', 'Cassini', 'clip', 'Cohen-Sutherland', 'conic', 'curvature',
'datum', 'development', 'distance',
'earth', 'elevation', 'ellipsoid', 'EPSG', 'equirectangular', 'Euclidean',
'GARS', 'geocentric', 'geodesy', 'geodetic', 'GeodTest',
'geographiclib', 'geohash', 'geoid', 'geoidHeight', 'GeoidHeights', 'georef',
'haversine', 'height', 'horizon', 'interpolate',
'Karney', 'Krueger', 'Krüger',
'Lambert', 'latitude', 'Lesh', 'linearize', 'longitude',
'Mercator', 'MGRS', 'nearest', 'numpy', 'n-vector', 'Nvector', 'OSGR',
'perimeter', 'polar', 'Pseudo-Mercator', 'PyGeodesy', 'PyPy',
'radii', 'radius', 'Ramer-Douglas-Peucker', 'Reumann-Witkam', 'rhumb',
'scipy', 'simplify', 'Soldner', 'sphere', 'stereographic', 'Sutherland-Hodgman',
'TMcoords', 'trigonometry', 'unroll', 'UPS', 'UTM', 'UTM/UPS',
'Vincenty', 'Visvalingam-Whyatt', 'Web-Mercator', 'WGRS', 'WGS')
setup(
name='PyGeodesy',
packages=['pygeodesy'],
description='Pure Python geodesy tools',
version=_version(),
author='Jean M. Brouwers',
author_email='[email protected]', # 'mrJean1 at Gmail dot com'
maintainer='Jean M. Brouwers',
maintainer_email='[email protected]', # 'mrJean1 at Gmail dot com'
license='MIT',
keywords=' '.join(_KeyWords),
url='http://GitHub.com/mrJean1/PyGeodesy',
long_description=_long_description(),
package_data={'pygeodesy': ['LICENSE']},
# data_files=[('docs', ['docs/*.*']),
# ('images', ['test/testRoute.jpg']),
# ('test', ['test/test*.py']),
# ('testresults', ['testresults/*.txt'])],
# data_files fails somehow, see file MANIFEST.in
test_suite='test.TestSuite',
zip_safe=False,
# <http://PyPI.org/pypi?%3Aaction=list_classifiers>
classifiers=[
_c2('Development Status', '5 - Production/Stable'),
_c2('Environment', 'Console'),
_c2('Intended Audience', 'Developers'),
_c2('License', 'OSI Approved', 'MIT License'),
_c2('Operating System', 'OS Independent'),
_c2('Programming Language', 'Python'),
_c2('Programming Language', 'Python', '2.6'),
_c2('Programming Language', 'Python', '2.7'),
_c2('Programming Language', 'Python', '3.5'),
_c2('Programming Language', 'Python', '3.6'),
_c2('Programming Language', 'Python', '3.7'),
_c2('Topic', 'Software Development'),
_c2('Topic', 'Scientific/Engineering', 'GIS'),
],
# download_url='http://GitHub.com/mrJean1/PyGeodesy',
# entry_points={},
# include_package_data=False,
# install_requires=[],
# namespace_packages=[],
# py_modules=[],
)