002612
# Disable tests on RHEL9 as to not pull in the test dependencies
002612
# Specify --with tests to run the tests e.g. on EPEL
002612
%bcond_with tests
002612
002612
%global modname attrs
002612
002612
Name:           python-attrs
002612
Version:        20.3.0
a28a32
Release:        7%{?dist}
002612
Summary:        Python attributes without boilerplate
002612
002612
License:        MIT
002612
URL:            http://www.attrs.org/
002612
BuildArch:      noarch
002612
Source0:        https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
002612
002612
002612
BuildRequires:  python%{python3_pkgversion}-devel
002612
BuildRequires:  python%{python3_pkgversion}-setuptools
002612
%if %{with tests}
002612
BuildRequires:  python%{python3_pkgversion}-pytest
002612
BuildRequires:  python%{python3_pkgversion}-hypothesis
002612
BuildRequires:  python%{python3_pkgversion}-six
002612
BuildRequires:  python%{python3_pkgversion}-zope-interface
002612
%endif
002612
002612
%description
002612
attrs is an MIT-licensed Python package with class decorators that
002612
ease the chores of implementing the most common attribute-related
002612
object protocols.
002612
002612
%package -n python%{python3_pkgversion}-%{modname}
002612
Summary:        %{summary}
002612
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
002612
002612
%description -n python%{python3_pkgversion}-%{modname}
002612
attrs is an MIT-licensed Python package with class decorators that
002612
ease the chores of implementing the most common attribute-related
002612
object protocols.
002612
002612
%prep
002612
%setup -q -n %{modname}-%{version}
002612
002612
%build
002612
%py3_build
002612
002612
%install
002612
%py3_install
002612
002612
%if %{with tests}
002612
%check
002612
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
002612
%endif
002612
002612
%files -n python%{python3_pkgversion}-%{modname}
002612
%license LICENSE
002612
%doc AUTHORS.rst README.rst
002612
%{python3_sitelib}/*
002612
002612
%changelog
a28a32
* Tue Feb 22 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-7
a28a32
- Add gating configuration and a simple smoke test
a28a32
- Related: rhbz#1950291
a28a32
a28a32
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-6
a28a32
- Add automatically generated Obsoletes tag with the python39- prefix
a28a32
  for smoother upgrade from RHEL8
a28a32
- Related: rhbz#1990421
a28a32
002612
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-5
002612
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
002612
  Related: rhbz#1991688
002612
002612
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-4
002612
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
002612
002612
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.3.0-3
002612
- Disable tests on RHEL9 to avoid pulling in the test dependencies
002612
002612
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.0-2
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
002612
002612
* Thu Nov 19 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3.0-1
002612
- Update to 20.3.0 (#1894866)
002612
002612
* Mon Sep 07 2020 Lumír Balhar <lbalhar@redhat.com> - 20.2.0-1
002612
- Update to 20.2.0 (#1876063)
002612
002612
* Thu Aug 27 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1.0-1
002612
- Update to 20.1.0 (#1870794)
002612
002612
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-5
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
002612
002612
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-4
002612
- Rebuilt for Python 3.9
002612
002612
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-3
002612
- Bootstrap for Python 3.9
002612
002612
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-2
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
002612
002612
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-1
002612
- New upstream version 19.3.0 (#1761701)
002612
- Python 2 subpackage has been removed (#1773236)
002612
002612
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-6
002612
- Drop Python 2 optional build dependencies
002612
002612
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-5
002612
- Rebuilt for Python 3.8.0rc1 (#1748018)
002612
002612
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-4
002612
- Rebuilt for Python 3.8
002612
002612
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-3
002612
- Bootstrap for Python 3.8
002612
002612
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.1.0-2
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
002612
002612
* Tue Mar 19 2019 Eric Smith <brouhaha@fedoraproject.org> 19.1.0-1
002612
- Updated to latest upstream.
002612
002612
* Mon Feb 25 2019 Eric Smith <brouhaha@fedoraproject.org> 18.2.0-1
002612
- Updated to latest upstream.
002612
002612
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-8
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
002612
002612
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-7
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
002612
002612
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-6
002612
- Rebuilt for Python 3.7
002612
002612
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-5
002612
- Bootstrap for Python 3.7
002612
002612
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.4.0-4
002612
- Update Python 2 dependency declarations to new packaging standards
002612
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
002612
002612
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-3
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
002612
002612
* Wed Jan 17 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-2
002612
- Added BuildRequires for python<n>-six.
002612
002612
* Thu Jan 11 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-1
002612
- Updated to latest upstream.
002612
002612
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.3.0-3
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
002612
002612
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.3.0-2
002612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
002612
002612
* Wed Dec 14 2016 Eric Smith <brouhaha@fedoraproject.org> 16.3.0-1
002612
- Updated to latest upstream.
002612
002612
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 16.1.0-3
002612
- Enable tests
002612
002612
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 16.1.0-2
002612
- Rebuild for Python 3.6
002612
- Disable python3 tests for now
002612
002612
* Sat Sep 10 2016 Eric Smith <brouhaha@fedoraproject.org> 16.1.0-1
002612
- Updated to latest upstream.
002612
- Removed patch, no longer necessary.
002612
- Removed "with python3" conditionals.
002612
002612
* Thu Aug 18 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-6
002612
- Build for Python 3.4 in EPEL7.
002612
002612
* Thu Aug 18 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-5
002612
- Updated based on Fedora package review (#1366878).
002612
- Fix check section, though tests can not be run for EPEL7.
002612
- Add patch to skip two tests with keyword collisions.
002612
002612
* Tue Aug 16 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-4
002612
- Fix python2 BuildRequires.
002612
002612
* Mon Aug 15 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-3
002612
- Updated based on Fedora package review (#1366878).
002612
002612
* Sun Aug 14 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-2
002612
- Updated based on Fedora package review (#1366878).
002612
002612
* Sat Aug 13 2016 Eric Smith <brouhaha@fedoraproject.org> 16.0.0-1
002612
- Initial version.