Skip to content

Commit

Permalink
Merge pull request #1285 from Unidata/v1.6.5rel
Browse files Browse the repository at this point in the history
version 1.6.5 release
  • Loading branch information
jswhit authored Oct 25, 2023
2 parents 130efb0 + 87d1a3b commit df470a5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
## News
For details on the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).

10/20/2023: Version [1.6.5](https://pypi.python.org/pypi/netCDF4/1.6.5) released.
Fix for issue #1271 (mask ignored if bool MA assinged to uint8 var), support for python 3.12, more
informative error messages.

6/4/2023: Version [1.6.4](https://pypi.python.org/pypi/netCDF4/1.6.4) released. Now requires
[certifi](https://github.com/certifi/python-certifi) to locate SSL certificates - this allows
OpenDAP https URLs to work with linux wheels (issue [#1246](https://github.com/Unidata/netcdf4-python/issues/1246)).
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
tests = [
"Cython",
"packaging",
"pytest",
]


[project.readme]
text = """\
netCDF version 4 has many features not found in earlier versions of the library,
Expand Down
4 changes: 2 additions & 2 deletions test/tst_multifile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from numpy import ma
import tempfile, unittest, os, datetime
import cftime
from pkg_resources import parse_version
from packaging.version import Version

nx=100; ydim=5; zdim=10
nfiles = 10
Expand Down Expand Up @@ -138,7 +138,7 @@ def runTest(self):
assert_equal(T.typecode(), t.typecode())
# skip this until cftime pull request #55 is in a released
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
if Version(cftime.__version__) >= Version('1.0.1'):
assert_array_equal(cftime.num2date(T[:], T.units, T.calendar), dates)
assert_equal(cftime.date2index(datetime.datetime(1980, 1, 2), T), 366)
f.close()
Expand Down
6 changes: 3 additions & 3 deletions test/tst_multifile2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from numpy import ma
import tempfile, unittest, os, datetime
import cftime
from pkg_resources import parse_version
from packaging.version import Version

nx=100; ydim=5; zdim=10
nfiles = 10
Expand Down Expand Up @@ -106,7 +106,7 @@ def runTest(self):
# Get the real dates
# skip this until cftime pull request #55 is in a released
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
if Version(cftime.__version__) >= Version('1.0.1'):
dates = []
for file in self.files:
f = Dataset(file)
Expand All @@ -126,7 +126,7 @@ def runTest(self):
assert_equal(T.typecode(), t.typecode())
# skip this until cftime pull request #55 is in a released
# version (1.0.1?). Otherwise, fix for issue #808 breaks this
if parse_version(cftime.__version__) >= parse_version('1.0.1'):
if Version(cftime.__version__) >= Version('1.0.1'):
assert_array_equal(cftime.num2date(T[:], T.units, T.calendar), dates)
assert_equal(cftime.date2index(datetime.datetime(1980, 1, 2), T), 366)
f.close()
Expand Down

0 comments on commit df470a5

Please sign in to comment.