Dirk Mueller
8b816cac44
* Fix #245, never introduce new nodes during discard. * Fix #268, do not rely on well implemented __ne__ for keys in pmaps, instead do explicit inversion of equality comparison when checking for inequality. * Officially support Python 3.12. * Officially drop support for Python 3.7. * Fix #273, build more types of wheels. * Fix #282, add generic types to types * Fix #281, defaultdict can now be frozen. NB! This is a backwards incompatible fix since defaultdict was not previously frozen. to 0.17.0. Thanks @cool-RR for this! * Fix #166, Propagate 'ignore_extra' param in hierarchy. Thanks * Fix #154, not possible to insert empty pmap as leaf node with * Python 3.4 is no longer officially supported since it is EOL * Fix #157, major improvements to type hints. Thanks @je-l for * Fix #121, regression in PClass.set() OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyrsistent?expand=0&rev=31
72 lines
2.2 KiB
RPMSpec
72 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-pyrsistent
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pyrsistent
|
|
Version: 0.20.0
|
|
Release: 0
|
|
Summary: Persistent, Functional, Immutable data structures
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: http://github.com/tobgu/pyrsistent/
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyrsistent/pyrsistent-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module hypothesis}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%python_subpackages
|
|
|
|
%description
|
|
Pyrsistent is a number of persistent collections
|
|
(by some referred to as functional data structures).
|
|
Persistent in the sense that they are immutable.
|
|
|
|
All methods on a data structure that would normally
|
|
mutate it instead return a new copy of the structure
|
|
containing the requested updates. The original structure
|
|
is left untouched.
|
|
|
|
%prep
|
|
%setup -q -n pyrsistent-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch -ra
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.mit
|
|
%doc CHANGES.txt README.rst
|
|
%pycache_only %{python_sitearch}/__pycache__/_pyrsistent*
|
|
%{python_sitearch}/_pyrsistent*
|
|
%{python_sitearch}/pvectorc*
|
|
%{python_sitearch}/pyrsistent
|
|
%{python_sitearch}/pyrsistent-%{version}.dist-info
|
|
|
|
%changelog
|