1
0

6 Commits

Author SHA256 Message Date
013e6bfc45 Accepting request 1274714 from devel:languages:python:numeric
- update to 1.7.2:
  * add static type hints (PRs #1302, #1349)
  * Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module
    functions). (PR #1348)
  * Add Variable.get_fill_value and allow `fill_value='default'`
    to set `_FillValue` attribute using default fill values.
  * Fix NETCDF3 endian error (issue #1373, PR #1355).

OBS-URL: https://build.opensuse.org/request/show/1274714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=25
2025-05-06 14:41:38 +00:00
e0ccfc46a3 - update to 1.7.2:
* add static type hints (PRs #1302, #1349)
  * Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module
    functions). (PR #1348)
  * Add Variable.get_fill_value and allow `fill_value='default'`
    to set `_FillValue` attribute using default fill values.
  * Fix NETCDF3 endian error (issue #1373, PR #1355).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=49
2025-05-05 20:59:26 +00:00
ce59306323 Accepting request 1271219 from devel:languages:python:numeric
- Support both lowercased and unnormalized metadata directory names.

OBS-URL: https://build.opensuse.org/request/show/1271219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=24
2025-04-22 15:28:20 +00:00
3568e2983d - Support both lowercased and unnormalized metadata directory names.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=47
2025-04-22 01:40:34 +00:00
6955f0d719 Accepting request 1219471 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1219471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=23
2024-10-30 16:39:40 +00:00
88dc27c594 - update to 1.7.1.post2:
* ci fixes
  * make sure arrays are masked that are not filled when auto_fill is off
 * automatically create views of compound types with character arrays as
 * always return masked array by default, even if there are no
 * always search for HDF5 headers when building, even when nc-config is used
   encodings (such as cp1252 on windows) can be handled in Dataset
   such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
   segfaults can occur. Fix required raising them minimum numpy requirement
    data. When writing the data, stringtochar is used to convert a numpy
  * fix some test failures on big endian PPC64 that were due to
  * raise warning for HDF5 1.10.x (issue #549), since backwards
    fails.  raise IOError instead of RuntimeError when nc_create or
    (pull request #543).
    mysterious segfaults on CentOS6 (issue #506). Segfaults
  * Potential memory leaks fixed by freeing string pointers internally allocated
  * invoke str on filename argument to Dataset constructor, so pathlib
  * dates do not have to be contiguous, i.e. can be before and after the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=45
2024-09-30 13:11:36 +00:00
4 changed files with 44 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:797f0b25d87827fc6821e415d9e15a2068604b18c3be62563e72682bcba76548
size 827730

3
netcdf4-1.7.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4c6375540b19989896136943abb6d44850ff6f1fa7d3f063253b1ad3f8b7fce
size 835064

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Mon May 5 20:59:04 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 1.7.2:
* add static type hints (PRs #1302, #1349)
* Expose nc_rc_set, nc_rc_get (via rc_set, rc_get module
functions). (PR #1348)
* Add Variable.get_fill_value and allow `fill_value='default'`
to set `_FillValue` attribute using default fill values.
* Fix NETCDF3 endian error (issue #1373, PR #1355).
-------------------------------------------------------------------
Tue Apr 22 01:40:01 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Support both lowercased and unnormalized metadata directory names.
-------------------------------------------------------------------
Mon Sep 30 13:10:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.7.1.post2:
* ci fixes
-------------------------------------------------------------------
Sat Aug 17 14:42:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
@@ -218,7 +240,7 @@ Thu May 21 10:56:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
Tue Nov 19 20:48:10 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Update to 1.5.3:
* make sure arrays are masked that are not filled when auto_fill is off
* make sure arrays are masked that are not filled when auto_fill is off
* python 3.8 binary wheels.
-------------------------------------------------------------------
@@ -328,13 +350,13 @@ Thu May 17 09:57:50 UTC 2018 - tchvatal@suse.com
* fix loading of enum type names (issue #775).
* make sure missing_value applies only to scaled short integers if
auto-scaling is on (issue #777).
* automatically create views of compound types with character arrays as
* automatically create views of compound types with character arrays as
numpy strings (issue #773). Can be disabled using
'set_auto_chartostring(False)'. Numpy structured
array dtypes with 'SN' string subtypes can now be used to
define netcdf compound types (they get converted to ('S1',N)
character array types automatically).
* always return masked array by default, even if there are no
* always return masked array by default, even if there are no
masked values (too surprising to get ndarray or MaskedArray depending
on slice, issue #785).
* treat valid_min/valid_max/_FillValue/missing_value as unsigned
@@ -359,20 +381,20 @@ Thu Mar 1 22:03:20 UTC 2018 - sebix+novell.com@sebix.at
a `ValueError` otherwise.
* Allow _FillValue to be set for vlen string variables (issue #730).
- update to version 1.3.0:
* always search for HDF5 headers when building, even when nc-config is used
* always search for HDF5 headers when building, even when nc-config is used
(since nc-config does not always include the path to the HDF5 headers).
Also use H5get_libversion to obtain HDF5 version info instead of
H5public.h. Fixes issue #677.
* encoding kwarg added to Dataset.__init__ and Dataset.filepath (default
is to use sys.getfilesystemencoding()) so that oddball
encodings (such as cp1252 on windows) can be handled in Dataset
encodings (such as cp1252 on windows) can be handled in Dataset
filepaths (issue #686).
* Calls to nc_get_vars are avoided, since nc_get_vars is very slow (issue
#680). Strided slices are now converted to multiple calls to
nc_get_vara. This speeds up strided slice reads by a factor of 10-100
(especially for NETCDF4/HDF5 files) in most cases. In some cases, strided reads
using nc_get_vars are faster (e.g. strided reads over many dimensions
such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
such as var[:,::2,::2,::2])), so a variable method use_nc_get_vars was added.
var.use_nc_get_vars(True) will tell the library to use nc_get_vars instead
of multiple calls to nc_get_vara, which was the default behaviour previous
to this change.
@@ -382,7 +404,7 @@ Thu Mar 1 22:03:20 UTC 2018 - sebix+novell.com@sebix.at
* Improve timezone format parsing in netcdftime
* make sure numpy datatypes used to define CompoundTypes have
isalignedstruct flag set to True (issue #705), otherwise.
segfaults can occur. Fix required raising them minimum numpy requirement
segfaults can occur. Fix required raising them minimum numpy requirement
from 1.7.0 to 1.9.0.
* ignore missing_value, _FillValue, valid_range, valid_min and valid_max
when creating masked arrays if attribute cannot be safely
@@ -416,7 +438,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
the chartostring utility function is used to convert the array of
characters to an array of strings with one less dimension (the last
dimension is interpreted as the length of each string) when reading the
data. When writing the data, stringtochar is used to convert a numpy
data. When writing the data, stringtochar is used to convert a numpy
array of fixed length strings to an array of characters with one more
dimension. chartostring and stringtochar now also have an 'encoding' kwarg.
Automatic conversion to/from character to string arrays can be turned off
@@ -433,7 +455,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
issue #626). Test with python 3.6 using travis CI.
- Update to version 1.2.6
* fix some test failures on big endian PPC64 that were due to
* fix some test failures on big endian PPC64 that were due to
errors in byte-swapping logic. Also fixed bug in enum
code exposed on PPC64 (issue #608).
* remove support for python 2.6 (it probably still will work for a while
@@ -476,13 +498,13 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
byte order before passing to netcdf-c library. Data read from variable
with non-native byte order is also byte-swapped, so that dtype remains
consistent with netcdf variable. Behavior now consistent with h5py.
* raise warning for HDF5 1.10.x (issue #549), since backwards
* raise warning for HDF5 1.10.x (issue #549), since backwards
incompatible files may be created.
* raise AttributeError instead of RuntimeError when attribute operation
fails. raise IOError instead of RuntimeError when nc_create or
fails. raise IOError instead of RuntimeError when nc_create or
nc_open fails (issue #546).
* Use NamedTemporaryFile instead of deprecated mktemp in tests
(pull request #543).
(pull request #543).
* add AppVeyor automated windows tests (pull request #540).
- Update to version 1.2.3.1
* fix bug in setup.py (pull request #539, introduced in issue #518).
@@ -503,15 +525,15 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
NETCDF3_64BIT_DATA format and filepath Dataset method).
* expose netcdftime.__version__ (issue #504).
* fix potential memory leak in Dataset.filepath in attempt to fix
mysterious segfaults on CentOS6 (issue #506). Segfaults
mysterious segfaults on CentOS6 (issue #506). Segfaults
can apparently still occur on systems like CentOS6 with old versions of glibc.
- Update to version 1.2.2
* fix failing tests on python 2.6 (issue #497). Change minimum required
python from 2.5 to 2.6.
* Potential memory leaks fixed by freeing string pointers internally allocated
* Potential memory leaks fixed by freeing string pointers internally allocated
in netcdf-c using nc_free_string. Also use nc_free_vlens to free space allocated
for vlens inside netcdf-c (issue #495).
* invoke str on filename argument to Dataset constructor, so pathlib
* invoke str on filename argument to Dataset constructor, so pathlib
instances can be used (issue #489).
* don't use hardwired NC_MAX_DIMS or NC_MAX_VARS internally to allocate space
for dimension or variable ids. Instead, find out the number of dims
@@ -530,7 +552,7 @@ Sun Jun 11 06:11:32 UTC 2017 - toddrme2178@gmail.com
* add 'size' attribute to Dimension (same as len(d), where
d is a Dimension instance, issue #477).
* fix bug in nc3tonc4 with --unpackshort=1 (issue #474).
* dates do not have to be contiguous, i.e. can be before and after the
* dates do not have to be contiguous, i.e. can be before and after the
missing dates in Gregorian calendar (pull request #476).
-------------------------------------------------------------------

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-netCDF4
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-netCDF4
Version: 1.7.1.post1
Version: 1.7.2
Release: 0
Summary: Python interface to netCDF 3 and 4
License: HPND AND MIT
@@ -111,6 +111,6 @@ popd
%python_alternative %{_bindir}/nc4tonc3
%python_alternative %{_bindir}/ncinfo
%{python_sitearch}/netCDF4
%{python_sitearch}/netCDF4-%{version}.dist-info
%{python_sitearch}/net[Cc][Dd][Ff]4-%{version}.dist-info
%changelog