11
0
forked from pool/python-pluggy

Accepting request 679233 from devel:languages:python:pytest

- Update to 0.9.0:
  * #189: PluginManager.load_setuptools_entrypoints now accepts a name parameter that when given will load only entry points with that name.
  * PluginManager.load_setuptools_entrypoints also now returns the number of plugins loaded by the call, as opposed to the number of all plugins loaded by all calls to this method.

- Switch to multibuild in order to avoid build loop

- Update to 0.8.1:
   * #166: Add stacklevel=2 to implprefix warning so that the reported location of warning is the caller of PluginManager.

OBS-URL: https://build.opensuse.org/request/show/679233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pluggy?expand=0&rev=10
This commit is contained in:
2019-02-26 21:16:15 +00:00
committed by Git OBS Bridge
5 changed files with 44 additions and 13 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:447ba94990e8014ee25ec853339faf7b0fc8050cdc3289d4d71f7f410fb90095
size 53259

3
pluggy-0.9.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19ecf9ce9db2fce065a7a0586e07cfb4ac8614fe96edf628a264b1c70116cf8f
size 54035

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Tue Feb 26 11:51:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.9.0:
* #189: PluginManager.load_setuptools_entrypoints now accepts a name parameter that when given will load only entry points with that name.
* PluginManager.load_setuptools_entrypoints also now returns the number of plugins loaded by the call, as opposed to the number of all plugins loaded by all calls to this method.
-------------------------------------------------------------------
Mon Feb 25 08:23:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild in order to avoid build loop
-------------------------------------------------------------------
Tue Feb 12 14:20:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.8.1:
* #166: Add stacklevel=2 to implprefix warning so that the reported location of warning is the caller of PluginManager.
-------------------------------------------------------------------
Fri Oct 26 13:01:53 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pluggy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,30 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with tests
Name: python-pluggy
Version: 0.8.0
%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}
Version: 0.9.0
Release: 0
Summary: Plugin registration and hook calling mechanisms for Python
License: MIT
Group: Development/Languages/Python
Url: https://github.com/pytest-dev/pluggy
URL: https://github.com/pytest-dev/pluggy
Source: https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz
%if %{with tests}
BuildRequires: %{python_module pytest}
%endif
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
@@ -51,17 +57,21 @@ except extensive docstrings in the pluggy.py module.
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with tests}
%check
%if %{with test}
%python_exec -m pytest testing
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.rst
%{python_sitelib}/*
%endif
%changelog