diff --git a/pytest-openfiles-0.4.0.tar.gz b/pytest-openfiles-0.4.0.tar.gz deleted file mode 100644 index bdfb385..0000000 --- a/pytest-openfiles-0.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af591422f2bfa95f7690d83aeb8d76bd5421cb8b1dcaf085d58cd92e8d92058d -size 7558 diff --git a/pytest-openfiles-0.5.0.tar.gz b/pytest-openfiles-0.5.0.tar.gz new file mode 100644 index 0000000..231f9f3 --- /dev/null +++ b/pytest-openfiles-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58 +size 8323 diff --git a/python-pytest-openfiles.changes b/python-pytest-openfiles.changes index 05a18e3..48c5d62 100644 --- a/python-pytest-openfiles.changes +++ b/python-pytest-openfiles.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Apr 19 14:30:45 UTC 2020 - Benjamin Greiner + +- 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 diff --git a/python-pytest-openfiles.spec b/python-pytest-openfiles.spec index e28841b..c551a3c 100644 --- a/python-pytest-openfiles.spec +++ b/python-pytest-openfiles.spec @@ -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