-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (115 loc) · 2.86 KB
/
pyproject.toml
File metadata and controls
130 lines (115 loc) · 2.86 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "zppy_interfaces"
dynamic = ["version"]
authors = [
{ name="Ryan Forsyth", email="forsyth2@llnl.gov" }
]
description = "A package for providing extra functionality on top of external packages"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.11,<3.15"
classifiers = [
# these are only for searching/browsing projects on PyPI
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
dependencies = [
"beautifulsoup4",
"lxml",
"matplotlib",
"netcdf4",
"numpy >=2.0,<3.0",
"pcmdi_metrics>=3.9.3",
"xarray >=2023.02.0",
"xcdat >=0.7.3,<1.0",
]
[project.optional-dependencies]
testing = [
"pytest",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx_rtd_theme",
"sphinx-multiversion",
]
# make sure these always match dev.yml and .pre-commit-config.yaml
qa = [
"black==25.1.0",
"flake8==7.3.0",
"flake8-isort==6.1.1",
"isort==6.0.1",
"mypy==1.18.2",
"pre-commit==4.3.0",
"types-PyYAML >=6.0.0",
]
dev = [
"tbump==6.9.0",
"ipykernel",
]
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| _build
| conda
| docs
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
[tool.pycodestyle]
max-line-length = 119
exclude = '''
/(
\.tox
| \.git
| */migrations/*
| */static/CACHE/*
| docs
| node_modules
| \.idea
| \.mypy_cache
| \.pytest_cache
| *__init__.py
| venv
)/
'''
[tool.mypy]
python_version = 3.14
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
[build-system]
requires = ["setuptools>=60"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
exclude = [ "conda*", "docs*", "tests*"]
[tool.setuptools.dynamic]
version = { attr = "zppy_interfaces.version.__version__" }
# evolution of options.entry-points
[project.scripts]
zi-global-time-series = "zppy_interfaces.global_time_series.__main__:main"
zi-pcmdi-link-observation = "zppy_interfaces.pcmdi_diags.link_observation:main"
zi-pcmdi-mean-climate = "zppy_interfaces.pcmdi_diags.pcmdi_mean_cimate:main"
zi-pcmdi-variability-modes = "zppy_interfaces.pcmdi_diags.pcmdi_variability_modes:main"
zi-pcmdi-enso = "zppy_interfaces.pcmdi_diags.pcmdi_enso:main"
zi-pcmdi-synthetic-plots = "zppy_interfaces.pcmdi_diags.pcmdi_synthetic_plots:main"
[project.urls]
Documentation = "https://docs.e3sm.org/zppy-interfaces"
"Bug Tracker" = "https://github.com/E3SM-Project/zppy-interfaces/issues"