-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (121 loc) · 2.79 KB
/
pyproject.toml
File metadata and controls
130 lines (121 loc) · 2.79 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 = "cftime"
version = "1.6.6"
description = "Time-handling functionality from netcdf4-python"
readme = "README.md"
authors = [
{ name="Jeff Whitaker", email="whitaker.jeffrey@gmail.com"}
]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Scientific/Engineering',
]
dependencies = [
"numpy>=2.3.0; platform_system == 'Windows' and platform_machine == 'ARM64'",
"numpy>=1.21.2; platform_system != 'Windows' or platform_machine != 'ARM64'",
]
requires-python = ">=3.10"
[dependency-groups]
dev = [
"check-manifest",
"coverage>=7.10.0",
"coveralls",
"cython>=0.29.20",
"pytest",
"sphinx",
"twine",
]
[build-system]
requires = [
"setuptools>=77.0.1",
"cython>=0.29.20",
"numpy>=2.0.0,<3",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.pytest.ini_options]
testpaths = "test"
addopts = [
"-ra",
"-v",
"--doctest-modules",
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
]
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::RuntimeWarning",
]
[tool.coverage.run]
source = ["src"]
relative_files = true
branch = true
plugins = [
"Cython.Coverage",
]
include = [
"src/cftime/*",
]
omit = [
"setup.py",
"docs/*",
"ci/*",
"test/*",
".eggs",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
]
[tool.check-manifest]
ignore = [
"*.yml",
".coveragerc",
".gitignore",
"README.release",
"ci",
"ci/*",
"docs",
"docs/*",
"test",
"test/*",
]
[tool.cibuildwheel]
build-verbosity = 1
skip = [
"*musllinux_aarch64*",
# Skipped due to unavailability of Python binary and NumPy for Win-ARM64
"cp310-win_arm64",
]
test-skip = [
# Emulated testing is slow, so trust that the Python 3.14 test is good enough on aarch64
# (takes about 5 minutes per wheel to build, and 5 minutes to test)
"cp3{10,11,12,13}-*_aarch64",
]
test-groups = "dev"
test-command = [
'''python -c "import cftime; print(f'cftime v{cftime.__version__}')"''',
"python -m pytest -vv {package}/test"
]
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
environment = { CFTIME_LIMITED_API = "1" }