11[build-system ]
22requires = [
3- " Cython>=0.29" ,
4- " numpy>=2.0.0" ,
5- " setuptools>=77.0.1" ,
6- " setuptools_scm[toml]>=3.4" ,
3+ " Cython>=0.29" ,
4+ " numpy>=2.0.0" ,
5+ " setuptools>=77.0.1" ,
6+ " setuptools_scm[toml]>=3.4" ,
77]
88build-backend = " setuptools.build_meta"
99
1010[project ]
1111name = " netCDF4"
1212description = " Provides an object-oriented python interface to the netCDF version 4 library"
13- authors = [
14- {name = " Jeff Whitaker" , email = " whitaker.jeffrey@gmail.com" },
15- ]
13+ authors = [{ name = " Jeff Whitaker" , email = " whitaker.jeffrey@gmail.com" }]
1614requires-python = " >=3.10"
1715keywords = [
18- " numpy" , " netcdf" , " data" , " science" , " network" , " oceanography" ,
19- " meteorology" , " climate" ,
16+ " numpy" ,
17+ " netcdf" ,
18+ " data" ,
19+ " science" ,
20+ " network" ,
21+ " oceanography" ,
22+ " meteorology" ,
23+ " climate" ,
2024]
2125license = " MIT"
2226license-files = [" LICENSE" ]
2327classifiers = [
24- " Development Status :: 3 - Alpha" ,
25- " Programming Language :: Python :: 3" ,
26- " Programming Language :: Python :: 3.10" ,
27- " Programming Language :: Python :: 3.11" ,
28- " Programming Language :: Python :: 3.12" ,
29- " Programming Language :: Python :: 3.13" ,
30- " Programming Language :: Python :: 3.14" ,
31- " Intended Audience :: Science/Research" ,
32- " Topic :: Software Development :: Libraries :: Python Modules" ,
33- " Topic :: System :: Archiving :: Compression" ,
34- " Operating System :: OS Independent" ,
35- ]
36- dependencies = [
37- " cftime" ,
38- " certifi" ,
39- " numpy" ,
28+ " Development Status :: 3 - Alpha" ,
29+ " Programming Language :: Python :: 3" ,
30+ " Programming Language :: Python :: 3.10" ,
31+ " Programming Language :: Python :: 3.11" ,
32+ " Programming Language :: Python :: 3.12" ,
33+ " Programming Language :: Python :: 3.13" ,
34+ " Programming Language :: Python :: 3.14" ,
35+ " Intended Audience :: Science/Research" ,
36+ " Topic :: Software Development :: Libraries :: Python Modules" ,
37+ " Topic :: System :: Archiving :: Compression" ,
38+ " Operating System :: OS Independent" ,
4039]
40+ dependencies = [" cftime" , " certifi" , " numpy" ]
4141dynamic = [" version" ]
4242
4343[project .optional-dependencies ]
44- tests = [
45- " Cython" ,
46- " packaging" ,
47- " pytest" ,
48- " typing-extensions>=4.15.0" ,
49- ]
50- parallel = [
51- " mpi4py" ,
52- ]
44+ tests = [" Cython" , " packaging" , " pytest" , " typing-extensions>=4.15.0" ]
45+ parallel = [" mpi4py" ]
5346
5447[project .readme ]
5548text = """ \
@@ -81,10 +74,7 @@ where = ["src"]
8174
8275[tool .pytest .ini_options ]
8376pythonpath = [" test" ]
84- filterwarnings = [
85- " error" ,
86- " ignore::UserWarning" ,
87- ]
77+ filterwarnings = [" error" , " ignore::UserWarning" ]
8878
8979[tool .mypy ]
9080files = [" src/netCDF4" ]
@@ -97,32 +87,21 @@ explicit_package_bases = true
9787
9888[[tool .mypy .overrides ]]
9989ignore_missing_imports = true
100- module = [
101- " cftime.*" ,
102- " cython.*" ,
103- " filter_availability" ,
104- " matplotlib.*"
105- ]
90+ module = [" cftime.*" , " cython.*" , " filter_availability" , " matplotlib.*" ]
10691
10792[tool .cibuildwheel ]
10893build-verbosity = 1
10994build-frontend = " build"
110- skip = [
111- " *-musllinux*" ,
112- " cp314t-*" ,
113- ]
95+ skip = [" *-musllinux*" , " cp314t-*" ]
11496test-extras = " tests"
115- test-sources = [
116- " test" ,
117- " pyproject.toml"
118- ]
97+ test-sources = [" test" , " pyproject.toml" ]
11998test-command = [
120- ''' python -c "import netCDF4; print(f'netCDF4 v{netCDF4.__version__}')"''' ,
121- " pytest -s -rxs -v test" ,
99+ ''' python -c "import netCDF4; print(f'netCDF4 v{netCDF4.__version__}')"''' ,
100+ " pytest -s -rxs -v test" ,
122101]
123102manylinux-x86_64-image = " ghcr.io/ocefpaf/manylinux_2_28_x86_64-netcdf"
124103manylinux-aarch64-image = " ghcr.io/ocefpaf/manylinux_2_28_aarch64-netcdf"
125- environment = {NETCDF4_LIMITED_API = " 1" }
104+ environment = { NETCDF4_LIMITED_API = " 1" }
126105
127106[tool .cibuildwheel .macos ]
128107# https://cibuildwheel.pypa.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocate
@@ -140,19 +119,24 @@ repair-wheel-command = [
140119
141120[[tool .cibuildwheel .overrides ]]
142121select = " *linux*"
143- environment = {NETCDF_PLUGIN_DIR = " /usr/local/hdf5/lib/plugin/" }
122+ environment = { NETCDF_PLUGIN_DIR = " /usr/local/hdf5/lib/plugin/" }
144123
145124[[tool .cibuildwheel .overrides ]]
146125select = " *-macosx_x86_64"
147126inherit.environment = " append"
148- environment = {MACOSX_DEPLOYMENT_TARGET = " 13.0" ,HDF5_DIR = " /Users/runner/micromamba/envs/build" ,netCDF4_DIR = " /Users/runner/micromamba/envs/build" ,PATH = " ${PATH}:/Users/runner/micromamba/envs/build/bin" ,NETCDF_PLUGIN_DIR = " /Users/runner/micromamba/envs/build/hdf5/lib/plugin" }
127+ environment = { MACOSX_DEPLOYMENT_TARGET = " 13.0" , HDF5_DIR = " /Users/runner/micromamba/envs/build" , netCDF4_DIR = " /Users/runner/micromamba/envs/build" , PATH = " ${PATH}:/Users/runner/micromamba/envs/build/bin" , NETCDF_PLUGIN_DIR = " /Users/runner/micromamba/envs/build/hdf5/lib/plugin" }
149128
150129[[tool .cibuildwheel .overrides ]]
151130select = " *-macosx_arm64"
152131inherit.environment = " append"
153- environment = {MACOSX_DEPLOYMENT_TARGET =" 14.0" ,HDF5_DIR =" /Users/runner/micromambe/envs/build" ,netCDF4_DIR =" /Users/runner/micromambe/envs/build" ,PATH =" ${PATH}:/Users/runner/micromamba/envs/build/bin" ,NETCDF_PLUGIN_DIR =" /Users/runner/micromamba/envs/build/hdf5/lib/plugin" }
132+ environment = { MACOSX_DEPLOYMENT_TARGET = " 14.0" , HDF5_DIR = " /Users/runner/micromambe/envs/build" , netCDF4_DIR = " /Users/runner/micromambe/envs/build" , PATH = " ${PATH}:/Users/runner/micromamba/envs/build/bin" , NETCDF_PLUGIN_DIR = " /Users/runner/micromamba/envs/build/hdf5/lib/plugin" }
133+
134+ [[tool .cibuildwheel .overrides ]]
135+ select = " *-win_amd64"
136+ inherit.environment = " append"
137+ environment = { HDF5_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' , netCDF4_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library' , PATH = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\bin;${PATH}' , NETCDF_PLUGIN_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\hdf5\\lib\\plugin' }
154138
155139[[tool .cibuildwheel .overrides ]]
156- select = " *-win_* "
140+ select = " *-win_arm64 "
157141inherit.environment = " append"
158- environment = {HDF5_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library ' , netCDF4_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library ' , PATH = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\ bin;${PATH}' , NETCDF_PLUGIN_DIR = ' C:\\\\Users\\runneradmin\\micromamba\\envs\\build\\Library\\hdf5\\lib\\plugin ' }
142+ environment = { HDF5_DIR = ' C:\\\\vcpkg\\installed\\arm64-windows ' , netCDF4_DIR = ' C:\\\\vcpkg\\installed\\arm64-windows ' , PATH = ' C:\\\\vcpkg\\installed\\arm64-windows\\ bin;${PATH}' }
0 commit comments