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