1
1
[build-system ]
2
+ build-backend = " setuptools.build_meta"
3
+
2
4
requires = [
3
- " Cython>=0.29" ,
4
- " oldest-supported-numpy ; python_version < '3.9'" ,
5
- " numpy>=2.0.0rc1 ; python_version >= '3.9'" ,
6
- " setuptools>=61" , " setuptools_scm[toml]>=3.4"
5
+ " cython>=0.29" ,
6
+ " numpy>=2.0.0rc1; python_version>='3.9'" ,
7
+ " oldest-supported-numpy; python_version<'3.9'" ,
8
+ " setuptools>=61" ,
9
+ " setuptools-scm[toml]>=3.4" ,
7
10
]
8
- build-backend = " setuptools.build_meta"
9
11
10
12
[project ]
11
- name = " netCDF4 "
13
+ name = " netcdf4 "
12
14
description = " Provides an object-oriented python interface to the netCDF version 4 library"
15
+ readme.content-type = " text/x-rst"
16
+ readme.text = """ \
17
+ netCDF version 4 has many features not found in earlier versions of the library,
18
+ such as hierarchical groups, zlib compression, multiple unlimited dimensions,
19
+ and new data types. It is implemented on top of HDF5. This module implements
20
+ most of the new features, and can read and write netCDF files compatible with
21
+ older versions of the library. The API is modelled after Scientific.IO.NetCDF,
22
+ and should be familiar to users of that module.
23
+ """
24
+ keywords = [
25
+ " climate" ,
26
+ " data" ,
27
+ " meteorology" ,
28
+ " netcdf" ,
29
+ " network" ,
30
+ " numpy" ,
31
+ " oceanography" ,
32
+ " science" ,
33
+ ]
34
+ license = { text = " MIT" }
13
35
authors = [
14
- {
name =
" Jeff Whitaker" ,
email =
" [email protected] " },
36
+ {
name =
" Jeff Whitaker" ,
email =
" [email protected] " },
15
37
]
16
38
requires-python = " >=3.8"
17
- keywords = [
18
- " numpy" , " netcdf" , " data" , " science" , " network" , " oceanography" ,
19
- " meteorology" , " climate" ,
20
- ]
21
- license = {text = " MIT" }
22
39
classifiers = [
23
- " Development Status :: 3 - Alpha" ,
24
- " Programming Language :: Python :: 3" ,
25
- " Programming Language :: Python :: 3.8" ,
26
- " Programming Language :: Python :: 3.9" ,
27
- " Programming Language :: Python :: 3.10" ,
28
- " Programming Language :: Python :: 3.11" ,
29
- " Programming Language :: Python :: 3.12" ,
30
- " Intended Audience :: Science/Research" ,
31
- " License :: OSI Approved :: MIT License" ,
32
- " Topic :: Software Development :: Libraries :: Python Modules" ,
33
- " Topic :: System :: Archiving :: Compression" ,
34
- " Operating System :: OS Independent" ,
40
+ " Development Status :: 3 - Alpha" ,
41
+ " Intended Audience :: Science/Research" ,
42
+ " License :: OSI Approved :: MIT License" ,
43
+ " Operating System :: OS Independent" ,
44
+ " Programming Language :: Python :: 3 :: Only" ,
45
+ " Programming Language :: Python :: 3.8" ,
46
+ " Programming Language :: Python :: 3.9" ,
47
+ " Programming Language :: Python :: 3.10" ,
48
+ " Programming Language :: Python :: 3.11" ,
49
+ " Programming Language :: Python :: 3.12" ,
50
+ " Programming Language :: Python :: 3.13" ,
51
+ " Topic :: Software Development :: Libraries :: Python Modules" ,
52
+ " Topic :: System :: Archiving :: Compression" ,
35
53
]
54
+ dynamic = [ " version" ]
55
+
36
56
dependencies = [
37
- " cftime " ,
38
- " certifi " ,
39
- " numpy" ,
57
+ " certifi " ,
58
+ " cftime " ,
59
+ " numpy" ,
40
60
]
41
- dynamic = [" version" ]
42
-
43
- [project .optional-dependencies ]
44
- tests = [
45
- " Cython" ,
61
+ optional-dependencies.tests = [
62
+ " cython" ,
46
63
" packaging" ,
47
64
" pytest" ,
48
65
]
49
-
50
- [project .readme ]
51
- text = """ \
52
- netCDF version 4 has many features not found in earlier versions of the library,
53
- such as hierarchical groups, zlib compression, multiple unlimited dimensions,
54
- and new data types. It is implemented on top of HDF5. This module implements
55
- most of the new features, and can read and write netCDF files compatible with
56
- older versions of the library. The API is modelled after Scientific.IO.NetCDF,
57
- and should be familiar to users of that module.
58
- """
59
- content-type = " text/x-rst"
60
-
61
- [project .scripts ]
62
- nc3tonc4 = " netCDF4.utils:nc3tonc4"
63
- nc4tonc3 = " netCDF4.utils:nc4tonc3"
64
- ncinfo = " netCDF4.utils:ncinfo"
65
-
66
- [project .urls ]
67
- Documentation = " https://unidata.github.io/netcdf4-python/"
68
- Repository = " https://github.com/Unidata/netcdf4-python"
66
+ urls.Documentation = " https://unidata.github.io/netcdf4-python/"
67
+ urls.Repository = " https://github.com/Unidata/netcdf4-python"
68
+ scripts.nc3tonc4 = " netCDF4.utils:nc3tonc4"
69
+ scripts.nc4tonc3 = " netCDF4.utils:nc4tonc3"
70
+ scripts.ncinfo = " netCDF4.utils:ncinfo"
69
71
70
72
[tool .setuptools .packages .find ]
71
- where = [" src" ]
73
+ where = [ " src" ]
72
74
73
75
[tool .setuptools .package-data ]
74
- "netCDF4.plugins" = [" lib__nc*" ]
76
+ "netCDF4.plugins" = [ " lib__nc*" ]
75
77
76
78
[tool .setuptools_scm ]
77
79
78
80
[tool .pytest .ini_options ]
79
- pythonpath = [" test" ]
81
+ pythonpath = [ " test" ]
80
82
filterwarnings = [
81
- " error" ,
82
- " ignore::UserWarning" ,
83
+ " error" ,
84
+ " ignore::UserWarning" ,
83
85
]
84
86
85
87
[tool .mypy ]
86
- files = [" src/netCDF4" ]
88
+ files = [ " src/netCDF4" ]
87
89
exclude = " utils.py"
88
90
check_untyped_defs = true
89
91
allow_redefinition = true
@@ -97,5 +99,5 @@ module = [
97
99
" cftime.*" ,
98
100
" cython.*" ,
99
101
" filter_availability" ,
100
- " matplotlib.*"
102
+ " matplotlib.*" ,
101
103
]
0 commit comments