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