From 46eb293f543c36ba9152a41732ffdc654ed8e4dd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 20 Jan 2019 12:14:41 +0100 Subject: [PATCH] update to version 0.14.9, re-enable the test suite --- .gitignore | 4 ++ python-pyrsistent.spec | 89 +++++++++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 63 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 83fa9e2..9ccce4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ +/results_* +/*.src.rpm + /pyrsistent-0.14.2.tar.gz +/pyrsistent-0.14.9.tar.gz diff --git a/python-pyrsistent.spec b/python-pyrsistent.spec index 98c5e35..c180222 100644 --- a/python-pyrsistent.spec +++ b/python-pyrsistent.spec @@ -1,55 +1,81 @@ -%global srcname pyrsistent -%global mod_name pyrsistent +%global pypi_name pyrsistent +%global common_description %{expand: +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.} + +%{?python_enable_dependency_generator} + +Name: python-%{pypi_name} Summary: Persistent/Functional/Immutable data structures -Name: python-%{srcname} -Version: 0.14.2 -Release: 6%{?dist} +Version: 0.14.9 +Release: 1%{?dist} License: MIT -Source0: https://files.pythonhosted.org/packages/source/p/%{mod_name}/%{mod_name}-%{version}.tar.gz + URL: http://github.com/tobgu/pyrsistent/ +Source0: %{pypi_source} -%description -Pyrsistent is a number of persistent collections (by some referred to -as functional data structures). Persistent in the sense that they are -immutable. - - -%package -n python%{python3_pkgversion}-%{srcname} -Summary: Persistent/Functional/Immutable data structures -%{?python_provide:%python_provide python%{python3_pkgversion}-%{mod_name}} -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-six BuildRequires: gcc +BuildRequires: python3-devel + +BuildRequires: python3dist(hypothesis) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-runner) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(six) + +%description %{common_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %{common_description} -%description -n python%{python3_pkgversion}-%{srcname} -Pyrsistent is a number of persistent collections (by some referred to -as functional data structures). Persistent in the sense that they are -immutable. %prep -%setup -q -n %{srcname}-%{version} +%autosetup -n %{pypi_name}-%{version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + %build %py3_build + %install %py3_install -%check -#% {__python3} setup.py test -%files -n python%{python3_pkgversion}-%{srcname} -%license LICENCE.mit +%check +%{__python3} setup.py test + + +%files -n python3-%{pypi_name} %doc README.rst -%{python3_sitearch}/__pycache__/_%{srcname}_*.pyc -%{python3_sitearch}/_%{srcname}_version.py -%{python3_sitearch}/%{srcname} -%{python3_sitearch}/%{srcname}-%{version}-py?.?.egg-info/* -%{python3_sitearch}/pvectorc.cpython*.so +%license LICENCE.mit + +%{python3_sitearch}/_pyrsistent_version.py +%{python3_sitearch}/__pycache__/* + +%{python3_sitearch}/%{pypi_name}/ +%{python3_sitearch}/pvectorc.cpython-3?m-*.so +%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Mon Jan 14 2019 Fabio Valentini - 0.14.9-1 +- Update to version 0.14.9. +- Enable the test suite. + * Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek - 0.14.2-6 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal @@ -75,3 +101,4 @@ immutable. * Tue Sep 13 2016 Devrim Gündüz 0.11.13-1 - Initial packaging for PostgreSQL YUM repository, to satisfy pgadmin4 dependency. + diff --git a/sources b/sources index 69d23d9..4ce174b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyrsistent-0.14.2.tar.gz) = 06ae1b9d15ac72b09d2fdb80e28849a105cd6955f206472649996318c2dc9915f251d76908a913c02d5583e1e818ff456af496b13fe9b094c043cd2548b2b6d5 +SHA512 (pyrsistent-0.14.9.tar.gz) = bdf36228f80ce1d018d5baadae5cfb5aa3d9fddcd5144dc644cd6e9fd8d315ecb9ec8c48a8fb9ef73b4af6fceb28f1b83020cc3b4138abb5728ba24cdbf03d8f