15
0
forked from pool/python-param
Files
python-param/python-param.spec
Nico Krapp 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

89 lines
2.9 KiB
RPMSpec

#
# 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.0
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