-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
47 lines (42 loc) · 1.54 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
#!/usr/bin/env python
import os
from codecs import open
from setuptools import setup, find_packages
import imp
cmr_dir = 'hatfieldcmr'
here = os.path.abspath(os.path.dirname(__file__))
__version__ = imp.load_source('hatfieldcmr.version',
'hatfieldcmr/version.py').__version__
# get the dependencies and installs
with open(os.path.join(here, cmr_dir, 'requirements.txt'), encoding='utf-8') as f:
reqa = f.read().split('\n')
install_requires = [x.strip() for x in reqa if 'git+' not in x]
fname = os.path.join(here, 'requirements-dev.txt')
if os.path.exists(fname):
with open(os.path.join(here, 'requirements-dev.txt'),
encoding='utf-8') as f:
reqs = f.read().split('\n')
tests_require = [x.strip() for x in reqs if 'git+' not in x]
else:
tests_require = []
console_scripts = ['modis-pds = modispds.main:cli']
setup(
name='hatfieldcmr',
version=__version__,
author='Matthew Fung (mfung)',
description='Query, download, save MODIS data',
url='https://git.hatfieldgroup.net/phac9442/phac9442-earthdata',
license='Hatfield',
classifiers=[
'Topic :: Scientific/Engineering :: GIS',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: Freeware',
'Programming Language :: Python :: 3.7',
],
packages=find_packages(exclude=['docs', 'test']),
include_package_data=True,
entry_points={'console_scripts': console_scripts},
install_requires=install_requires,
tests_require=tests_require,
)