Skip to content

Commit df470a5

Browse files
author
Jeff Whitaker
authored
Merge pull request #1285 from Unidata/v1.6.5rel
version 1.6.5 release
2 parents 130efb0 + 87d1a3b commit df470a5

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
## News
1111
For details on the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).
1212

13+
10/20/2023: Version [1.6.5](https://pypi.python.org/pypi/netCDF4/1.6.5) released.
14+
Fix for issue #1271 (mask ignored if bool MA assinged to uint8 var), support for python 3.12, more
15+
informative error messages.
16+
1317
6/4/2023: Version [1.6.4](https://pypi.python.org/pypi/netCDF4/1.6.4) released. Now requires
1418
[certifi](https://github.com/certifi/python-certifi) to locate SSL certificates - this allows
1519
OpenDAP https URLs to work with linux wheels (issue [#1246](https://github.com/Unidata/netcdf4-python/issues/1246)).

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ dependencies = [
3939
]
4040
dynamic = ["version"]
4141

42+
[project.optional-dependencies]
43+
tests = [
44+
"Cython",
45+
"packaging",
46+
"pytest",
47+
]
48+
49+
4250
[project.readme]
4351
text = """\
4452
netCDF version 4 has many features not found in earlier versions of the library,

test/tst_multifile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from numpy import ma
66
import tempfile, unittest, os, datetime
77
import cftime
8-
from pkg_resources import parse_version
8+
from packaging.version import Version
99

1010
nx=100; ydim=5; zdim=10
1111
nfiles = 10
@@ -138,7 +138,7 @@ def runTest(self):
138138
assert_equal(T.typecode(), t.typecode())
139139
# skip this until cftime pull request #55 is in a released
140140
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
141-
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
141+
if Version(cftime.__version__) >= Version('1.0.1'):
142142
assert_array_equal(cftime.num2date(T[:], T.units, T.calendar), dates)
143143
assert_equal(cftime.date2index(datetime.datetime(1980, 1, 2), T), 366)
144144
f.close()

test/tst_multifile2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from numpy import ma
66
import tempfile, unittest, os, datetime
77
import cftime
8-
from pkg_resources import parse_version
8+
from packaging.version import Version
99

1010
nx=100; ydim=5; zdim=10
1111
nfiles = 10
@@ -106,7 +106,7 @@ def runTest(self):
106106
# Get the real dates
107107
# skip this until cftime pull request #55 is in a released
108108
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
109-
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
109+
if Version(cftime.__version__) >= Version('1.0.1'):
110110
dates = []
111111
for file in self.files:
112112
f = Dataset(file)
@@ -126,7 +126,7 @@ def runTest(self):
126126
assert_equal(T.typecode(), t.typecode())
127127
# skip this until cftime pull request #55 is in a released
128128
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
129-
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
129+
if Version(cftime.__version__) >= Version('1.0.1'):
130130
assert_array_equal(cftime.num2date(T[:], T.units, T.calendar), dates)
131131
assert_equal(cftime.date2index(datetime.datetime(1980, 1, 2), T), 366)
132132
f.close()

0 commit comments

Comments
 (0)