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