1
0
forked from pool/python-pluggy

Accepting request 925834 from home:bnavigator:branches:devel:languages:python:pytest

- Update to version 1.0.0
  Deprecations and Removals 
  * #116: Remove deprecated implprefix support. Decorate hook
    implementations using an instance of HookimplMarker instead.
    The deprecation was announced in release 0.7.0.  
  * #120: Remove the deprecated proc argument to call_historic. Use
    result_callback instead, which has the same behavior. The
    deprecation was announced in release 0.7.0.  
  * #265: Remove the _Result.result property. Use
    _Result.get_result() instead. Note that unlike result,
    get_result() raises the exception if the hook raised. The
    deprecation was announced in release 0.6.0.  
  * #267: Remove official support for Python 3.4.
  * #272: Dropped support for Python 2. Continue to use pluggy
    0.13.x for Python 2 support.
  *  #308: Remove official support for Python 3.5.
  * #313: The internal pluggy.callers, pluggy.manager and
    pluggy.hooks are now explicitly marked private by a _ prefix
    (e.g. pluggy._callers). Only API exported by the top-level
    pluggy module is considered public.
  * #59: Remove legacy __multicall__ recursive hook calling system.
    The deprecation was announced in release 0.5.0.
  Features
  * #282: When registering a hookimpl which is declared as
    hookwrapper=True but whose function is not a generator
    function, a PluggyValidationError exception is now raised.
  * #309: Add official support for Python 3.9.
  * #251: Add specname option to @hookimpl. If specname is
    provided, it will be used instead of the function name when
    matching this hook implementation to a hook specification
    during registration (allowing a plugin to register a hook
    implementation that was not named the same thing as the
    corresponding @hookspec).

OBS-URL: https://build.opensuse.org/request/show/925834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=22
This commit is contained in:
Matej Cepl 2021-10-17 22:57:18 +00:00 committed by Git OBS Bridge
parent a535ae02bb
commit 9df5aa47b6
4 changed files with 54 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0
size 57962

BIN
pluggy-1.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,40 @@
-------------------------------------------------------------------
Sun Oct 17 12:12:42 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 1.0.0
Deprecations and Removals
* #116: Remove deprecated implprefix support. Decorate hook
implementations using an instance of HookimplMarker instead.
The deprecation was announced in release 0.7.0.
* #120: Remove the deprecated proc argument to call_historic. Use
result_callback instead, which has the same behavior. The
deprecation was announced in release 0.7.0.
* #265: Remove the _Result.result property. Use
_Result.get_result() instead. Note that unlike result,
get_result() raises the exception if the hook raised. The
deprecation was announced in release 0.6.0.
* #267: Remove official support for Python 3.4.
* #272: Dropped support for Python 2. Continue to use pluggy
0.13.x for Python 2 support.
* #308: Remove official support for Python 3.5.
* #313: The internal pluggy.callers, pluggy.manager and
pluggy.hooks are now explicitly marked private by a _ prefix
(e.g. pluggy._callers). Only API exported by the top-level
pluggy module is considered public.
* #59: Remove legacy __multicall__ recursive hook calling system.
The deprecation was announced in release 0.5.0.
Features
* #282: When registering a hookimpl which is declared as
hookwrapper=True but whose function is not a generator
function, a PluggyValidationError exception is now raised.
* #309: Add official support for Python 3.9.
* #251: Add specname option to @hookimpl. If specname is
provided, it will be used instead of the function name when
matching this hook implementation to a hook specification
during registration (allowing a plugin to register a hook
implementation that was not named the same thing as the
corresponding @hookspec).
-------------------------------------------------------------------
Mon Jan 6 12:52:03 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pluggy
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,8 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@ -26,29 +27,29 @@
%bcond_with test
%endif
Name: python-pluggy%{psuffix}
Version: 0.13.1
Version: 1.0.0
Release: 0
Summary: Plugin registration and hook calling mechanisms for Python
Summary: A minimalist production ready plugin system
License: MIT
URL: https://github.com/pytest-dev/pluggy
Source: https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 38
Requires: python-importlib-metadata >= 0.12
%endif
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module importlib-metadata >= 0.12 if %python-base < 3.8}
BuildRequires: %{python_module pytest >= 6.2.5}
%endif
%python_subpackages
%description
This is the plugin manager as used by pytest but stripped
of pytest specific details.
During the 0.x series this plugin does not have much documentation
except extensive docstrings in the pluggy.py module.
This is the core framework used by the pytest, tox, and devpi projects.
%prep
%setup -q -n pluggy-%{version}
@ -71,7 +72,8 @@ except extensive docstrings in the pluggy.py module.
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.rst
%{python_sitelib}/*
%{python_sitelib}/pluggy
%{python_sitelib}/pluggy-%{version}*-info
%endif
%changelog