|
|
|
@ -1,35 +1,25 @@
|
|
|
|
|
%global modname attrs
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
# Can't run tests on EPEL7 due to need for pytest >= 2.8
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
%else
|
|
|
|
|
# Turn the tests off when bootstrapping Python, because pytest requires attrs
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-attrs
|
|
|
|
|
Version: 19.3.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 17.4.0
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.attrs.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-hypothesis
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-six
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# can't run validator tests on EL without python-zope-interface
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-zope-interface
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -50,15 +40,22 @@ object protocols.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# can't run validator tests on EL without python-zope-interface
|
|
|
|
|
rm tests/test_validators.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
# Can't run tests on EPEL7 due to need for pytest >= 2.8
|
|
|
|
|
%else
|
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
|
@ -67,55 +64,19 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 19.3.0-3
|
|
|
|
|
- Exclude unsupported i686 arch
|
|
|
|
|
* Mon Jul 09 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-6
|
|
|
|
|
- Remove python2 subpackage
|
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1590809
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-2
|
|
|
|
|
- Adjusted for Python 3.8 module in RHEL 8
|
|
|
|
|
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-5
|
|
|
|
|
- Allow Python 2 for build
|
|
|
|
|
see https://hurl.corp.redhat.com/rhel8-py2
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 19.3.0-1
|
|
|
|
|
- New upstream version 19.3.0 (#1761701)
|
|
|
|
|
- Python 2 subpackage has been removed (#1773236)
|
|
|
|
|
* Fri Jun 22 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-4
|
|
|
|
|
- Remove the python2-hypothesis circular build dependency
|
|
|
|
|
|
|
|
|
|
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-6
|
|
|
|
|
- Drop Python 2 optional build dependencies
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-5
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-4
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-3
|
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 19 2019 Eric Smith <brouhaha@fedoraproject.org> 19.1.0-1
|
|
|
|
|
- Updated to latest upstream.
|
|
|
|
|
|
|
|
|
|
* Mon Feb 25 2019 Eric Smith <brouhaha@fedoraproject.org> 18.2.0-1
|
|
|
|
|
- Updated to latest upstream.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-6
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-5
|
|
|
|
|
- Bootstrap for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.4.0-4
|
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
* Thu Jun 14 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-3
|
|
|
|
|
- Remove the python-zope-interface build dependency
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-2
|
|
|
|
|
- Added BuildRequires for python<n>-six.
|
|
|
|
|