forked from GNSSpy-Project/gnsspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.44 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
"""
GNSSpy setup file
Mustafa Serkan ISIK and Volkan Ozbey
"""
from setuptools import setup
import re
try:
# for pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# for pip <= 9.0.3
from pip.req import parse_requirements
def load_requirements(fname):
reqs = parse_requirements(fname, session="test")
return [str(ir.requirement) for ir in reqs]
def get_property(prop, project):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), open(project + '/__init__.py').read())
return result.group(1)
setup(
name = 'gnsspy',
packages = ["gnsspy",
"gnsspy.io",
"gnsspy.position",
"gnsspy.funcs",
"gnsspy.geodesy",
"gnsspy.doc"],
install_requires=load_requirements("requirements.txt"),
include_package_data = True,
package_data = {"gnsspy.doc": ["IGSList.txt"],
"gnsspy.io" : ["CRX2RNX","crx2rnx.exe","RNX2CMP_LICENSE.txt"]},
data_files = [("", ["LICENSE"])],
version = get_property('__version__', 'gnsspy'),
description = 'Python Toolkit for GNSS Data',
author = get_property('__author__', 'gnsspy'),
author_email = '[email protected] - [email protected]',
license = 'MIT',
url = 'https://github.com/GNSSpy-Project/gnsspy',
download_url = 'https://github.com/GNSSpy-Project/gnsspy/archive/0.1.tar.gz',
classifiers = [],
zip_safe=False
)