Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "cftime"
3 version = "1.6.6"
4 description = "Time-handling functionality from netcdf4-python"
5 readme = "README.md"
6 authors = [
7 { name="Jeff Whitaker", email="[email protected]"}
8 ]
9 license = "MIT"
10 license-files = ["LICENSE"]
11 classifiers = [
12 'Development Status :: 5 - Production/Stable',
13 'Operating System :: MacOS :: MacOS X',
14 'Operating System :: Microsoft :: Windows',
15 'Operating System :: POSIX :: Linux',
16 'Programming Language :: Python',
17 'Programming Language :: Python :: 3',
18 'Programming Language :: Python :: 3.10',
19 'Programming Language :: Python :: 3.11',
20 'Programming Language :: Python :: 3.12',
21 'Programming Language :: Python :: 3.13',
22 'Programming Language :: Python :: 3.14',
23 'Programming Language :: Python :: 3.15',
24 'Topic :: Scientific/Engineering',
25 ]
26 dependencies = [
27 "numpy>=2.3.0; platform_system == 'Windows' and platform_machine == 'ARM64'",
28 "numpy>=1.21.2; platform_system != 'Windows' or platform_machine != 'ARM64'",
29 ]
30 requires-python = ">=3.10"
31
32 [dependency-groups]
33 dev = [
34 "check-manifest",
35 "coverage>=7.10.0",
36 "coveralls",
37 "cython>=0.29.20",
38 "pytest",
39 "sphinx",
40 ]
41
42 [build-system]
43 requires = [
44 "setuptools>=77.0.1",
45 "cython>=0.29.20",
46 "numpy>=2.0.0,<3",
47 ]
48 build-backend = "setuptools.build_meta"
49
50 [tool.setuptools]
51 package-dir = {"" = "src"}
52
53 [tool.pytest.ini_options]
54 testpaths = "test"
55 addopts = [
56 "-ra",
57 "-v",
58 "--doctest-modules",
59 ]
60 doctest_optionflags = [
61 "NORMALIZE_WHITESPACE",
62 "ELLIPSIS",
63 ]
64 filterwarnings = [
65 "error",
66 "ignore::UserWarning",
67 "ignore::RuntimeWarning",
68 ]
69
70 [tool.coverage.run]
71 source = ["src"]
72 relative_files = true
73 branch = true
74 plugins = [
75 "Cython.Coverage",
76 ]
77 include = [
78 "src/cftime/*",
79 ]
80 omit = [
81 "setup.py",
82 "docs/*",
83 "ci/*",
84 "test/*",
85 ".eggs",
86 ]
87
88 [tool.coverage.report]
89 show_missing = true
90 exclude_lines = [
91 "pragma: no cover",
92 "def __repr__",
93 "if __name__ == .__main__.:",
94 ]
95
96 [tool.check-manifest]
97 ignore = [
98 "*.yml",
99 ".coveragerc",
100 ".gitignore",
101 "README.release",
102 "ci",
103 "ci/*",
104 "docs",
105 "docs/*",
106 "test",
107 "test/*",
108 ]
109
110 [tool.cibuildwheel]
111 build-verbosity = 1
112 skip = [
113 "*musllinux_aarch64*",
114 # Skipped due to unavailability of Python binary and NumPy for Win-ARM64
115 "cp310-win_arm64",
116 ]
117
118 test-skip = [
119 # Emulated testing is slow, so trust that the Python 3.14 test is good enough on aarch64
120 # (takes about 5 minutes per wheel to build, and 5 minutes to test)
121 "cp3{10,11,12,13}-*_aarch64",
122 ]
123 test-groups = "dev"
124 test-command = [
125 '''python -c "import cftime; print(f'cftime v{cftime.__version__}')"''',
126 "python -m pytest -vv {package}/test"
127 ]
128 #manylinux-x86_64-image = "manylinux2014"
129 #manylinux-aarch64-image = "manylinux2014"
130 manylinux-x86_64-image = "manylinux_2_28"
131 manylinux-aarch64-image = "manylinux_2_28"
132 environment = { CFTIME_LIMITED_API = "1" }