forked from pool/python-pytest-openfiles
Accepting request 795576 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/795576 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-openfiles?expand=0&rev=4
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af591422f2bfa95f7690d83aeb8d76bd5421cb8b1dcaf085d58cd92e8d92058d
|
||||
size 7558
|
||||
3
pytest-openfiles-0.5.0.tar.gz
Normal file
3
pytest-openfiles-0.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58
|
||||
size 8323
|
||||
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 19 14:30:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 0.5.0:
|
||||
* Updated package infrastructure. [gh#astropy/pytest-openfiles#29]
|
||||
* Force garbage collection before checking for open files.
|
||||
[gh#astropy/pytest-openfiles#30]
|
||||
- remove setup.cfg only in check phase. The package installed into
|
||||
%python_sitelib/UNKNOWN* before
|
||||
- use %pytest macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 08:54:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-openfiles
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,8 +17,9 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pytest-openfiles
|
||||
Version: 0.4.0
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Pytest plugin for detecting inadvertent open file handles
|
||||
License: BSD-3-Clause
|
||||
@@ -26,12 +27,13 @@ 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 psutil}
|
||||
BuildRequires: %{python_module pytest >= 2.8.0}
|
||||
BuildRequires: %{python_module pytest >= 4.6}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-psutil
|
||||
Requires: python-pytest >= 2.8.0
|
||||
Requires: python-pytest >= 4.6
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -42,8 +44,6 @@ 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
|
||||
@@ -53,11 +53,14 @@ rm setup.cfg
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
||||
# do not override pytest config
|
||||
rm setup.cfg
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pytest_openfiles
|
||||
%{python_sitelib}/pytest_openfiles-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user