forked from Ouranosinc/xclim
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·107 lines (96 loc) · 2.68 KB
/
setup.py
File metadata and controls
executable file
·107 lines (96 loc) · 2.68 KB
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
101
102
103
104
105
106
107
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
NAME = "xclim"
DESCRIPTION = "Derived climate variables built with xarray."
URL = "https://github.com/Ouranosinc/xclim"
AUTHOR = "Travis Logan"
AUTHOR_EMAIL = "logan.travis@ouranos.ca"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = "0.26.2-beta"
LICENSE = "Apache Software License 2.0"
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
requirements = [
"numpy>=1.16",
"xarray>=0.17",
"scipy>=1.2",
"numba",
"pandas>=0.23",
"cftime>=1.4.1",
"dask[array]>=2.6",
"pint>=0.9",
"bottleneck~=1.3.1",
"boltons>=20.1",
"scikit-learn>=0.21.3",
"Click",
"packaging>=20.0",
"pyyaml",
"jsonpickle",
]
setup_requirements = ["pytest-runner", "wheel"]
test_requirements = ["pytest", "tox", "xdoctest", "pooch"]
docs_requirements = [
"sphinx",
"sphinx-rtd-theme",
"nbsphinx",
"ipython",
"ipykernel",
"jupyter_client",
"matplotlib",
"netCDF4",
"nc-time-axis",
"distributed>=2.0",
"pooch",
]
gis_requirements = ["clisops>=0.4.0"]
dev_requirements = []
with open("requirements_dev.txt") as dev:
for dependency in dev.readlines():
dev_requirements.append(dependency)
KEYWORDS = "xclim climate climatology netcdf gridded analysis"
setup(
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Atmospheric Science",
],
description=DESCRIPTION,
python_requires=REQUIRES_PYTHON,
install_requires=requirements,
license=LICENSE,
long_description=readme + "\n\n" + history,
long_description_content_type="text/x-rst",
include_package_data=True,
keywords=KEYWORDS,
name=NAME,
packages=find_packages(),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
entry_points="""
[console_scripts]
xclim=xclim.cli:cli
""",
extras_require={
"docs": docs_requirements,
"dev": dev_requirements,
"gis": gis_requirements,
},
url=URL,
version=VERSION,
zip_safe=False,
)