From c926887d0e319191f56cec7bbf8ed6fd34bd88bd Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mon, 18 Nov 2019 14:50:26 +0100 Subject: [PATCH] New upstream version 19.3.0 and removed Python 2 --- .gitignore | 1 + python-attrs.spec | 38 ++++++-------------------------------- sources | 2 +- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index 9da95af..5075dca 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /attrs-17.4.0.tar.gz /attrs-18.2.0.tar.gz /attrs-19.1.0.tar.gz +/attrs-19.3.0.tar.gz diff --git a/python-attrs.spec b/python-attrs.spec index f39840e..eaba9e4 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -9,8 +9,8 @@ %endif Name: python-attrs -Version: 19.1.0 -Release: 6%{?dist} +Version: 19.3.0 +Release: 1%{?dist} Summary: Python attributes without boilerplate License: MIT @@ -19,15 +19,6 @@ BuildArch: noarch Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%if %{with tests} && 0%{?fedora} < 32 -BuildRequires: python2-pytest -BuildRequires: python2-hypothesis -BuildRequires: python2-six -BuildRequires: python2-zope-interface -%endif - BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with tests} @@ -42,15 +33,6 @@ attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols. -%package -n python2-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{modname}} - -%description -n python2-%{modname} -attrs is an MIT-licensed Python package with class decorators that -ease the chores of implementing the most common attribute-related -object protocols. - %package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} @@ -64,34 +46,26 @@ object protocols. %setup -q -n %{modname}-%{version} %build -%py2_build %py3_build %install -# Doesn't install anything to /usr/bin, so I don't think the order of -# installing python2 and python3 actually matters. %py3_install -%py2_install %if %{with tests} %check -%if 0%{?fedora} < 32 -PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2.7 -v -%endif PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v %endif -%files -n python2-%{modname} -%license LICENSE -%doc AUTHORS.rst README.rst -%{python2_sitelib}/* - %files -n python%{python3_pkgversion}-%{modname} %license LICENSE %doc AUTHORS.rst README.rst %{python3_sitelib}/* %changelog +* Mon Nov 18 2019 Lumír Balhar - 19.3.0-1 +- New upstream version 19.3.0 (#1761701) +- Python 2 subpackage has been removed (#1773236) + * Sun Oct 13 2019 Miro Hrončok - 19.1.0-6 - Drop Python 2 optional build dependencies diff --git a/sources b/sources index b140dfc..2619bbf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (attrs-19.1.0.tar.gz) = c7c13d1aa2c8f8b5459cda02dee8f311a22e3d198bda3d4c5508e6e1914004e53388d149fea61358784f28cebf8e712f7807018586eeaa87d31199085e59675a +SHA512 (attrs-19.3.0.tar.gz) = f050ff707cb95f0639b239435b65dacc164a540b5a456d27be5f47615ee7a860ae38096cd16769b0d07fe8e5e952ccaa5af0eb0aafb5166421f9eb3edf248425