1
0
forked from pool/python-pluggy
python-pluggy/python-pluggy.spec

80 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
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
2021-10-17 22:57:18 +00:00
# spec file
#
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
2021-10-17 22:57:18 +00:00
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
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
2021-10-17 22:57:18 +00:00
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pluggy%{psuffix}
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
2021-10-17 22:57:18 +00:00
Version: 1.0.0
Release: 0
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
2021-10-17 22:57:18 +00:00
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
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
2021-10-17 22:57:18 +00:00
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
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
2021-10-17 22:57:18 +00:00
%if 0%{?python_version_nodots} < 38
Requires: python-importlib-metadata >= 0.12
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
2021-10-17 22:57:18 +00:00
%endif
BuildArch: noarch
%if %{with test}
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
2021-10-17 22:57:18 +00:00
BuildRequires: %{python_module importlib-metadata >= 0.12 if %python-base < 3.8}
BuildRequires: %{python_module pytest >= 6.2.5}
%endif
%python_subpackages
%description
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
2021-10-17 22:57:18 +00:00
This is the core framework used by the pytest, tox, and devpi projects.
%prep
%setup -q -n pluggy-%{version}
%build
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest testing
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.rst
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
2021-10-17 22:57:18 +00:00
%{python_sitelib}/pluggy
%{python_sitelib}/pluggy-%{version}*-info
%endif
%changelog