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