From 774bbaa80de6e6f5d0fa7b381f5b29b8e34783cc25b46b40b00cdcf2c3cecba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 9 Dec 2025 14:47:58 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 + .gitignore | 1 + filter-deprecationwarning.patch | 12 + ignore-pandas-assignment-futurewarning.patch | 23 + param-2.2.1.tar.gz | 3 + param-2.3.0.tar.gz | 3 + param-2.3.1.tar.gz | 3 + python-param-rpmlintrc | 1 + python-param.changes | 553 +++++++++++++++++++ python-param.spec | 88 +++ 10 files changed, 710 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 filter-deprecationwarning.patch create mode 100644 ignore-pandas-assignment-futurewarning.patch create mode 100644 param-2.2.1.tar.gz create mode 100644 param-2.3.0.tar.gz create mode 100644 param-2.3.1.tar.gz create mode 100644 python-param-rpmlintrc create mode 100644 python-param.changes create mode 100644 python-param.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/filter-deprecationwarning.patch b/filter-deprecationwarning.patch new file mode 100644 index 0000000..435de8a --- /dev/null +++ b/filter-deprecationwarning.patch @@ -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" diff --git a/ignore-pandas-assignment-futurewarning.patch b/ignore-pandas-assignment-futurewarning.patch new file mode 100644 index 0000000..05c6875 --- /dev/null +++ b/ignore-pandas-assignment-futurewarning.patch @@ -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 diff --git a/param-2.2.1.tar.gz b/param-2.2.1.tar.gz new file mode 100644 index 0000000..e70fcf3 --- /dev/null +++ b/param-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba1f7cec6455ea8ad96f641f4082759bf1057dcbe629aa79d956b25973252422 +size 176980 diff --git a/param-2.3.0.tar.gz b/param-2.3.0.tar.gz new file mode 100644 index 0000000..2d4b77c --- /dev/null +++ b/param-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7e2b9c1d308d93c641937330990e8254aef479682c930b36ab681c4587d999a +size 201663 diff --git a/param-2.3.1.tar.gz b/param-2.3.1.tar.gz new file mode 100644 index 0000000..8ebb726 --- /dev/null +++ b/param-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84e59fc3a9bfb0e4c8100eb92d5be529deea3ec9c1f0881a0068c5caf31f21f3 +size 201772 diff --git a/python-param-rpmlintrc b/python-param-rpmlintrc new file mode 100644 index 0000000..11104f6 --- /dev/null +++ b/python-param-rpmlintrc @@ -0,0 +1 @@ +addFilter("hidden-file-or-dir .*/site-packages/param/\.version") diff --git a/python-param.changes b/python-param.changes new file mode 100644 index 0000000..270cc33 --- /dev/null +++ b/python-param.changes @@ -0,0 +1,553 @@ +------------------------------------------------------------------- +Tue Dec 9 12:50:27 UTC 2025 - John Paul Adrian Glaubitz + +- 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 + +- 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(, descendents=True)` over `concrete_descendents()` (#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 + +- 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 + +- 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 + +- 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 + +- 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 + +------------------------------------------------------------------- +Tue May 7 12:54:44 UTC 2024 - Dirk Müller + +- 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 + +------------------------------------------------------------------- +Tue Feb 6 01:28:23 UTC 2024 - Steve Kowalik + +- Add patch filter-deprecationwarning.patch: + * Ignore a DeprecationWarning treated as an error. + +------------------------------------------------------------------- +Sat Jan 20 19:27:34 UTC 2024 - Dirk Müller + +- 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 + +------------------------------------------------------------------- +Fri Dec 15 16:46:45 UTC 2023 - Atri Bhattacharya + +- Update to version 2.0.1: + * Do not install doc folder in site-packages + (gh#holoviz/param#878). + * Drop the feather-format test dependency + (gh#holoviz/param#879). + * Add tables to the tests-deser extra (gh#holoviz/param#880). + * Fix _state_push and _state_pop (gh#holoviz/param#884). + * Don’t import setuptools_scm if the .git folder doesn’t exist + (gh#holoviz/param#885). +- Update URL tag in specfile. +- Drop old macro redefinition that is no longer needed. + +------------------------------------------------------------------- +Tue Oct 24 14:58:32 UTC 2023 - Markéta Machová + +- Update to 2.0.0 + * Parameter slot values are now all inherited correctly across + a hierarchy of Parameterized classes. + * There is now a ListProxy wrapper around Selector.objects (with + forward and backward compatibility) to easily update objects + and watch objects updates. + * Parameterized classes and instances now have a rich HTML + representation that is displayed automatically in + a Jupyter/IPython notebook. + * Parameters have all gained the allow_refs and nested_refs + attributes, bringing an exceptionally useful feature that was + available in Panel since version 1.2 to Param. + * Experimental new rx reactive expressions. + * You can now use .param.update as a context manager for applying + temporary updates. + * For speed, only generate the Parameter docstring in an IPython context. + * Support for deserialization of file types into Array and DataFrame. + * Integer now accepts numpy.integer values. + * Range now does stricter validation of the slot values. + * Path now has check_exists attribute, leading it to raise an error + if path is not found on parameter instantiation. + * Add top-level __all__ and move Parameter classes to parameters.py. + * Now compatible with Python 3.8+ + * Other changes, take a look at the upstream changelog. + +------------------------------------------------------------------- +Sun Mar 26 20:01:55 UTC 2023 - Dirk Müller + +- 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) + +------------------------------------------------------------------- +Tue Dec 13 15:45:22 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.12.3: + The 1.12.3 release adds support for Python 3.11. Many thanks to @musicinmybrain (first contribution!) and @maximlt for contributing to this release. + Enhancements: + * Preserve existing Random seed behavior in Python 3.11 (#638) + * Add support for Python 3.11 (#658) + +------------------------------------------------------------------- +Wed Jun 22 00:34:34 UTC 2022 - Atri Bhattacharya + +- Update to version 1.12.2: + * Match against complete spec name when determining dynamic + watchers (gh#holoviz/param#615). + * Ensure async functionality does not cause python2 syntax + errors (gh#holoviz/param#624). + * Allow (de)serializing CalendarRange and DateRange Parameters + (gh#holoviz/param#625). + * Improve DateRange validation (gh#holoviz/param#627). + * Fix regression in @param.depends execution ordering + (gh#holoviz/param#628). + * Ensure named_objs does not fail on unhashable objects + (gh#holoviz/param#632). + * Support comparing date-like objects (gh#holoviz/param#629). + * Fixed BinaryPower example in the docs to use the correct name + EvenInteger(gh#holoviz/param#634). + +------------------------------------------------------------------- +Sun May 1 18:58:42 UTC 2022 - Atri Bhattacharya + +- Update to version 1.12.1: + * Fixed description of shared_parameters (gh#holoviz/param#568). + * Improve the error messages of Date and DateRange + (gh#holoviz/param#579). + * Clarified step error messages and other docs and links + (gh#holoviz/param#604). + * Make iscoroutinefunction more robust (gh#holoviz/param#572). + * Fix for handling misspelled parameter (gh#holoviz/param#575). + * Handle None serialization for Date, CalendarDate, Tuple, + Array, and DataFrame (gh#holoviz/param#582). + * Support async coroutines in param.depends + (gh#holoviz/param#591). + * Handle async functions in depends with watch=True + (gh#holoviz/param#611). + * Avoid equality check on Watcher (gh#holoviz/param#612). + * Fix binder (gh#holoviz/param#564). + * Fixed description of shared_parameters (gh#holoviz/param#568). + +------------------------------------------------------------------- +Tue Feb 15 23:11:44 UTC 2022 - Atri Bhattacharya + +- Update to version 1.12.0: + * Many changes, see + https://github.com/holoviz/param/releases/tag/v1.12.0. +- Drop denose.patch: Tests updated to use pytest + (gh#holoviz/param#509). + +------------------------------------------------------------------- +Fri Feb 26 20:32:36 UTC 2021 - Ben Greiner + +- Don't test optional numpy with python36, but include optional + jsonschema and (non python36) pandas for testing instead. + +------------------------------------------------------------------- +Fri Jan 29 04:27:47 UTC 2021 - Steve Kowalik + +- Remove %ifpython3 guard for the %check section. + +------------------------------------------------------------------- +Sun Jan 10 23:03:56 UTC 2021 - Atri Bhattacharya + +- Update to version 1.10.1: + * Fix serialization of Tuple (gh#holoviz/param#446). + * Declare asynchronous executor (gh#holoviz/param#449). +- Use param-%{version} format for source name. + +------------------------------------------------------------------- +Sun Jan 3 15:22:52 UTC 2021 - Benjamin Greiner + +- Make sure the correct version is reported, even though we use + the GitHub archive and are not installing a git repo. + +------------------------------------------------------------------- +Sat Oct 31 20:21:55 UTC 2020 - Atri Bhattacharya + +- Update to version 1.10.0: + * Fix ClassSelector.get_range() for class_ tuple + (gh#holoviz/param#360). + * Update links and text to point to holoviz.org + (gh#holoviz/param#364). + * Include params when calling instance in __new__. + * Internal removal of old API usage (gh#holoviz/param#372). + * Removed outdated warning message (gh#holoviz/param#373). + * Update some packaging metadata. (gh#holoviz/param#370). + * Revert Include params when calling instance in __new__ + (gh#holoviz/param#367, gh#holoviz/param#374). + * Turn .param into a property (gh#holoviz/param#386). + * Prevent param.version from failing when used alongside async + frameworks (gh#holoviz/param#389). + * Allow using iadd on constant parameter (gh#holoviz/param#400). + * Batch param.depends (gh#holoviz/param#401). + * Ensure that Parameterized remaps watchers on copy + (gh#holoviz/param#409). + * JSON serialization and schema generation + (gh#holoviz/param#414). + * Make copy of watchers dictionary on instance parameters + (gh#holoviz/param#419). + * Refactor JSONSerializer (gh#holoviz/param#422). + * Ensure Parameterized.param.objects works with uninitialized + object (gh#holoviz/param#420). + * Micro optimizations (gh#holoviz/param#424). + * Fix indentation (gh#holoviz/param#431). + * Test suite fixups and updates (gh#holoviz/param#432). + * Group depends for watched deps within a class + (gh#holoviz/param#434). + * Fix .abstract for classes named with leading underscore(s) + (gh#holoviz/param#439). + * Fix discard_events decorator (gh#holoviz/param#442). + * Add new Event parameter type (gh#holoviz/param#438). + * Pin nbconvert in doc build for now. + * Stricter nbconvert pin. +- Update denose.patch from latest pull request, plus rebasing to + apply cleanly for `tests/API0/testparameterizedobject.py` and + `tests/API1/testparameterizedobject.py`. +- Run tests only for python3 as they fail for python2. + +------------------------------------------------------------------- +Mon Aug 3 10:32:52 UTC 2020 - Matej Cepl + +- Add denose.patch to remove dependency on nose (gh#holoviz/param#423). + +------------------------------------------------------------------- +Wed Mar 11 14:59:28 UTC 2020 - Marketa Calabkova + +- Update to 1.9.3 + * Removed outdated warning message + * Internal removal of old API usage + +------------------------------------------------------------------- +Wed Jan 22 09:32:08 UTC 2020 - Martin Sirringhaus + +- Update to 1.9.2: + * No upstream changelog + +------------------------------------------------------------------- +Fri Aug 30 15:53:14 UTC 2019 - Todd R + +- Include a .version file. Other packages need this to determine + this package's version. + +------------------------------------------------------------------- +Mon Jun 3 10:57:01 UTC 2019 - Tomáš Chvátal + +- Update to 1.9.1: + * No upstream changelog + +------------------------------------------------------------------- +Wed Apr 24 09:06:21 UTC 2019 - pgajdos@suse.com + +- version update to 1.9.0 + New features: + Added support for instance parameters, allowing parameter metadata + to be modified per instance and allowing parameter objects to be + passed to Panel objects (#306) + Added label slot to Parameter, to allow overriding attribute name + for display (#319) + Added step slot to Parameter, e.g. to control Panel widget step + size (#326) + Added keywords_to_params utility for deducing Parameter types and + ranges automatically (#317) + Added support for multiple outputs from a Parameterized (#312) + Added Selector as a more user-friendly version of ObjectSelector, + accepting a list of options as a positional argument (#316) + Changes affecting backwards compatibility: + Changed from root logger to a param-specific logger; no change to + API but will change format of error and warning messages (#330) + Old abstract class Selector renamed to SelectorBase; should be no + change unless user code added custom classes inherited from + Selector without providing a constructor (#316) + Bugfixes and other improvements: + Various bugfixes (#320, #323, #327, #329) + Other improvements (#315, #325) + +------------------------------------------------------------------- +Wed Mar 13 13:43:12 UTC 2019 - Tomáš Chvátal + +- Update to 1.8.2: + * Added output decorator and outputs lookup method (#299, #312) + +------------------------------------------------------------------- +Fri Jan 4 16:19:59 UTC 2019 - Todd R + +- update to version 1.8.1 + * Added positional default arguments for nearly all Parameter + subclasses (apart from ClassSelector) + * Minor bugfixes for watching callbacks +- update to version 1.8.0 + * Parameterized methods can now declare @depends(p,q) to indicate + that they depend on parameters p and q (defaulting to all + parameters) + * Parameterized methods can depend on subobjects with + @depends(p.param,q.param.r), where p.param indicates + dependencies on all parameters of p and q.param.r indicates a + dependency on parameter r of q. + * Functions and methods can watch parameter values, re-running + when those values change or when an explicit trigger is issued, + and can unwatch them later if needed. + * Multiple events can be batched to trigger callbacks only once + for a coordinated set of changes + * Added support in ObjectSelector for selecting lists and dicts + (#268) + * Added pandas DataFrame and Series parameter types (#285) + * Added support for regular expression validation to String + Parameter (#241, #245) + +------------------------------------------------------------------- +Tue Jul 17 08:51:50 UTC 2018 - tchvatal@suse.com + +- Switch to github tarball and enable tests. + +------------------------------------------------------------------- +Mon Jul 16 16:11:19 UTC 2018 - arun@gmx.de + +- 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). + +------------------------------------------------------------------- +Fri May 11 23:11:13 UTC 2018 - arun@gmx.de + +- update to version 1.6.1: + * Restores support for the previous versioning system (pre 1.6; see + #225), and fixes a number of issues with the new versioning + system: + + Allow package name to differ from repository name + (pyviz/autover#39) + + Allow develop install to work when repository is dirty + (pyviz/autover#41) + + Fixed failure to report dirty when commit count is 0 + (pyviz/autover#44) + +------------------------------------------------------------------- +Wed Apr 18 02:07:38 UTC 2018 - toddrme2178@gmail.com + +- Update to version 1.6.0 + * Drop Cython build + +------------------------------------------------------------------- +Thu Aug 17 15:39:13 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 1.5.1 + * Fixed error messages for ClassSelector with tuple of classes + * Added get and contains methods for ParamOverrides +- Update to version 1.5.0 + * Added Range, Color, and Date parameters + * Improved ObjectSelector error messages + * Minor bugfixes + +------------------------------------------------------------------- +Tue Oct 25 20:58:02 UTC 2016 - toddrme2178@gmail.com + +- Update to version 1.4.2: + * Improved version reporting from version module + * Minor bugfixes +- update to version 1.4.1: + * Changed Selector parameters to respect order of provided options + * Allow softbounds to be accessed like an attribute +- update to version 1.4.0: + * Improved import ordering in parameterized.py + * Fixed problematic travis shield link + * Added 1.3.2 release notes + * Add pypy to .travis.yml + * Updated badge definitions to point to working URLS + * Added optional support for setuptools in setup.py + * Removed out-of-date pyflakes ignore (imports are used). 69d00b5 + * Added flake8 to travis config (and for now, output does not affect... + * flake8: ignore rule about white space after comma + * Fixed the 'python versions' shield. + * Enabled cythonizing of param modules if Cython is available + * Removed testing of Python 3.2 from travis.yml + * Added shared_parameters context manager + * Added unit test for shared_parameters context manager + * Skip processing non-parameterized classes in setup_param + * Update index.rst + * Fixed formatting in docs + * Fixed date in docs + * Fixed typo in docs + * Cleaned up get_range 6942b4f + * Fixed formatting of print_param_defaults under Python2.7 and + Python3 + * Added new Parameter types from the paramnb project + * Fixed previous commit for Python2.6 compatibility + * Fixed tests for python2.6 compatibility + * commit_count can now be set via the Version constructor + * Updated docstring of param.Version constructor + +------------------------------------------------------------------- +Fri Jul 10 08:16:23 UTC 2015 - toddrme2178@gmail.com + +- update to version 1.3.2: + * Updated unit test of ParamPager in the param IPython extension + * Suppressing default parameter object names from the ParamPager + title + * Made _get_param_info and _param_docstrings methods of Pager public + * Unicode support for param.String + * Added shield displaying all supported Python versions + * Added check for default value of String + * Minor fix to logging: python loggers can accept keyword arguments. + * Fixed Pyflakes errors + * Fixed trailing whitespaces + +------------------------------------------------------------------- +Fri Apr 10 13:47:17 UTC 2015 - toddrme2178@gmail.com + +- update to version 1.3.1: + * Minor bugfix release to restore pre-1.3.0 script_repr behavior + (accidentally changed in 1.3.0) and to fix issues with logging. + * Param’s logging interface now matches that of Python’s logging + module, making it simpler to use logging (see Python’s logging + module for details). Note therefore that Param’s logging methods + (a) no longer call functions that are passed as arguments + (instead, Python’s logging module does lazy string merges), and + (b) no longer automatically combine strings passed as arguments + (instead, Python’s logging module supports string formatting). +- update to version 1.3.0: + * Added ‘allow_None’ support to all Parameters. Any subclass of + Parameter that checks types and/or values should be modified to + add appropriate handling of allow_None. + * Improved pretty printing (script_repr) of Parameterized instances, + and made available via the pprint method. The script_repr name + will be removed in a future release. + * Added (reproducible) time-dependent random streams + (numbergen.TimeAwareRandomState). + * Added label and unit parameters to param.Time class. + * Improved optional IPython extension. + +------------------------------------------------------------------- +Mon Jul 14 11:33:03 UTC 2014 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-param.spec b/python-param.spec new file mode 100644 index 0000000..a174e27 --- /dev/null +++ b/python-param.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-param +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?sle15_python_module_pythons} +Name: python-param +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 +# 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} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: python-jsonschema +Recommends: python-numpy +Recommends: python-pandas +BuildArch: noarch +%python_subpackages + +%description +Param is a library providing Parameters: Python attributes extended to +have features such as type and range checking, dynamically generated +values, documentation strings, default values, etc., each of which is +inherited from parent classes if not specified in a subclass. + +Param contains only two required Python files, with no external +dependencies, and is provided freely for both non-commercial and +commercial use under a BSD license, so that it can easily be included +as part of other projects. + +%prep +%autosetup -p1 -n param-%{version} + +echo '{"git_describe": "v%{version}", "version_string": "%{version}"}' > param/.version + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest +%{python_expand # make sure the correct version is reported. Other packages depend on it. +PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -c ' +import param +v = param.__version__ +assert v == "%{version}", "wrong version reported: {}".format(v) +' +} + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitelib}/param/ +%{python_sitelib}/numbergen/ +%{python_sitelib}/param-%{version}.dist-info/ + +%changelog