diff --git a/attrs-21.4.0.tar.gz b/attrs-21.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9d57f4a652328cbb6c5a4fba665c78c0601b87c7 Binary files /dev/null and b/attrs-21.4.0.tar.gz differ diff --git a/python-attrs.spec b/python-attrs.spec new file mode 100644 index 0000000000000000000000000000000000000000..7399dfb539cafcc883a3cc9f38896c4456e4dca3 --- /dev/null +++ b/python-attrs.spec @@ -0,0 +1,61 @@ +%define anolis_release 1 +%global modname attrs + +# Turn the tests off when bootstrapping Python, because pytest requires attrs +%bcond_without tests + +Name: python-attrs +Version: 21.4.0 +Release: %{anolis_release}%{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 +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-hypothesis +BuildRequires: python%{python3_pkgversion}-six +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} + +%build +%py3_build + +%install +%py3_install + +%if %{with tests} +%check +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 Apr 18 2022 Zhongling He 21.4.0-1 +- Init package from upstream v21.4.0