SHA256
1
0
forked from pool/python-param

Compare commits

38 Commits

Author SHA256 Message Date
5d9837d31f Accepting request 1321798 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1321798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=34
2025-12-10 14:32:54 +00:00
774bbaa80d - Update to 2.3.1
* Fix edit_constant to prevent class value mutation when not constant

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=70
2025-12-09 14:47:58 +00:00
d10737c332 Accepting request 1319761 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1319761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=33
2025-11-24 16:17:40 +00:00
53f9e818aa - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=68
2025-11-24 13:55:45 +00:00
d28de00a9a Accepting request 1316996 from devel:languages:python
- Drop patch filter-deprecationwarning.patch, no longer needed.
- Addd patch ignore-pandas-assignment-futurewarning.patch:
  * Ignore a FutureWarning raised from the depths of pandas.

OBS-URL: https://build.opensuse.org/request/show/1316996
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=32
2025-11-11 18:20:38 +00:00
aa59cdb400 - Drop patch filter-deprecationwarning.patch, no longer needed.
- Addd patch ignore-pandas-assignment-futurewarning.patch:
  * Ignore a FutureWarning raised from the depths of pandas.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=66
2025-11-11 01:40:42 +00:00
a353d29076 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
4c4cccff82 - Update to 2.2.1
* Do not remove nested_refs when updating another ref (#1061)

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
3f3b817484 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
532d727e68 - 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/package/show/devel:languages:python/python-param?expand=0&rev=62
2025-01-06 12:47:14 +00:00
0f9e916670 Accepting request 1184129 from devel:languages:python
- update to 2.1.1:
  * Ensure rx._callback resolves accessors
  * Ensure refs can be updated by watcher of the same parameter
  * Recursively resolve references on args and kwargs passed to a
    reactive operation (#944)
  * Only override the name of a Parameterized instance on Parameter
    instantiation when instantiate=True (#938)
  * Various minor documentation improvements
  * Fix test_reactive_logic_unary_ops on Python 3.12

OBS-URL: https://build.opensuse.org/request/show/1184129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=29
2024-07-01 09:21:32 +00:00
6932dd3aed Accepting request 1172438 from devel:languages:python
- update to 2.1.0:
  * Improvements for synchronous and asychronous generators (#908)
  * Additions to the .rx namespace including and_, bool, map, not_,
    or_ and updating (#906)
  * Add support for adding asynchronous watcher to rx (#917)
  * Make it possible to resolve reactive expressions recursively
    with .rx.resolve (#918)
  * Add support for async and generator functions in .rx.pipe (#924)
  * Ensure that .param.update context manager restore refs (#915)
  * Avoid overeager root invalidation on rx leading to unnecessary
    evaluation (#919)
  * Passing positional arguments to Parameter now raises a
    ParamDeprecationWarning

OBS-URL: https://build.opensuse.org/request/show/1172438
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=28
2024-05-07 16:05:00 +00:00
1d78dce1d4 Accepting request 1144424 from devel:languages:python
- Add patch filter-deprecationwarning.patch:
  * Ignore a DeprecationWarning treated as an error.

OBS-URL: https://build.opensuse.org/request/show/1144424
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=27
2024-02-06 15:34:47 +00:00
0c5f184911 Accepting request 1140199 from devel:languages:python
- update to 2.0.2:
  * Minor optimizations in hot codepaths accessing class parameters
  * Unpack partial callables in iscoroutinefunction
  * Fix building Param with setuptools-scm<7

  * Parameter slot values are now all inherited correctly across
  * There is now a ListProxy wrapper around Selector.objects (with
    forward and backward compatibility) to easily update objects
  * Parameterized classes and instances now have a rich HTML
    representation that is displayed automatically in
  * Parameters have all gained the allow_refs and nested_refs
    attributes, bringing an exceptionally useful feature that was
  * You can now use .param.update as a context manager for applying
  * Path now has check_exists attribute, leading it to raise an error
- Update to version 1.12.3:
- Don't test optional numpy with python36, but include optional
  * No upstream changelog

OBS-URL: https://build.opensuse.org/request/show/1140199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=26
2024-01-21 22:09:24 +00:00
c80b9b3c7f Accepting request 1133621 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1133621
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=25
2023-12-17 20:32:15 +00:00
87ba04559b Accepting request 1120539 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1120539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=24
2023-10-26 15:13:24 +00:00
a64a5d8f42 Accepting request 1074514 from devel:languages:python
- update to 1.13.0:
  * This release includes a new `Bytes` *Parameter* and a few
    important bug fixes. This release is also marked by the
    adoption of a formal project governance, ensuring Param's
    future as a healthy open-source project. Many thanks to
    @ovidner and @droumis for their first contributions! And to
    @maximlt, @Hoxbro, @jlstevens, @philippjfr and @jbednar for
    their continuing support to fixing and improving Param.
  * Fix copying when having watchers on e.g. bounds on inherited
    Parameter types (#675)
  * Allow JSON serialization to work with `json.dumps` (#655)
  * `ListSelector` restricted to `list` type objects (#531)
  * Fix `depends` async wrapper (#684)
  * Allow named colors to be any case (#711)

OBS-URL: https://build.opensuse.org/request/show/1074514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=23
2023-03-27 16:16:16 +00:00
c00d3eafdd Accepting request 1042887 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1042887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=22
2022-12-15 18:24:56 +00:00
5492cc6401 Accepting request 984293 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/984293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=21
2022-06-23 08:23:41 +00:00
5cf85dff8e Accepting request 974289 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/974289
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=20
2022-05-02 14:25:31 +00:00
30c4589d5b Accepting request 955206 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/955206
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=19
2022-02-16 23:30:32 +00:00
Richard Brown
f446ca339f Accepting request 875538 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/875538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=18
2021-03-03 17:33:44 +00:00
a0bfb2ea82 Accepting request 867617 from devel:languages:python
- Remove %ifpython3 guard for the %check section.

OBS-URL: https://build.opensuse.org/request/show/867617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=17
2021-01-29 13:57:17 +00:00
50d5b703c5 Accepting request 862303 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/862303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=16
2021-01-11 16:16:36 +00:00
ef7d1b92a6 Accepting request 859978 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/859978
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=15
2021-01-04 18:07:25 +00:00
2ad294b963 Accepting request 845534 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/845534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=14
2020-11-03 14:16:30 +00:00
92c4bed97f Accepting request 824171 from devel:languages:python
- Add denose.patch to remove dependency on nose (gh#holoviz/param#423).

OBS-URL: https://build.opensuse.org/request/show/824171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=13
2020-08-04 18:21:16 +00:00
f0059d393b Accepting request 783950 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/783950
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=12
2020-03-11 17:55:44 +00:00
aca9f26ff4 Accepting request 766318 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/766318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=11
2020-01-22 21:46:14 +00:00
8d8c17353f Accepting request 727289 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/727289
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=10
2019-09-02 11:25:32 +00:00
c07a771fe4 Accepting request 707138 from devel:languages:python
- Update to 1.9.1:
  * No upstream changelog

OBS-URL: https://build.opensuse.org/request/show/707138
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=9
2019-06-06 16:16:01 +00:00
7f15c87353 Accepting request 697417 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/697417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=8
2019-04-30 11:00:47 +00:00
913848eafd Accepting request 684696 from devel:languages:python
- Update to 1.8.2:
  * Added output decorator and outputs lookup method (#299, #312)

OBS-URL: https://build.opensuse.org/request/show/684696
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=7
2019-03-14 13:59:49 +00:00
fcdae09fcc Accepting request 662848 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/662848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=6
2019-01-08 11:27:57 +00:00
e183b69b93 Accepting request 623249 from devel:languages:python
- Switch to github tarball and enable tests.

- specfile:
  * remove devel requirement
- update to version 1.7.0:
  * A new param namespace object, which in future will allow
    subclasses of Parameterized to have much cleaner namespaces
    (#230).
  * Started testing on python 3.7-dev (#223).
  * param.version now provides functions to simplify dependants'
    setup.py/setup.cfg files (see pyviz/autover#49).

OBS-URL: https://build.opensuse.org/request/show/623249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=5
2018-07-18 20:55:21 +00:00
130f87f4d1 Accepting request 606681 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/606681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=4
2018-05-16 09:39:33 +00:00
a5258bf9e4 Accepting request 597608 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/597608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=3
2018-04-19 13:31:22 +00:00
0ea66f6cb6 Accepting request 517422 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/517422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=2
2017-08-18 13:06:02 +00:00
6 changed files with 129 additions and 21 deletions

View File

@@ -1,12 +0,0 @@
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

@@ -0,0 +1,23 @@
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

View File

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

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

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

View File

@@ -1,3 +1,101 @@
-------------------------------------------------------------------
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>
- Update to 2.2.1
* Do not remove nested_refs when updating another ref (#1061)
-------------------------------------------------------------------
Mon Jan 6 11:44:12 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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)
-------------------------------------------------------------------
Sun Jun 30 19:30:16 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-param
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,18 +15,17 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname param
%{?sle15_python_module_pythons}
Name: python-param
Version: 2.1.1
Version: 2.3.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
# https://github.com/holoviz/param/issues/907
Patch0: filter-deprecationwarning.patch
# PATCH-FIX-OPENSUSE Ignore FutureWarning from pandas itself
Patch0: ignore-pandas-assignment-futurewarning.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}