52 Commits

Author SHA256 Message Date
677b0a1704 Accepting request 1318333 from devel:languages:python:numeric
- update to 1.7.3:
  * Python 3.14 wheels (issue #1432)
  * support os.PathLike arguments for `Dataset.fromcdl` and raise
    a `FileNotFoundError` if the cdl is missing and a
    `FileExistsError` if the nc file already exists (PR #1387)
  * raise more informative error when trying to iterate or
    perform a membership operation on a Dataset (issue #1383)
  * fix type hint for createEnumType (issue #1378)
  * add python 3.13 to windows wheel builds (PR #1377)
  * allow slicing of vlen and string variables with non-unitary
    strides (issue #1408).

OBS-URL: https://build.opensuse.org/request/show/1318333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=26
2025-11-18 14:39:26 +00:00
ce9b95999b - update to 1.7.3:
* Python 3.14 wheels (issue #1432)
  * support os.PathLike arguments for `Dataset.fromcdl` and raise
    a `FileNotFoundError` if the cdl is missing and a
    `FileExistsError` if the nc file already exists (PR #1387)
  * raise more informative error when trying to iterate or
    perform a membership operation on a Dataset (issue #1383)
  * fix type hint for createEnumType (issue #1378)
  * add python 3.13 to windows wheel builds (PR #1377)
  * allow slicing of vlen and string variables with non-unitary
    strides (issue #1408).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=51
2025-11-17 21:23:23 +00:00
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
7f83e35015 Accepting request 1195979 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1195979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=22
2024-08-26 20:10:23 +00:00
678fb2fa16 When do you stop this pinning nonsense?
- Revert numpy<2 restriction. It is explicitly supported.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=43
2024-08-26 02:53:12 +00:00
99d76840eb Accepting request 1190822 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1190822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=21
2024-08-01 20:04:46 +00:00
a3312bb90d Accepting request 1189933 from home:cboltz:branches:devel:languages:python:numeric
- broken test tst_compoundvar.py was renamed to test_compoundvar.py

OBS-URL: https://build.opensuse.org/request/show/1189933
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=41
2024-07-31 21:55:20 +00:00
289f3e9caa Accepting request 1186092 from devel:languages:python:numeric
- Update to 1.7.1.post1:
 * include nc_complex source code from v0.2.0 tag
 * add aarch64 wheels
 * add support for complex numbers via `auto_complex` keyword to `Dataset`
 * fix for deprecated Cython `DEF` and `IF` statements using compatibility
   header with shims for unavailable functionality
 * add support for MS-MPI `MPI_Message` detection
 * fix surprising result when indexing vlen str with non-contiguous
   indices.
 * Fix bug in set_collective
- Remove upper bound on Cython.
- Restrict numpy to < 2.
- Drop patch 1322.patch, included upstream.

OBS-URL: https://build.opensuse.org/request/show/1186092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=20
2024-07-08 17:08:48 +00:00
13a85a7cf9 - Update to 1.7.1.post1:
* include nc_complex source code from v0.2.0 tag
 * add aarch64 wheels
 * add support for complex numbers via `auto_complex` keyword to `Dataset`
 * fix for deprecated Cython `DEF` and `IF` statements using compatibility
   header with shims for unavailable functionality
 * add support for MS-MPI `MPI_Message` detection
 * fix surprising result when indexing vlen str with non-contiguous
   indices.
 * Fix bug in set_collective
- Remove upper bound on Cython.
- Restrict numpy to < 2.
- Drop patch 1322.patch, included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=39
2024-07-08 07:20:29 +00:00
1950b57898 Accepting request 1179163 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1179163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=19
2024-06-07 13:05:15 +00:00
64ca7478db Accepting request 1179034 from home:dimstar:Factory
- Re-download 1322.patch: ensure it matches the contant as provided
  the URL specified in the spec file.

OBS-URL: https://build.opensuse.org/request/show/1179034
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=37
2024-06-07 09:27:50 +00:00
6e89d3d527 - Clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=36
2024-05-29 21:18:28 +00:00
e86d080873 Accepting request 1177610 from home:glaubitz:branches:devel:languages:python:numeric
- Cherry-pick upstream patch to fix build with GCC 14
  * https://github.com/Unidata/netcdf4-python/pull/1322.patch

OBS-URL: https://build.opensuse.org/request/show/1177610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=35
2024-05-29 21:08:10 +00:00
82ad4a137f Accepting request 1139718 from devel:languages:python:numeric
- Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124,
  bsc#1218606

OBS-URL: https://build.opensuse.org/request/show/1139718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=18
2024-01-18 20:54:06 +00:00
55164dac06 - Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124,
bsc#1218606

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=33
2024-01-18 13:32:34 +00:00
517e1552e5 - Disable broken tests for s390x, gh#Unidata/netcdf4-python#1124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=32
2024-01-18 13:27:08 +00:00
581e1c371b Accepting request 1131716 from devel:languages:python:numeric
- update to 1.6.5:
  * fix for issue #1271 (mask ignored if bool MA assinged to
    uint8 var)
  * include information on specific object when reporting errors
    from netcdf-c

OBS-URL: https://build.opensuse.org/request/show/1131716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=17
2023-12-08 21:32:24 +00:00
d10ab42e93 - update to 1.6.5:
* fix for issue #1271 (mask ignored if bool MA assinged to
    uint8 var)
  * include information on specific object when reporting errors
    from netcdf-c

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=30
2023-12-07 22:10:58 +00:00
38f4fdd363 Accepting request 1110189 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1110189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=16
2023-09-11 19:21:57 +00:00
0c505d1f61 Accepting request 1110158 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.4
 * set path to SSL certificates internally, so https DAP URLs work
   with wheels (issue #1246, requires nc_rc_set function available
   starting with netcdf-c 4.9.1, plus bugfix in netcdf-c PR #2690).
 * Added certifi as a dependency.
 * Added `isopen` method to `MFDataset` object to check if
   underlying files are open.
- Version 1.6.3
 * Use ``nc_put_vars`` for strided writes for netcdf-c >= 4.6.2
   (issue #1222).
 * _Unsigned="false" should be same as not having _Unsigned set
   (issue #1232). _Unsigned now must be set to "true" or "True" for
   variable to be interpreted as unsigned, instead of just having
   _Unsigned be set (to anything).

OBS-URL: https://build.opensuse.org/request/show/1110158
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=28
2023-09-11 04:57:26 +00:00
8d710c1649 Accepting request 1056768 from devel:languages:python:numeric
- update to 1.6.2:
 * Added ``netCDF4.__has_set_alignment__`` property to help identify if the
   underlying netcdf4 supports setting the HDF5 alignment.
 * Slicing multi-dimensional variables with an all False boolean index array
   now returns an empty numpy array (instead of raising an exception - issue #1197).
   Behavior now consistent with numpy slicing.
 * fix problem with compiling using netcdf-c < 4.9.0 (issue #1209)

OBS-URL: https://build.opensuse.org/request/show/1056768
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=15
2023-01-07 16:19:59 +00:00
3831b8f0e1 - update to 1.6.2:
* Added ``netCDF4.__has_set_alignment__`` property to help identify if the
   underlying netcdf4 supports setting the HDF5 alignment.
 * Slicing multi-dimensional variables with an all False boolean index array
   now returns an empty numpy array (instead of raising an exception - issue #1197).
   Behavior now consistent with numpy slicing.
 * fix problem with compiling using netcdf-c < 4.9.0 (issue #1209)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=26
2023-01-07 12:27:15 +00:00
4b136770a8 Accepting request 1004592 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1004592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=14
2022-09-19 14:03:43 +00:00
72c6d399a8 Accepting request 1004220 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1004220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=24
2022-09-19 07:38:55 +00:00
af19a0e950 Accepting request 988326 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/988326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=13
2022-07-11 17:09:46 +00:00
75d2f18243 Accepting request 988228 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/988228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=22
2022-07-11 09:49:34 +00:00
1e429e98a2 Accepting request 953173 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/953173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=12
2022-02-10 22:12:20 +00:00
6c2dfc7d6c Accepting request 953077 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/953077
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=21
2022-02-10 12:42:29 +00:00
Richard Brown
918807d778 Accepting request 874190 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/874190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=11
2021-02-22 13:40:06 +00:00
7d057bb808 Accepting request 874186 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.5.6
  * change numpy.bool to numpy.bool_ and numpy.float to
    numpy.float_ (float and bool are deprecated in numpy 1.20,
    issue #1065)
 * clean up docstrings so that they work with latest pdoc.
 * update cython numpy API to remove deprecation warnings.
 * Add "fromcdl" and "tocdl" Dataset methods for import/export of
   CDLvia ncdump/ncgen called externally via the subprocess module
   (issue #1078).
 * remove python 2.7 support.
 * broadcast data (if possible) to conform to variable shape when
   writing to a slice (issue #1083).
- Release 1.5.5
 * have setup.py always try use nc-config first to find paths to
   netcdf and hdf5 libraries and headers. Don't use pkg-config to
   find HDF5 if HDF5 env vars are set (or read from setup.cfg).
 * Change MIT license text to standard OSI wording (PR #1046).
- Skip python36 build: With NumPy 1.20, python36-numpy is no
  longer available in Tumbleweed (NEP 29)

OBS-URL: https://build.opensuse.org/request/show/874186
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=19
2021-02-21 22:50:08 +00:00
fe551ac771 Accepting request 854127 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/854127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=10
2020-12-09 21:21:42 +00:00
708db6d8b2 Accepting request 853796 from home:dstoecker:branches:devel:languages:python:numeric
- Drop wrong hdf4 requirements

HDF4 is outdated and not used (it would need to be explicitely enabled for the requirements to make sense), but hdf4 doesn't build for Factory anymore.

OBS-URL: https://build.opensuse.org/request/show/853796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=17
2020-12-08 19:56:56 +00:00
7e3731e59f Accepting request 822784 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/822784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=9
2020-07-27 15:41:00 +00:00
Tomáš Chvátal
9b437d38b8 Accepting request 822779 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/822779
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=15
2020-07-25 17:34:38 +00:00
403f989c44 Accepting request 822415 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/822415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=8
2020-07-24 08:06:58 +00:00
Tomáš Chvátal
fe089eb04e Accepting request 822381 from home:michel_mno:branches:devel:languages:python:numeric
-  Add _constraints with default 5G min disk space

OBS-URL: https://build.opensuse.org/request/show/822381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=13
2020-07-23 13:18:39 +00:00
86f8c25f1c Accepting request 808041 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/808041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=7
2020-05-26 15:20:21 +00:00
Tomáš Chvátal
d393741ae3 Accepting request 807984 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/807984
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=11
2020-05-21 18:33:26 +00:00
927258a750 Accepting request 749755 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/749755
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=6
2019-11-20 09:28:27 +00:00
Todd R
b93d1d84d3 Accepting request 749754 from home:TheBlackCat:branches:devel:languages:python:numeric
Update to 1.5.3

OBS-URL: https://build.opensuse.org/request/show/749754
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=9
2019-11-19 20:48:58 +00:00
ca711dc416 Accepting request 736040 from devel:languages:python:numeric
- Update to 1.5.2:
 * fix for scaling bug when _Unsigned attribute is set and byteorder of data
   does not match native byteorder (issue #930).
 * revise documentation for Python 3 (issue #946).
 * establish support for Python 2.7, 3.5, 3.6 and 3.7 (issue #948).
 * use dict built-in instead of OrderedDict for Python 3.7+
   (pull request #955).
 * remove underline ANSI in Dataset string representation (pull request #956).
 * remove newlines from string representation (pull request #960).
 * fix for issue #957 (size of scalar var is a float since numpy.prod(())=1.0).
 * make sure Variable.setncattr fails to set _FillValue (issue #959).
 * fix detection of parallel HDF5 support with netcdf-c 4.6.1 (issue #964).
- Remove not needed netcdf-disable-broken-test.patch as the bug was
  fixed in netcdf itself

OBS-URL: https://build.opensuse.org/request/show/736040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=5
2019-10-24 21:02:16 +00:00
Tomáš Chvátal
f6e75e17ff - Update to 1.5.2:
* fix for scaling bug when _Unsigned attribute is set and byteorder of data
   does not match native byteorder (issue #930).
 * revise documentation for Python 3 (issue #946).
 * establish support for Python 2.7, 3.5, 3.6 and 3.7 (issue #948).
 * use dict built-in instead of OrderedDict for Python 3.7+
   (pull request #955).
 * remove underline ANSI in Dataset string representation (pull request #956).
 * remove newlines from string representation (pull request #960).
 * fix for issue #957 (size of scalar var is a float since numpy.prod(())=1.0).
 * make sure Variable.setncattr fails to set _FillValue (issue #959).
 * fix detection of parallel HDF5 support with netcdf-c 4.6.1 (issue #964).
- Remove not needed netcdf-disable-broken-test.patch as the bug was
  fixed in netcdf itself

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=7
2019-10-08 09:15:13 +00:00
0e00154e78 Accepting request 707519 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/707519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=4
2019-06-13 21:01:13 +00:00
Tomáš Chvátal
457e07567c Accepting request 707466 from home:mcalabkova:branches:devel:languages:python:numeric
- Update to 1.5.1.2
  * fix for issue #919  (assigning 2d array to 3d variable with singleton
  first dimension with v[:] = a).
  * minimum numpy changed from 1.9.0 to 1.10.0.
  * fix issue #908 by adding workaround for incorrect value returned
  by nc_inq_var_fill for netcdf-c < 4.5.1.
  * fix bug writing slice to unlimited dimension that is not the first
  (leftmost). Issue #906.
  * make sure data gets converted to type of scale_factor when add_offset=0
  and scale_factor=1 (issue #913).
  * fix for reading empty (NIL) string attributes (issue #915).
  * add read-shared mode (mode='rs'). Significantly speeds up reads of NETCDF3
  files (pull request #902).
  * added support for parallel IO in the classic netcdf-3 formats through the
  pnetcdf library (pull request #897).

OBS-URL: https://build.opensuse.org/request/show/707466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-netCDF4?expand=0&rev=5
2019-06-04 12:12:21 +00:00
f6318ca11f Accepting request 686999 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/686999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netCDF4?expand=0&rev=3
2019-03-21 08:53:21 +00:00