Accepting request 676068 from devel:languages:python:pytest

- 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/request/show/676068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-openfiles?expand=0&rev=2
This commit is contained in:
2019-02-15 09:02:54 +00:00
committed by Git OBS Bridge
4 changed files with 23 additions and 10 deletions

View File

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

View File

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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 14 14:31:00 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@@ -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