diff --git a/python-stevedore.spec b/python-stevedore.spec old mode 100755 new mode 100644 index 035e5f0b8d5d59f0e1e3c275d41fc9f092bd8c97..37a83598fa5a3f98d3681cf5022316bb9cbcb5a2 --- a/python-stevedore.spec +++ b/python-stevedore.spec @@ -1,45 +1,138 @@ %global _empty_manifest_terminate_build 0 Name: python-stevedore -Version: 3.3.0 -Release: 2 +Version: 1.28.0 +Release: 1 Summary: Manage dynamic plugins for Python applications License: Apache-2.0 -URL: https://opendev.org/openstack/stevedore -Source0: https://files.pythonhosted.org/packages/95/bc/dc386a920942dbdfe480c8a4d953ff77ed3dec99ce736634b6ec4f2d97c1/stevedore-3.3.0.tar.gz +URL: https://docs.openstack.org/stevedore/latest/ +Source0: https://files.pythonhosted.org/packages/ba/40/92295187c3157c109fde84eb2d4002c2bb3ab5a9c1df09f7fd96e6dfd5c9/stevedore-1.28.0.tar.gz BuildArch: noarch +%description +=========================================================== +stevedore -- Manage dynamic plugins for Python applications +=========================================================== -Requires: python3-pbr -Requires: python3-importlib-metadata +.. image:: https://img.shields.io/pypi/v/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Latest Version -%description -Manage dynamic plugins for Python applications +.. image:: https://img.shields.io/pypi/dm/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Downloads + +.. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + +Python makes loading code dynamically easy, allowing you to configure +and extend your application by discovering and loading extensions +("*plugins*") at runtime. Many applications implement their own +library for doing this, using ``__import__`` or ``importlib``. +stevedore avoids creating yet another extension +mechanism by building on top of `setuptools entry points`_. The code +for managing entry points tends to be repetitive, though, so stevedore +provides manager classes for implementing common patterns for using +dynamically loaded extensions. + +.. _setuptools entry points: http://setuptools.readthedocs.io/en/latest/pkg_resources.html?#entry-points + +* Free software: Apache license +* Documentation: https://docs.openstack.org/stevedore/latest +* Source: https://git.openstack.org/cgit/openstack/stevedore +* Bugs: https://bugs.launchpad.net/python-stevedore -%package -n python3-stevedore + + +%package -n python2-stevedore Summary: Manage dynamic plugins for Python applications Provides: python-stevedore -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -%description -n python3-stevedore -Manage dynamic plugins for Python applications +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-six +%description -n python2-stevedore +=========================================================== +stevedore -- Manage dynamic plugins for Python applications +=========================================================== + +.. image:: https://img.shields.io/pypi/v/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Downloads + +.. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + +Python makes loading code dynamically easy, allowing you to configure +and extend your application by discovering and loading extensions +("*plugins*") at runtime. Many applications implement their own +library for doing this, using ``__import__`` or ``importlib``. +stevedore avoids creating yet another extension +mechanism by building on top of `setuptools entry points`_. The code +for managing entry points tends to be repetitive, though, so stevedore +provides manager classes for implementing common patterns for using +dynamically loaded extensions. + +.. _setuptools entry points: http://setuptools.readthedocs.io/en/latest/pkg_resources.html?#entry-points + +* Free software: Apache license +* Documentation: https://docs.openstack.org/stevedore/latest +* Source: https://git.openstack.org/cgit/openstack/stevedore +* Bugs: https://bugs.launchpad.net/python-stevedore + + %package help Summary: Development documents and examples for stevedore -Provides: python3-stevedore-doc +Provides: python2-stevedore-doc %description help -Manage dynamic plugins for Python applications +=========================================================== +stevedore -- Manage dynamic plugins for Python applications +=========================================================== + +.. image:: https://img.shields.io/pypi/v/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Latest Version + +.. image:: https://img.shields.io/pypi/dm/stevedore.svg + :target: https://pypi.python.org/pypi/stevedore/ + :alt: Downloads + +.. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + +Python makes loading code dynamically easy, allowing you to configure +and extend your application by discovering and loading extensions +("*plugins*") at runtime. Many applications implement their own +library for doing this, using ``__import__`` or ``importlib``. +stevedore avoids creating yet another extension +mechanism by building on top of `setuptools entry points`_. The code +for managing entry points tends to be repetitive, though, so stevedore +provides manager classes for implementing common patterns for using +dynamically loaded extensions. + +.. _setuptools entry points: http://setuptools.readthedocs.io/en/latest/pkg_resources.html?#entry-points + +* Free software: Apache license +* Documentation: https://docs.openstack.org/stevedore/latest +* Source: https://git.openstack.org/cgit/openstack/stevedore +* Bugs: https://bugs.launchpad.net/python-stevedore + + %prep -%autosetup -n stevedore-3.3.0 +%autosetup -n stevedore-1.28.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 @@ -66,14 +159,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-stevedore -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-stevedore -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Wed Jan 20 2021 zhangy1317 -- Add BuildRequires python3-pip -* Fri Jan 08 2021 Python_Bot +* Fri May 07 2021 OpenStack_SIG - Package Spec generated diff --git a/stevedore-1.28.0.tar.gz b/stevedore-1.28.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c11613c0fc6d2acb7808dd146c0e75a1a46210b8 Binary files /dev/null and b/stevedore-1.28.0.tar.gz differ diff --git a/stevedore-3.3.0.tar.gz b/stevedore-3.3.0.tar.gz deleted file mode 100644 index f1bfd71b2bf4d44952ef7da700aa09417576f9bb..0000000000000000000000000000000000000000 Binary files a/stevedore-3.3.0.tar.gz and /dev/null differ