From 8fa8e1f946a5b49926c0e694521f43cfe08248aa Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jul 31 2020 18:51:44 +0000 Subject: import python-attrs-17.4.0-6.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7f71cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/attrs-17.4.0.tar.gz diff --git a/.python-attrs.metadata b/.python-attrs.metadata new file mode 100644 index 0000000..667347f --- /dev/null +++ b/.python-attrs.metadata @@ -0,0 +1 @@ +7487af781f942e370977bb91feedeb4c98edfd07 SOURCES/attrs-17.4.0.tar.gz diff --git a/SPECS/python-attrs.spec b/SPECS/python-attrs.spec new file mode 100644 index 0000000..bc40521 --- /dev/null +++ b/SPECS/python-attrs.spec @@ -0,0 +1,126 @@ +%global modname attrs + +Name: python-attrs +Version: 17.4.0 +Release: 6%{?dist} +Summary: Python attributes without boilerplate + +License: MIT +URL: http://www.attrs.org/ +BuildArch: noarch +Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz + + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +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 + +%description +attrs is an MIT-licensed Python package with class decorators that +ease the chores of implementing the most common attribute-related +object protocols. + +%package -n python%{python3_pkgversion}-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} + +%description -n python%{python3_pkgversion}-%{modname} +attrs is an MIT-licensed Python package with class decorators that +ease the chores of implementing the most common attribute-related +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 + +%check +%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} +%license LICENSE +%doc AUTHORS.rst README.rst +%{python3_sitelib}/* + +%changelog +* Mon Jul 09 2018 Petr Viktorin - 17.4.0-6 +- Remove python2 subpackage + https://bugzilla.redhat.com/show_bug.cgi?id=1590809 + +* Mon Jun 25 2018 Petr Viktorin - 17.4.0-5 +- Allow Python 2 for build + see https://hurl.corp.redhat.com/rhel8-py2 + +* Fri Jun 22 2018 Petr Viktorin - 17.4.0-4 +- Remove the python2-hypothesis circular build dependency + +* Thu Jun 14 2018 Petr Viktorin - 17.4.0-3 +- Remove the python-zope-interface build dependency + +* Wed Jan 17 2018 Eric Smith 17.4.0-2 +- Added BuildRequires for python-six. + +* Thu Jan 11 2018 Eric Smith 17.4.0-1 +- Updated to latest upstream. + +* Thu Jul 27 2017 Fedora Release Engineering - 16.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 16.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Dec 14 2016 Eric Smith 16.3.0-1 +- Updated to latest upstream. + +* Tue Dec 13 2016 Charalampos Stratakis - 16.1.0-3 +- Enable tests + +* Mon Dec 12 2016 Charalampos Stratakis - 16.1.0-2 +- Rebuild for Python 3.6 +- Disable python3 tests for now + +* Sat Sep 10 2016 Eric Smith 16.1.0-1 +- Updated to latest upstream. +- Removed patch, no longer necessary. +- Removed "with python3" conditionals. + +* Thu Aug 18 2016 Eric Smith 16.0.0-6 +- Build for Python 3.4 in EPEL7. + +* Thu Aug 18 2016 Eric Smith 16.0.0-5 +- Updated based on Fedora package review (#1366878). +- Fix check section, though tests can not be run for EPEL7. +- Add patch to skip two tests with keyword collisions. + +* Tue Aug 16 2016 Eric Smith 16.0.0-4 +- Fix python2 BuildRequires. + +* Mon Aug 15 2016 Eric Smith 16.0.0-3 +- Updated based on Fedora package review (#1366878). + +* Sun Aug 14 2016 Eric Smith 16.0.0-2 +- Updated based on Fedora package review (#1366878). + +* Sat Aug 13 2016 Eric Smith 16.0.0-1 +- Initial version.