Compare commits

4 Commits

Author SHA256 Message Date
c0a5b04695 Accepting request 1288855 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1288855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=31
2025-06-27 21:02:28 +00:00
1761d824d7 Accepting request 1288654 from home:glaubitz:branches:devel:languages:python
- Update to 2.2.1
  * Do not remove nested_refs when updating another ref (#1061)

OBS-URL: https://build.opensuse.org/request/show/1288654
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=64
2025-06-27 14:28:02 +00:00
da79a6c39c Accepting request 1235179 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1235179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=30
2025-01-06 15:05:53 +00:00
16af8aa634 Accepting request 1235167 from home:glaubitz:branches:devel:languages:python
- Update to 2.2.0
  * Annotate `depends` and `accept_arguments` decorators (#962)
  * Stop directly importing numpy and add `gen_types` decorator (#966)
  * Added missing `super().__init_subclass__` call in `_ParameterBase.__init_subclass__` (#969)
  * Remove `_dict_update` (#980)
  * Improve some docstrings and set up `ruff` to validate them (#977), (#982), and (#983)
  * Remove `_param_watchers`, raise `RuntimeError` on unsafe ops during init,
    and failed validation of a parameter default after inheritance (#973)
  * Promote many deprecation warnings to future warnings (#974)
  * Test Python 3.13 (#971)
  * Drop Python 3.8 support (#986)
  * Replace `hatch` with `pixi` (#971)
  * Fix reactive tests failing intermittently on Windows (#971)
  * Change linting to `ruff` (#978)

OBS-URL: https://build.opensuse.org/request/show/1235167
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=62
2025-01-06 12:47:14 +00:00
6 changed files with 21 additions and 105 deletions

View File

@@ -0,0 +1,12 @@
Index: param-2.0.2/pyproject.toml
===================================================================
--- param-2.0.2.orig/pyproject.toml
+++ param-2.0.2/pyproject.toml
@@ -219,6 +219,7 @@ examples = "pytest -v -n logical --dist
python_files = "test*.py"
filterwarnings = [
"error",
+ "ignore:Bitwise inversion.*:DeprecationWarning",
]
xfail_strict = "true"
asyncio_mode = "auto"

View File

@@ -1,23 +0,0 @@
Index: param-2.2.1/tests/testfiledeserialization.py
===================================================================
--- param-2.2.1.orig/tests/testfiledeserialization.py
+++ param-2.2.1/tests/testfiledeserialization.py
@@ -2,6 +2,7 @@
import unittest
import param
import sys
+import warnings
from unittest import skipIf
from tempfile import mkdtemp
@@ -197,7 +198,9 @@ class TestFileDeserialization(unittest.T
@pd_skip
def test_data_frame_stata(self):
path = '{}/val.dta'.format(self.temp_dir)
- P.data_frame.to_stata(path, write_index=False)
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', category=FutureWarning)
+ P.data_frame.to_stata(path, write_index=False)
self._test_deserialize_array(P, path, 'data_frame')
@pd_skip

3
param-2.2.1.tar.gz Normal file
View File

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

View File

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

View File

@@ -1,77 +1,3 @@
-------------------------------------------------------------------
Tue Dec 9 12:50:27 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.3.1
* Fix edit_constant to prevent class value mutation when not constant
-------------------------------------------------------------------
Mon Nov 24 08:11:36 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.3.0
* Add a `default_factory` attribute to the base Parameter (#1092)
* Add a `metadata` attribute to the base Parameter (#1094)
* Allow declaring Parameterized abstract base classes by inheriting
from `ParameterizedABC` => This approach should be favored over
`__abstract = True` (#1031)
* Add `.rx.set()` method (#957)
* Add missing docstrings and enhance existing ones
(#992), (#994), (#997), (#998)
* Better error when calling `len()` on a reactive expression (#1033)
* Raise `AttributeError` when attempting to set the `value` attribute
of a reactive expression (#1022)
* Add an `is_instance` attribute to the `List` Parameter (#1023)
* Allow `depends(..., on_init=True)` to be applied to async method (#1067)
* Add `concrete` keyword to the `descendents` function => Prefer
`concrete(<cls>, descendents=True)` over `concrete_descendents(<cls>)` (#1027)
* Improve import time by lazy importing "slow" modules (#1037)
* Only update Parameter signatures when needed (#1038)
* Fix calling `descendents` on an `object()` instance (#1024)
* Ensure `edit_constant` resets class and instance level parameters (#1015)
* Ensure `constant` attribute is inherited (#1017)
* Ensure type checkers skip `ParameterizedFunction.__init__` (#1039)
* Fix `.values()/get_value_generator()` dealing with Dynamic params
and an updated default value (#1058)
* Do not remove `nested_refs` when updating another ref (#1061)
* Fix error message of `ReactiveESMMetaClass` (#1064)
* Fix `reactive_ops.__call__` (#1069)
* `unwatch` no longer logs a warning and idempotent behavior clarified (#1018)
* Remove bad abstract declaration on `SelectorBase` (#1086)
* Do not override refs when parameter is triggered (#1089)
* Add a new page that lists deprecated and removed APIs (#1016)
* Add a version switcher (#1079)
* Small refactor and fixes to the API reference (#1082)
* README and landing page updates (#1095)
* Various minor fixes and improvements (#1006), (#1034), (#1036),
(#1049), (#1052), (#1054)
* Direct removal of the undocumented and broken `print_all_param_defaults`
function (#1029)
* API removals that emitted a deprecation warning since 2.0.0,
all included in the table below (#1085)
* Deprecate setting a parameter value before full instance initialization (#1025)
* Deprecate the keyword `what` of `.param.watch_values()` (#1073)
* Deprecate the generic Parameter attribute `pickle_default_value` (#1019)
* Deprecate the module `version.py` (#1002)
* Deprecate Selector's `compute_default_fn` slot and `compute_default()` method (#1012)
* Drop gmpy support in favor of gmpy2 (#1026)
* Ensure support for Python 3.14 (#1077)
* Bump the minimum Python version to 3.10 (#1084)
* Ensure support for PyPy 3.11 and stop testing PyPy 3.10 (#1080)
* Introduce `_find_stack_level()` utility to emit warnings with the right stack level (#1083)
* Add sysmon for coverage (#1009)
* Small updates to the build infrastructure (#1008)
* Modify workflow to exclude forks (#1020)
* Update pre-commit (#1078)
* Make the generator tests more robust (#1080), (#1088)
* Add @maximlt (#1075)
* Enhance developer experience with the `setup-dev` command (#1081)
-------------------------------------------------------------------
Tue Nov 11 01:40:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop patch filter-deprecationwarning.patch, no longer needed.
- Addd patch ignore-pandas-assignment-futurewarning.patch:
* Ignore a FutureWarning raised from the depths of pandas.
-------------------------------------------------------------------
Thu Jun 26 09:35:43 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-param
#
# Copyright (c) 2025 SUSE LLC and contributors
# 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
@@ -15,17 +15,18 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
%define modname param
Name: python-param
Version: 2.3.1
Version: 2.2.1
Release: 0
Summary: Declarative Python programming using Parameters
License: BSD-3-Clause
URL: https://param.holoviz.org/index.html
Source: https://files.pythonhosted.org/packages/source/p/param/param-%{version}.tar.gz
Source100: python-param-rpmlintrc
# PATCH-FIX-OPENSUSE Ignore FutureWarning from pandas itself
Patch0: ignore-pandas-assignment-futurewarning.patch
# https://github.com/holoviz/param/issues/907
Patch0: filter-deprecationwarning.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}