New upstream version 19.3.0 and removed Python 2

This commit is contained in:
Lumir Balhar 2019-11-18 14:50:26 +01:00
parent a64b025651
commit c926887d0e
3 changed files with 8 additions and 33 deletions

1
.gitignore vendored
View File

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

View File

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

View File

@ -1 +1 @@
SHA512 (attrs-19.1.0.tar.gz) = c7c13d1aa2c8f8b5459cda02dee8f311a22e3d198bda3d4c5508e6e1914004e53388d149fea61358784f28cebf8e712f7807018586eeaa87d31199085e59675a
SHA512 (attrs-19.3.0.tar.gz) = f050ff707cb95f0639b239435b65dacc164a540b5a456d27be5f47615ee7a860ae38096cd16769b0d07fe8e5e952ccaa5af0eb0aafb5166421f9eb3edf248425