From 66a9b40f16574006f40eb44c694004bc69f8f660a2d973c08996d35415c1e1a0 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 19 Apr 2017 16:08:42 +0000 Subject: [PATCH] Accepting request 486539 from devel:languages:python - update for singlespec - please send to Staging:E, it's a requirement for new python-tox OBS-URL: https://build.opensuse.org/request/show/486539 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pluggy?expand=0&rev=2 --- pluggy-0.3.0.tar.gz | 3 --- pluggy-0.4.0.zip | 3 +++ python-pluggy.changes | 15 +++++++++++++++ python-pluggy.spec | 32 ++++++++++++++++++-------------- 4 files changed, 36 insertions(+), 17 deletions(-) delete mode 100644 pluggy-0.3.0.tar.gz create mode 100644 pluggy-0.4.0.zip diff --git a/pluggy-0.3.0.tar.gz b/pluggy-0.3.0.tar.gz deleted file mode 100644 index fd4b900..0000000 --- a/pluggy-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52631797ad4857e09f0f2b642392d548b304713d0a02a534f1517cffc008a89c -size 15733 diff --git a/pluggy-0.4.0.zip b/pluggy-0.4.0.zip new file mode 100644 index 0000000..d750e2e --- /dev/null +++ b/pluggy-0.4.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd841b5d290b252cf645f75f3bd37ceecfa0f36394ab313e4f785fe68a4081a4 +size 19054 diff --git a/python-pluggy.changes b/python-pluggy.changes index ef4aa04..f3c9480 100644 --- a/python-pluggy.changes +++ b/python-pluggy.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Apr 7 15:09:41 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- add project URL +- enable test +- update to 0.4.0 + * add has_plugin(name) method to pluginmanager. thanks Bruno Oliveira. + * fix issue11: make plugin parsing more resilient against exceptions + from __getattr__ functions. Thanks Bruno Oliveira. + * fix issue #4: specific HookCallError exception for when a hook call + provides not enough arguments. + * better error message when loading setuptools entrypoints fails + due to a VersionConflict. Thanks Daniel Hahler. + ------------------------------------------------------------------- Wed Sep 16 13:48:57 UTC 2015 - tbechtold@suse.com diff --git a/python-pluggy.spec b/python-pluggy.spec index 351c9f7..1a66833 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -1,7 +1,7 @@ # # spec file for package python-pluggy # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -13,24 +13,25 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pluggy -Version: 0.3.0 +Version: 0.4.0 Release: 0 +Summary: Plugin registration and hook calling mechanisms for Python License: MIT -Summary: plugin and hook calling mechanisms for python -Url: None Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Url: https://github.com/pytest-dev/pluggy +Source: https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.zip +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description This is the plugin manager as used by pytest but stripped @@ -43,12 +44,15 @@ except extensive docstrings in the pluggy.py module. %setup -q -n pluggy-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%check +%python_exec -m pytest testing + +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst CHANGELOG %{python_sitelib}/*