forked from tsutterley/IS2view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (57 loc) · 2.13 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
import os
from setuptools import setup, find_packages
# package description and keywords
description = ('Interactive visualization and data extraction tool for the '
'ICESat-2 ATL14/15 Gridded Land Ice Height Products')
keywords = 'ICESat-2, elevation, digital elevation models, ipython, jupyter, graphics'
# 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"
# install requirements and dependencies
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
install_requires = []
else:
# get install requirements
with open('requirements.txt', mode='r', encoding='utf8') as fh:
install_requires = [line.split().pop(0) for line in fh.read().splitlines()]
# get version
with open('version.txt', mode='r', encoding='utf8') as fh:
fallback_version = fh.read()
# semantic version configuration for setuptools-scm
setup_requires = ["setuptools_scm"]
use_scm_version = {
"relative_to": __file__,
"local_scheme": "node-and-date",
"version_scheme": "python-simplified-semver",
"fallback_version":fallback_version,
}
setup(
name='IS2view',
description=description,
long_description=long_description,
long_description_content_type=long_description_content_type,
url='https://github.com/tsutterley/IS2view',
author='Tyler Sutterley',
author_email='tsutterl@uw.edu',
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,
setup_requires=setup_requires,
use_scm_version=use_scm_version,
include_package_data=True,
)