diff --git a/python-tenacity.spec b/python-tenacity.spec index acce35f949fed22ad31fb1fff2737e5ec47c9551..ae8efbc0049a85596d925a2d744bc210e8ff121c 100644 --- a/python-tenacity.spec +++ b/python-tenacity.spec @@ -1,58 +1,59 @@ %global _empty_manifest_terminate_build 0 +%define _python_bytecompile_errors_terminate_build 0 Name: python-tenacity -Version: 6.3.1 -Release: 4 -Summary: Retry code until it succeeds -License: Apache 2.0 +Version: 4.10.0 +Release: 1 +Summary: Retry code until it succeeeds +License: Apache-2.0 URL: https://github.com/jd/tenacity -Source0: https://files.pythonhosted.org/packages/70/0c/47136795c8be87c7c30f28c9a56b59deb9550b2a1f5f3abb177daf5da1a3/tenacity-6.3.1.tar.gz +Source0: https://files.pythonhosted.org/packages/fa/ca/9e33e2a4945c46fc91b124ccdee08a3351f041095b1010f60a5f9023eeb6/tenacity-4.10.0.tar.gz BuildArch: noarch - -Requires: python3-six -Requires: python3-futures -Requires: python3-monotonic -Requires: python3-typing -Requires: python3-reno -Requires: python3-sphinx -Requires: python3-tornado - %description -Tenacity is a general-purpose retrying library to simplify the task of adding retry behavior to just about anything. - +Tenacity +Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in +Python, to simplify the task of adding retry behavior to just about anything. +It originates from `a fork of retrying +`_. -%package -n python3-tenacity -Summary: Retry code until it succeeds -Provides: python-tenacity -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-pbr -BuildRequires: python3-setuptools_scm -%description -n python3-tenacity -Tenacity is a general-purpose retrying library to simplify the task of adding retry behavior to just about anything. - +%package -n python2-tenacity +Summary: Retry code until it succeeeds +Provides: python2-tenacity +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-six +Requires: python2-futures +Requires: python2-monotonic +%description -n python2-tenacity +Tenacity +Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in +Python, to simplify the task of adding retry behavior to just about anything. +It originates from `a fork of retrying +`_. %package help Summary: Development documents and examples for tenacity -Provides: python3-tenacity-doc +Provides: python2-tenacity-doc %description help -Tenacity is a general-purpose retrying library to simplify the task of adding retry behavior to just about anything. - +Tenacity +Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in +Python, to simplify the task of adding retry behavior to just about anything. +It originates from `a fork of retrying +`_. %prep -%autosetup -n tenacity-6.3.1 +%autosetup -n tenacity-4.10.0 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -79,18 +80,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-tenacity -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-tenacity -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Sat Jan 30 2021 zhangy -- Add buildrequires python3-setuptools_scm -* Fri Jan 22 2021 zhangy1317 -- Add BuildRequires python3-pbr -* Thu Jan 21 2021 zhangy1317 -- Add BuildRequires python3-pip -* Wed Jan 20 2021 Python_Bot +* Sun May 16 2021 openstack-sig - Package Spec generated diff --git a/tenacity-4.10.0.tar.gz b/tenacity-4.10.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..483eee1ce753b1c8757cd9257b3b8fe936ea473d Binary files /dev/null and b/tenacity-4.10.0.tar.gz differ diff --git a/tenacity-6.3.1.tar.gz b/tenacity-6.3.1.tar.gz deleted file mode 100644 index 56e1df4eda4d4a52d37678dc6fc8656e9c1cd69f..0000000000000000000000000000000000000000 Binary files a/tenacity-6.3.1.tar.gz and /dev/null differ