Accepting request 1039064 from devel:languages:python:pytest

- Remove python_module macro definition
- Add python-py dep
- More specific python_sitelib in %files
- Update to 1.4.0:
  * Dropped support for Python 2.7 and 3.5.
  * Added official support for Python 3.10.

OBS-URL: https://build.opensuse.org/request/show/1039064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-forked?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2023-01-06 16:04:28 +00:00 committed by Git OBS Bridge
commit 43d1449fb9
4 changed files with 22 additions and 9 deletions

View File

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

View File

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

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Nov 30 08:45:20 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python_module macro definition
- Add python-py dep
- More specific python_sitelib in %files
- Update to 1.4.0:
* Dropped support for Python 2.7 and 3.5.
* Added official support for Python 3.10.
-------------------------------------------------------------------
Fri Aug 21 14:29:06 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-forked
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,19 +16,20 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-forked
Version: 1.3.0
Version: 1.4.0
Release: 0
Summary: Run each test in a forked subprocess
License: MIT
URL: https://github.com/pytest-dev/pytest-forked
Source: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
BuildRequires: %{python_module pytest >= 3.10}
BuildRequires: %{python_module py}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-py
Requires: python-pytest >= 3.10
BuildArch: noarch
%python_subpackages
@ -47,11 +48,13 @@ Extraction of pytest-xdist --forked module used for running tests in forked subp
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# Disable broken tests gh#pytest-dev/pytest-forked#67
%pytest -k "not (test_xfail or test_functional_boxed_capturing[sys] or test_functional_boxed_capturing[fd])"
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG
%{python_sitelib}/*
%doc README.rst CHANGELOG.rst
%{python_sitelib}/pytest_forked
%{python_sitelib}/pytest_forked-%{version}*-info
%changelog