-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.py
100 lines (89 loc) · 2.92 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
"""Typhon is a collection of tools for atmospheric research.
Typhon provides:
- reading and writing routines for ARTS XML files
- an API to run and access ARTS through Python
- conversion routines for various physical quantities
- a tool kit to collocate different data sets (e.g. satellite, ship, ...)
- different retrievals (e.g. QRNN, SPARE-ICE, ...)
- a subset of the cmocean color maps
- functions to calculate and analyse cloud masks
- various plotting utility functions
- functions for geodetic and geographical calculations
- interface to the SRTM30 global elevation model
- functions for cloudmask statistics
- and much more...
Further information on ARTS can be found on http://www.radiativetransfer.org/.
"""
import builtins
import logging
import subprocess
from codecs import open
from os.path import dirname, join
from setuptools import setup, find_packages
builtins.__TYPHON_SETUP__ = True
DOCLINES = (__doc__ or "").split("\n")
version = open(join(dirname(__file__), "typhon", "VERSION")).read().strip()
if "dev" in version:
try:
cp = subprocess.run(
["git", "describe", "--tags"], stdout=subprocess.PIPE, check=True
)
except subprocess.CalledProcessError:
logging.warning(
"Warning: could not determine version from git, "
"using version from source"
)
else:
so = cp.stdout
version = (
so.strip()
.decode("ascii")
.lstrip("v")
.replace("-", "+dev", 1)
.replace("-", ".")
)
__version__ = version
setup(
name="typhon",
author="The Typhon developers",
author_email="[email protected]",
version=__version__,
url="https://github.com/atmtools/typhon",
download_url="https://github.com/atmtools/typhon/tarball/v" + __version__,
packages=find_packages(),
license="MIT",
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
classifiers=[
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires="~=3.10",
include_package_data=True,
install_requires=[
"docutils",
"fsspec!=2023.12.0,!=2023.12.1,!=2024.3.1",
"h5netcdf",
"imageio",
"matplotlib>=1.4",
"netCDF4>=1.1.1",
"numexpr",
"numpy>=1.13",
"pandas",
"scikit-image",
"scikit-learn",
"scipy>=0.15.1",
"setuptools>=0.7.2",
"xarray>=0.10.2",
],
extras_require={
"docs": ["cartopy", "pint", "sphinx_rtd_theme"],
"tests": ["pytest", "pint"],
},
)