forked from IBM/ibmpairs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·66 lines (62 loc) · 1.79 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
#!/usr/bin/env python
from setuptools import setup
# define package version
version = '0.2.3'
# ... and record it for ibmpairs package
with open("ibmpairs/version.py", 'w') as f:
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))
def readme():
try:
with open('README.md') as f:
return f.read()
except:
return 'sorry, no details available'
# read required packages
with open('requirements.txt') as f:
reqPackList = [
r.rstrip() for r in list(f)
if '#' not in r
]
## optional packages
# + [
# 'geopandas',
# 'geojson',
# 'gdal',
# ]
with open('requirements-development.txt') as f:
reqPackListDev = [
r.rstrip() for r in list(f)
if '#' not in r
]
setup(
name='ibmpairs',
version=version,
description='open source Python modules for the IBM PAIRS Geoscope platform',
long_description=readme(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: GIS',
],
keywords='IBM PAIRS GIS BigGeoData',
url='https://ibmpairs.mybluemix.net',
project_urls = {
'Documentation': 'https://pairs.res.ibm.com/tutorial',
'Source': 'https://github.com/ibm/ibmpairs',
'Tracker': 'https://github.com/ibm/ibmpairs/issues',
},
author='Physical Analytics, IBM Research',
author_email='[email protected]',
maintainer='cmalbrec',
license='BSD-Clause-3',
packages=['ibmpairs','ibmpairs.external'],
install_requires=reqPackList,
test_suite='tests',
tests_require=reqPackListDev,
entry_points={
},
include_package_data=True,
zip_safe=False,
)