15
0
forked from pool/python-param
Files
python-param/python-param.spec
Dirk Mueller be1f2516f5 - 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/package/show/devel:languages:python/python-param?expand=0&rev=58
2024-05-07 12:55:52 +00:00

90 lines
2.9 KiB
RPMSpec

#
# spec file for package python-param
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define modname param
Name: python-param
Version: 2.1.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
# 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}
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