Accepting request 1217982 from devel:languages:python:pytest

- update to 0.6.0:
  * Replaced distutils with packaging; the latter now a required
    dependency.
  * Dropped support for Python 3.6.

OBS-URL: https://build.opensuse.org/request/show/1217982
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-openfiles?expand=0&rev=5
This commit is contained in:
2024-10-24 13:44:44 +00:00
committed by Git OBS Bridge
4 changed files with 21 additions and 12 deletions

View File

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

View File

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

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Oct 24 08:54:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.6.0:
* Replaced distutils with packaging; the latter now a required
dependency.
* Dropped support for Python 3.6.
-------------------------------------------------------------------
Sun Apr 19 14:30:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-openfiles
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-pytest-openfiles
Version: 0.5.0
Version: 0.6.0
Release: 0
Summary: Pytest plugin for detecting inadvertent open file handles
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
Source: https://files.pythonhosted.org/packages/source/p/pytest-openfiles/pytest_openfiles-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-psutil
@@ -43,13 +44,13 @@ developers to detect whether any file handles or other file-like objects were
inadvertently left open at the end of a unit test.
%prep
%setup -q -n pytest-openfiles-%{version}
%setup -q -n pytest_openfiles-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -61,6 +62,6 @@ rm setup.cfg
%doc CHANGES.rst README.rst
%license LICENSE.rst
%{python_sitelib}/pytest_openfiles
%{python_sitelib}/pytest_openfiles-%{version}-py*.egg-info
%{python_sitelib}/pytest_openfiles-%{version}.dist-info
%changelog