python-pyrsistent/python-pyrsistent.spec
Dirk Mueller 153ae2f881 - update to 0.18.0:
* Fix #209 Update freeze recurse into pyrsistent data structures and thaw to
    recurse into lists and dicts
  * Fix #226, stop using deprecated exception.message.
  * Fix #211, add union operator to persistent maps.
  * Fix #194, declare build dependencies through pyproject.toml.
  * Officially drop Python 3.5 support.
  * Fix #223, release wheels for all major platforms.
  * Fix #221, KeyError obscured by TypeError if key is a tuple.
  * Fix LICENSE file name spelling.
  * Fix #216, add abstractmethod decorator for CheckedType and ABCMeta for
    _CheckedTypeMeta.
  * Fix #228, rename example classes in tests to avoid name clashes with pytest.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyrsistent?expand=0&rev=24
2021-10-16 22:04:31 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pyrsistent
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-pyrsistent
Version: 0.18.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 pytest}
BuildRequires: %{python_module setuptools}
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}"
%python_build
%install
%python_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}*-info
%changelog