From 81e54bc8c8641b96a229db683e0737aa216b20eedd29cc914be8ddb689f1f53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 14:34:58 +0000 Subject: [PATCH] - Update to 0.3.2: * Replace deprecated method to allow for compatibility with pytest-4.1 and later. [#19] - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-openfiles?expand=0&rev=5 --- pytest-openfiles-0.3.0.tar.gz | 3 --- pytest-openfiles-0.3.2.tar.gz | 3 +++ python-pytest-openfiles.changes | 7 +++++++ python-pytest-openfiles.spec | 20 +++++++++++++------- 4 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 pytest-openfiles-0.3.0.tar.gz create mode 100644 pytest-openfiles-0.3.2.tar.gz diff --git a/pytest-openfiles-0.3.0.tar.gz b/pytest-openfiles-0.3.0.tar.gz deleted file mode 100644 index 311d8ea..0000000 --- a/pytest-openfiles-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be5e6a0e7c6a64e58a27bdcdd9ab2aa09a9a9c9a525499ee08d2e77e2c19f535 -size 5707 diff --git a/pytest-openfiles-0.3.2.tar.gz b/pytest-openfiles-0.3.2.tar.gz new file mode 100644 index 0000000..2b479da --- /dev/null +++ b/pytest-openfiles-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e51c91889eb9e4c75f47735efc57a1435f3f1182463600ba7bce7f2556a46884 +size 6132 diff --git a/python-pytest-openfiles.changes b/python-pytest-openfiles.changes index 9cd9b95..65a4a6b 100644 --- a/python-pytest-openfiles.changes +++ b/python-pytest-openfiles.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 14 14:31:00 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.2: + * Replace deprecated method to allow for compatibility with pytest-4.1 and later. [#19] +- Enable tests + ------------------------------------------------------------------- Tue Aug 14 20:03:29 UTC 2018 - toddrme2178@gmail.com diff --git a/python-pytest-openfiles.spec b/python-pytest-openfiles.spec index e984aff..1c1a442 100644 --- a/python-pytest-openfiles.spec +++ b/python-pytest-openfiles.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-openfiles # -# 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 @@ -12,26 +12,27 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-openfiles -Version: 0.3.0 +Version: 0.3.2 Release: 0 -License: BSD-3-Clause Summary: Pytest plugin for detecting inadvertent open file handles -Url: https://github.com/astropy/pytest-openfiles +License: BSD-3-Clause Group: Development/Languages/Python +URL: https://github.com/astropy/pytest-openfiles Source: https://files.pythonhosted.org/packages/source/p/pytest-openfiles/pytest-openfiles-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest >= 2.8.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-psutil Requires: python-pytest >= 2.8.0 BuildArch: noarch - %python_subpackages %description @@ -41,6 +42,8 @@ inadvertently left open at the end of a unit test. %prep %setup -q -n pytest-openfiles-%{version} +# do not override pytest config +rm setup.cfg %build %python_build @@ -49,6 +52,9 @@ inadvertently left open at the end of a unit test. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v + %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.rst