diff --git a/Fix-typos.patch b/Fix-typos.patch new file mode 100644 index 0000000..9553807 --- /dev/null +++ b/Fix-typos.patch @@ -0,0 +1,69 @@ +From 91e38d286fe538bbd5eb85743d8ab8be7a8413bd Mon Sep 17 00:00:00 2001 +From: Jakub Wilk +Date: Thu, 8 Mar 2018 00:31:23 +0100 +Subject: [PATCH] Fix typos + +--- + CHANGELOG.rst | 2 +- + docs/index.rst | 10 +++++----- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/CHANGELOG.rst b/CHANGELOG.rst +index 91bf53f..6befc97 100644 +--- a/CHANGELOG.rst ++++ b/CHANGELOG.rst +@@ -52,7 +52,7 @@ + for the issue (`#68`_) and PR (`#69`_) respectively. + + .. _#69: https://github.com/pytest-dev/pluggy/pull/69 +-.. _#68: https://github.com/pytest-dev/pluggy/issuses/68 ++.. _#68: https://github.com/pytest-dev/pluggy/issues/68 + + + 0.5.0 +diff --git a/docs/index.rst b/docs/index.rst +index 8f0e2fe..734259a 100644 +--- a/docs/index.rst ++++ b/docs/index.rst +@@ -29,9 +29,9 @@ registered hook *implementations*. + subscriptions and can be thought of and used as a rudimentary busless `publish-subscribe`_ + event system. + +-``pluggy``'s approach is meant to let a designer think carefuly about which objects are ++``pluggy``'s approach is meant to let a designer think carefully about which objects are + explicitly needed by an extension writer. This is in contrast to subclass-based extension +-systems which may expose unecessary state and behaviour or encourage `tight coupling`_ ++systems which may expose unnecessary state and behaviour or encourage `tight coupling`_ + in overlying frameworks. + + +@@ -85,7 +85,7 @@ a similarly configured ``PluginManager`` instance. + + That is, a *mark* type called with ``project_name`` returns an object which + can be used to decorate functions which will then be detected by a +-``PluginManager`` which was instantiated with the the same ``project_name`` ++``PluginManager`` which was instantiated with the same ``project_name`` + value. + + Furthermore, each *hookimpl* or *hookspec* decorator can configure the +@@ -277,7 +277,7 @@ should be added before registering corresponding *hookimpls*: + + @hookspec + def setup_project(config, args): +- """This hook is used to process the inital config and input ++ """This hook is used to process the initial config and input + arguments. + """ + +@@ -433,7 +433,7 @@ definitions to populate the registry is described in detail in the section on + In summary, you pass a plugin namespace object to the + :py:meth:`~pluggy.PluginManager.register()` and + :py:meth:`~pluggy.PluginManager.add_hookspec()` methods to collect +-hook *implementations* and *specfications* from *plugin* namespaces respectively. ++hook *implementations* and *specifications* from *plugin* namespaces respectively. + + You can unregister any *plugin*'s hooks using + :py:meth:`~pluggy.PluginManager.unregister()` and check if a plugin is +-- +2.27.0 + diff --git a/python-pluggy.spec b/python-pluggy.spec index 6f7f030..f0c788d 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -3,11 +3,12 @@ Name: python-pluggy Version: 0.6.0 -Release: 6 +Release: 7 Summary: A minimalist production ready plugin system License: MIT URL: https://github.com/pytest-dev/pluggy Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: Fix-typos.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools @@ -40,7 +41,7 @@ Summary: %summary %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 %build %py2_build @@ -71,5 +72,8 @@ py.test-%{python3_version} testing %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Oct 20 2023 fandehui - 0.6.0-7 +- Fix typos + * Tue Dec 3 2019 mengxian - 0.6.0-6 - Package init