Fix typos

(cherry picked from commit 122ce903f6a97f4b9635c0950ad8ed7649998a9a)
This commit is contained in:
fandehui 2023-07-27 04:51:47 +08:00 committed by openeuler-sync-bot
parent a8d1f93a95
commit dbee77c532
2 changed files with 75 additions and 2 deletions

69
Fix-typos.patch Normal file
View File

@ -0,0 +1,69 @@
From 91e38d286fe538bbd5eb85743d8ab8be7a8413bd Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@jwilk.net>
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

View File

@ -3,11 +3,12 @@
Name: python-pluggy Name: python-pluggy
Version: 0.6.0 Version: 0.6.0
Release: 6 Release: 7
Summary: A minimalist production ready plugin system Summary: A minimalist production ready plugin system
License: MIT License: MIT
URL: https://github.com/pytest-dev/pluggy URL: https://github.com/pytest-dev/pluggy
Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: Fix-typos.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python2-setuptools BuildRequires: python2-devel python2-setuptools
@ -40,7 +41,7 @@ Summary: %summary
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version} -p1
%build %build
%py2_build %py2_build
@ -71,5 +72,8 @@ py.test-%{python3_version} testing
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Fri Oct 20 2023 fandehui <fandehui@xfusion.com> - 0.6.0-7
- Fix typos
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6 * Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6
- Package init - Package init