e9bcb8
%global modname attrs
e9bcb8
e9bcb8
%if 0%{?rhel} && 0%{?rhel} <= 7
e9bcb8
# Can't run tests on EPEL7 due to need for pytest >= 2.8
e9bcb8
%bcond_with tests
e9bcb8
%else
e9bcb8
# Turn the tests off when bootstrapping Python, because pytest requires attrs
e9bcb8
%bcond_with tests
e9bcb8
%endif
e9bcb8
e9bcb8
Name:           python-attrs
e9bcb8
Version:        19.3.0
e9bcb8
Release:        3%{?dist}
e9bcb8
Summary:        Python attributes without boilerplate
e9bcb8
e9bcb8
License:        MIT
e9bcb8
URL:            http://www.attrs.org/
e9bcb8
BuildArch:      noarch
e9bcb8
# Exclude i686 arch. Due to a modularity issue it's being added to the
e9bcb8
# x86_64 compose of CRB, but we don't want to ship it at all.
e9bcb8
# See: https://projects.engineering.redhat.com/browse/RCM-72605
e9bcb8
ExcludeArch:    i686
e9bcb8
Source0:        https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
e9bcb8
e9bcb8
e9bcb8
BuildRequires:  python%{python3_pkgversion}-devel
e9bcb8
BuildRequires:  python%{python3_pkgversion}-rpm-macros
e9bcb8
BuildRequires:  python%{python3_pkgversion}-setuptools
e9bcb8
%if %{with tests}
e9bcb8
BuildRequires:  python%{python3_pkgversion}-pytest
e9bcb8
BuildRequires:  python%{python3_pkgversion}-hypothesis
e9bcb8
BuildRequires:  python%{python3_pkgversion}-six
e9bcb8
BuildRequires:  python%{python3_pkgversion}-zope-interface
e9bcb8
%endif
e9bcb8
e9bcb8
%description
e9bcb8
attrs is an MIT-licensed Python package with class decorators that
e9bcb8
ease the chores of implementing the most common attribute-related
e9bcb8
object protocols.
e9bcb8
e9bcb8
%package -n python%{python3_pkgversion}-%{modname}
e9bcb8
Summary:        %{summary}
e9bcb8
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
e9bcb8
e9bcb8
%description -n python%{python3_pkgversion}-%{modname}
e9bcb8
attrs is an MIT-licensed Python package with class decorators that
e9bcb8
ease the chores of implementing the most common attribute-related
e9bcb8
object protocols.
e9bcb8
e9bcb8
%prep
e9bcb8
%setup -q -n %{modname}-%{version}
e9bcb8
e9bcb8
%build
e9bcb8
%py3_build
e9bcb8
e9bcb8
%install
e9bcb8
%py3_install
e9bcb8
e9bcb8
%if %{with tests}
e9bcb8
%check
e9bcb8
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
e9bcb8
%endif
e9bcb8
e9bcb8
%files -n python%{python3_pkgversion}-%{modname}
e9bcb8
%license LICENSE
e9bcb8
%doc AUTHORS.rst README.rst
e9bcb8
%{python3_sitelib}/*
e9bcb8
e9bcb8
%changelog
e9bcb8
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 19.3.0-3
e9bcb8
- Exclude unsupported i686 arch
e9bcb8
e9bcb8
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-2
e9bcb8
- Adjusted for Python 3.8 module in RHEL 8
e9bcb8
e9bcb8
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-1
e9bcb8
- New upstream version 19.3.0 (#1761701)
e9bcb8
- Python 2 subpackage has been removed (#1773236)
e9bcb8
e9bcb8
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-6
e9bcb8
- Drop Python 2 optional build dependencies
e9bcb8
e9bcb8
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-5
e9bcb8
- Rebuilt for Python 3.8.0rc1 (#1748018)
e9bcb8
e9bcb8
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-4
e9bcb8
- Rebuilt for Python 3.8
e9bcb8
e9bcb8
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-3
e9bcb8
- Bootstrap for Python 3.8
e9bcb8
e9bcb8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.1.0-2
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e9bcb8
e9bcb8
* Tue Mar 19 2019 Eric Smith <brouhaha@fedoraproject.org> 19.1.0-1
e9bcb8
- Updated to latest upstream.
e9bcb8
e9bcb8
* Mon Feb 25 2019 Eric Smith <brouhaha@fedoraproject.org> 18.2.0-1
e9bcb8
- Updated to latest upstream.
e9bcb8
e9bcb8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-8
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e9bcb8
e9bcb8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-7
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e9bcb8
e9bcb8
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-6
e9bcb8
- Rebuilt for Python 3.7
e9bcb8
e9bcb8
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-5
e9bcb8
- Bootstrap for Python 3.7
e9bcb8
e9bcb8
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.4.0-4
e9bcb8
- Update Python 2 dependency declarations to new packaging standards
e9bcb8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e9bcb8
e9bcb8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-3
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e9bcb8
e9bcb8
* Wed Jan 17 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-2
e9bcb8
- Added BuildRequires for python<n>-six.
e9bcb8
e9bcb8
* Thu Jan 11 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-1
e9bcb8
- Updated to latest upstream.
e9bcb8
e9bcb8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.3.0-3
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e9bcb8
e9bcb8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.3.0-2
e9bcb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e9bcb8
e9bcb8
* Wed Dec 14 2016 Eric Smith <brouhaha@fedoraproject.org> 16.3.0-1
e9bcb8
- Updated to latest upstream.
e9bcb8
e9bcb8
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 16.1.0-3
e9bcb8
- Enable tests
e9bcb8
e9bcb8
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 16.1.0-2
e9bcb8
- Rebuild for Python 3.6
e9bcb8
- Disable python3 tests for now
e9bcb8
e9bcb8
* Sat Sep 10 2016 Eric Smith <brouhaha@fedoraproject.org> 16.1.0-1
e9bcb8
- Updated to latest upstream.
e9bcb8
- Removed patch, no longer necessary.
e9bcb8
- Removed "with python3" conditionals.
e9bcb8
e9bcb8
* Thu Aug 18 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-6
e9bcb8
- Build for Python 3.4 in EPEL7.
e9bcb8
e9bcb8
* Thu Aug 18 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-5
e9bcb8
- Updated based on Fedora package review (#1366878).
e9bcb8
- Fix check section, though tests can not be run for EPEL7.
e9bcb8
- Add patch to skip two tests with keyword collisions.
e9bcb8
e9bcb8
* Tue Aug 16 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-4
e9bcb8
- Fix python2 BuildRequires.
e9bcb8
e9bcb8
* Mon Aug 15 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-3
e9bcb8
- Updated based on Fedora package review (#1366878).
e9bcb8
e9bcb8
* Sun Aug 14 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-2
e9bcb8
- Updated based on Fedora package review (#1366878).
e9bcb8
e9bcb8
* Sat Aug 13 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-1
e9bcb8
- Initial version.