forked from pool/python-pytest-openfiles
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
e5d0b3c620
commit
81e54bc8c8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user