-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
108 lines (100 loc) · 2.74 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
101
102
103
104
105
106
107
108
import io
import os
import re
from setuptools import find_packages, setup
import versioneer
def read(filename):
filename = os.path.join(os.path.dirname(__file__), filename)
text_type = type("")
with io.open(filename, mode="r", encoding="utf-8") as fd:
return re.sub(text_type(r":[a-z]+:`~?(.*?)`"), text_type(r"``\1``"), fd.read())
docs_require = read("doc/requirements.txt").splitlines()
setup(
name="pymorize",
python_requires=">=3.9, <4",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url="https://github.com/pgierz/pymorize",
license="MIT",
author="Paul Gierz",
author_email="pgierz@awi.de",
description="Makes CMOR Simple",
long_description=read("README.rst"),
package_dir={"": "src"},
packages=find_packages(where="src", exclude=("tests",)),
install_requires=[
"bokeh",
"cerberus",
"cf_xarray",
"cftime",
"chemicals",
"click-loguru",
"dask",
"dask_jobqueue",
"deprecation",
"distributed",
"dpath",
"everett[yaml]",
"flexparser < 0.4", # NOTE(PG): See https://tinyurl.com/ypf99xnh
"flox",
"h5netcdf",
"imohash",
"netcdf4", # NOTE(PG): Shouldn't be a prereq for xarray?
"numbagg",
"pendulum",
"pint-xarray",
"prefect[dask]",
"pyyaml",
"questionary",
"randomname",
"semver",
"rich-click",
"streamlit",
"tqdm",
"versioneer",
"xarray",
],
extras_require={
"dev": [
"black",
"dill",
"flake8",
"isort",
"pooch",
"pre-commit",
"pyfakefs",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
"pytest-xdist",
"sphinx",
"sphinx_rtd_theme",
"yamllint",
],
"doc": docs_require,
},
entry_points={
"console_scripts": [
"pymorize=pymorize.cli:main",
],
"pymorize.cli_subcommands": [
"plugins=pymorize.plugins:plugins",
"externals=pymorize.externals:externals",
],
},
include_package_data=True,
package_data={
"pymorize": ["data/*.yaml"],
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)