File: pyproject.toml

package info (click to toggle)
netcdf4-python 1.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,612 kB
  • sloc: python: 6,075; ansic: 854; makefile: 17; sh: 2
file content (168 lines) | stat: -rw-r--r-- 5,553 bytes parent folder | download
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[build-system]
requires = [
    "Cython>=0.29",
    "numpy>=2.0.0",
    "setuptools>=77.0.1",
    "setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta"

[project]
name = "netCDF4"
description = "Provides an object-oriented python interface to the netCDF version 4 library"
authors = [
  {name = "Jeff Whitaker", email = "whitaker.jeffrey@gmail.com"},
]
requires-python = ">=3.10"
keywords = [
    "numpy", "netcdf", "data", "science", "network", "oceanography",
    "meteorology", "climate",
]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "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",
    "Intended Audience :: Science/Research",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: System :: Archiving :: Compression",
    "Operating System :: OS Independent",
]
dependencies = [
    "cftime",
    "certifi",
    "numpy>=2.3.0; platform_system == 'Windows' and platform_machine == 'ARM64'",
    "numpy>=1.21.2; platform_system != 'Windows' or platform_machine != 'ARM64'",
]
dynamic = ["version"]

[project.optional-dependencies]
tests = [
  "Cython",
  "packaging",
  "pytest",
  "typing-extensions>=4.15.0",
]
parallel = [
  "mpi4py",
]

[project.readme]
text = """\
netCDF version 4 has many features not found in earlier versions of the library,
such as hierarchical groups, zlib compression, multiple unlimited dimensions,
and new data types.  It is implemented on top of HDF5.  This module implements
most of the new features, and can read and write netCDF files compatible with
older versions of the library.  The API is modelled after Scientific.IO.NetCDF,
and should be familiar to users of that module.
"""
content-type = "text/x-rst"

[project.scripts]
nc3tonc4 = "netCDF4.utils:nc3tonc4"
nc4tonc3 = "netCDF4.utils:nc4tonc3"
ncinfo = "netCDF4.utils:ncinfo"

[project.urls]
Documentation = "https://unidata.github.io/netcdf4-python/"
Repository = "https://github.com/Unidata/netcdf4-python"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
"netCDF4.plugins" = ["*__nc*"]

[tool.setuptools_scm]

[tool.pytest.ini_options]
pythonpath = ["test"]
filterwarnings = [
    "error",
    "ignore::UserWarning",
    "ignore::RuntimeWarning",
]

[tool.mypy]
files = ["src/netCDF4"]
exclude = "utils.py"
check_untyped_defs = true
allow_redefinition = true
# next 2 lines workarounds for mypy dealing with type_guards.py
mypy_path = "test"
explicit_package_bases = true

[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
  "cftime.*",
  "cython.*",
  "filter_availability",
  "matplotlib.*"
]

[tool.cibuildwheel]
build-verbosity = 1
build-frontend = "build"
skip = [
  "*-musllinux*",
]
test-extras = "tests"
test-sources = [
  "test",
  "pyproject.toml"
]
test-command = [
    '''python -c "import netCDF4; print(f'netCDF4 v{netCDF4.__version__}')"''',
    "pytest -s -rxs -v test",
]
manylinux-x86_64-image = "ghcr.io/ocefpaf/manylinux_2_28_x86_64-netcdf"
manylinux-aarch64-image = "ghcr.io/ocefpaf/manylinux_2_28_aarch64-netcdf"
environment = {NETCDF4_LIMITED_API="1"}

[tool.cibuildwheel.macos]
# https://cibuildwheel.pypa.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocate
repair-wheel-command = """\
DYLD_FALLBACK_LIBRARY_PATH=/Users/runner/micromamba/envs/build/lib \
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} \
"""

[tool.cibuildwheel.windows]
before-build = "python -m pip install delvewheel"
repair-wheel-command = [
  "delvewheel show --include blosc.dll;zstd.dll;lz4.dll {wheel}",
  "delvewheel repair --include blosc.dll;zstd.dll;lz4.dll -w {dest_dir} {wheel}",
]

[[tool.cibuildwheel.overrides]]
select = "*linux*"
environment = {NETCDF_PLUGIN_DIR="/usr/local/hdf5/lib/plugin/"}

[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
inherit.environment = "append"
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"}

[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
inherit.environment = "append"
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"}

[[tool.cibuildwheel.overrides]]
select = "*-win_*"
inherit.environment = "append"
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'}

[[tool.cibuildwheel.overrides]]
select = "*-win_arm64"
inherit.environment = "append"
environment = { HDF5_DIR = 'C:\\\\vcpkg\\\\installed\\\\arm64-windows', netCDF4_DIR = 'C:\\\\vcpkg\\\\installed\\\\arm64-windows', PATH = 'C:\\\\vcpkg\\\\installed\\\\arm64-windows\\\\bin;${PATH}', NO_CDL = '1' }
repair-wheel-command = [
  "delvewheel show {wheel}",
  "delvewheel repair -w {dest_dir} {wheel}",
]