#4 New upstream version 19.3.0 and bcond for Python 2
Merged 16 days ago by brouhaha. Opened 17 days ago by lbalhar.
rpms/ lbalhar/python-attrs master  into  master

file modified
+1

@@ -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

file modified
+6 -32

@@ -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 @@ 

  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 @@ 

  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 @@ 

  %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 <lbalhar@redhat.com> - 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 <mhroncok@redhat.com> - 19.1.0-6

  - Drop Python 2 optional build dependencies

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- SHA512 (attrs-19.1.0.tar.gz) = c7c13d1aa2c8f8b5459cda02dee8f311a22e3d198bda3d4c5508e6e1914004e53388d149fea61358784f28cebf8e712f7807018586eeaa87d31199085e59675a

+ SHA512 (attrs-19.3.0.tar.gz) = f050ff707cb95f0639b239435b65dacc164a540b5a456d27be5f47615ee7a860ae38096cd16769b0d07fe8e5e952ccaa5af0eb0aafb5166421f9eb3edf248425

no initial comment

rebased onto c926887

17 days ago

Looks good. Technically, the bugzilla says to give the maintainer a week, but the Python Exodus is already happening and see also https://pagure.io/fesco/issue/2283

So let's say I'll merge this on Thursday, if there is no objection.

Pull-Request has been merged by brouhaha

16 days ago

Thanks for marking the bug "closed rawhide". I just went to do that and found that you beat me to it.

@brouhaha please head over to https://pagure.io/fesco/issue/2283 and provide an update on your status there. We'd hate to lose you through a misunderstanding.