-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
53 lines (48 loc) · 1.97 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
import os
from setuptools import setup, find_packages
# package description and keywords
description = ('Python tools for obtaining and working with spherical harmonic'
'coefficients from the NASA/DLR GRACE and NASA/GFZ GRACE Follow-on missions')
keywords = 'GRACE, GRACE-FO, Gravity, satellite geodesy, spherical harmonics'
# get long_description from README.rst
with open("README.rst", mode="r", encoding='utf8') as fh:
long_description = fh.read()
long_description_content_type = "text/x-rst"
# get install requirements
with open('requirements.txt', encoding='utf8') as fh:
install_requires = [line.split().pop(0) for line in fh.read().splitlines()]
# get version
with open('version.txt', encoding='utf8') as fh:
version = fh.read()
# list of all scripts to be included with package
scripts=[os.path.join('scripts',f) for f in os.listdir('scripts') if f.endswith('.py')]
scripts.append(os.path.join('gravity_toolkit','grace_date.py'))
scripts.append(os.path.join('gravity_toolkit','grace_months_index.py'))
setup(
name='gravity-toolkit',
version=version,
description=description,
long_description=long_description,
long_description_content_type=long_description_content_type,
url='https://github.com/tsutterley/gravity-toolkit',
author='Tyler Sutterley',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: MIT License',
'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',
],
keywords=keywords,
packages=find_packages(),
install_requires=install_requires,
scripts=scripts,
include_package_data=True,
)