|
|
@ -1,11 +1,12 @@
|
|
|
|
%global modname attrs
|
|
|
|
# Disable tests on RHEL9 as to not pull in the test dependencies
|
|
|
|
|
|
|
|
# Specify --with tests to run the tests e.g. on EPEL
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
%global modname attrs
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-attrs
|
|
|
|
Name: python-attrs
|
|
|
|
Version: 17.4.0
|
|
|
|
Version: 20.3.0
|
|
|
|
Release: 10%{?dist}
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -13,53 +14,21 @@ URL: http://www.attrs.org/
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Skip tests requiring python2-hypothesis
|
|
|
|
|
|
|
|
%bcond_with py2_test_with_hypothesis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python2-six
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
BuildRequires: python2-pytest
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with py2_test_with_hypothesis}
|
|
|
|
|
|
|
|
BuildRequires: python2-hypothesis
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-six
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-hypothesis
|
|
|
|
BuildRequires: python%{python3_pkgversion}-hypothesis
|
|
|
|
%endif # tests
|
|
|
|
BuildRequires: python%{python3_pkgversion}-six
|
|
|
|
%endif # python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
# can't run validator tests on EL without python-zope-interface
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: python2-zope-interface
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-zope-interface
|
|
|
|
BuildRequires: python%{python3_pkgversion}-zope-interface
|
|
|
|
%endif # python3
|
|
|
|
%endif
|
|
|
|
%endif # rhel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that
|
|
|
|
ease the chores of implementing the most common attribute-related
|
|
|
|
ease the chores of implementing the most common attribute-related
|
|
|
|
object protocols.
|
|
|
|
object protocols.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{modname}
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname}
|
|
|
|
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that
|
|
|
|
|
|
|
|
ease the chores of implementing the most common attribute-related
|
|
|
|
|
|
|
|
object protocols.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{modname}
|
|
|
|
%package -n python%{python3_pkgversion}-%{modname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
@ -68,85 +37,113 @@ Summary: %{summary}
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that
|
|
|
|
ease the chores of implementing the most common attribute-related
|
|
|
|
ease the chores of implementing the most common attribute-related
|
|
|
|
object protocols.
|
|
|
|
object protocols.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%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
|
|
|
|
%build
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# Doesn't install anything to /usr/bin, so I don't think the order of
|
|
|
|
|
|
|
|
# installing python2 and python3 actually matters.
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2.7 -v \
|
|
|
|
%check
|
|
|
|
%if ! %{with py2_test_with_hypothesis}
|
|
|
|
|
|
|
|
--ignore tests/test_dark_magic.py \
|
|
|
|
|
|
|
|
--ignore tests/test_dunders.py \
|
|
|
|
|
|
|
|
--ignore tests/test_funcs.py \
|
|
|
|
|
|
|
|
--ignore tests/test_make.py \
|
|
|
|
|
|
|
|
--ignore tests/test_validators.py \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
%endif # python3
|
|
|
|
%endif
|
|
|
|
%endif # tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc AUTHORS.rst README.rst
|
|
|
|
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS.rst README.rst
|
|
|
|
%doc AUTHORS.rst README.rst
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 17.4.0-10
|
|
|
|
* Tue Feb 22 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-7
|
|
|
|
- Bumping due to problems with modular RPM upgrade path
|
|
|
|
- Add gating configuration and a simple smoke test
|
|
|
|
- Resolves: rhbz#1695587
|
|
|
|
- Related: rhbz#1950291
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-6
|
|
|
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-5
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.3.0-3
|
|
|
|
|
|
|
|
- Disable tests on RHEL9 to avoid pulling in the test dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3.0-1
|
|
|
|
|
|
|
|
- Update to 20.3.0 (#1894866)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 07 2020 Lumír Balhar <lbalhar@redhat.com> - 20.2.0-1
|
|
|
|
|
|
|
|
- Update to 20.2.0 (#1876063)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 27 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1.0-1
|
|
|
|
|
|
|
|
- Update to 20.1.0 (#1870794)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 17 2018 Lumír Balhar <lbalhar@redhat.com> - 17.4.0-9
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-4
|
|
|
|
- Get rid of unversioned Python dependencies
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
- Resolves: rhbz#1628242
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 19.3.0-3
|
|
|
|
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 17.4.0-8
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-8
|
|
|
|
- Make possible to disable python3 subpackage
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Lumír Balhar <lbalhar@redhat.com> - 17.4.0-7
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-7
|
|
|
|
- Replace tests conditions and make possible to disable them
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Lumír Balhar <lbalhar@redhat.com> - 17.4.0-6
|
|
|
|
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-6
|
|
|
|
- First version for python27 module
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-5
|
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 17.4.0-5
|
|
|
|
- Allow Python 2 for build
|
|
|
|
- Bootstrap for Python 3.7
|
|
|
|
see https://hurl.corp.redhat.com/rhel8-py2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-4
|
|
|
|
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.4.0-4
|
|
|
|
- Remove the python2-hypothesis circular build dependency
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Petr Viktorin <pviktori@redhat.com> - 17.4.0-3
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.4.0-3
|
|
|
|
- Remove the python-zope-interface build dependency
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-2
|
|
|
|
* Wed Jan 17 2018 Eric Smith <brouhaha@fedoraproject.org> 17.4.0-2
|
|
|
|
- Added BuildRequires for python<n>-six.
|
|
|
|
- Added BuildRequires for python<n>-six.
|
|
|
|