forked from pool/python-param
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
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ad523efb76c0a45416dd2b5885ad6207faf0842bb9b2048d68e1edea1ad4e30
|
||||
size 470813
|
||||
3
param-2.0.0.tar.gz
Normal file
3
param-2.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:19823383b0dac5a794152b85336cb4c6b0d0ef61a2b1eb7cd272aae141be0117
|
||||
size 169249
|
||||
@@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 14:58:32 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -19,21 +19,26 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define modname param
|
||||
Name: python-param
|
||||
Version: 1.13.0
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: Declarative Python programming using Parameters
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://param.pyviz.org/
|
||||
Source0: https://github.com/holoviz/param/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/param/param-%{version}.tar.gz
|
||||
Source100: python-param-rpmlintrc
|
||||
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 setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
||||
BuildRequires: %{python_module pandas if (%python-base without python36-base)}
|
||||
Recommends: python-jsonschema
|
||||
Recommends: python-numpy
|
||||
Recommends: python-pandas
|
||||
@@ -54,20 +59,19 @@ as part of other projects.
|
||||
%prep
|
||||
%autosetup -p1 -n param-%{version}
|
||||
|
||||
sed -i -e 's:version=get_setup_version("param"):version="%{version}":g' setup.py
|
||||
sed -i -e 's:__version__ = "0.0.0+unknown":__version__ = "%{version}":' param/__init__.py
|
||||
echo '{"git_describe": "v%{version}", "version_string": "%{version}"}' > param/.version
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
# move docs to the param folder
|
||||
%python_expand mv %{buildroot}%{$python_sitelib}/doc %{buildroot}%{$python_sitelib}/param/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Exclusion documented in gh#holoviz/param#423
|
||||
%pytest -k 'not test_abstract_class' tests/*/*.py -ra
|
||||
%pytest
|
||||
%{python_expand # make sure the correct version is reported. Other packages depend on it.
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python -c '
|
||||
@@ -82,6 +86,6 @@ assert v == "%{version}", "wrong version reported: {}".format(v)
|
||||
%doc README.md
|
||||
%{python_sitelib}/param/
|
||||
%{python_sitelib}/numbergen/
|
||||
%{python_sitelib}/param-%{version}-py%{python_version}.egg-info/
|
||||
%{python_sitelib}/param-%{version}.dist-info/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user