Compare commits
No commits in common. "c8-stream-3.8" and "c10s" have entirely different histories.
c8-stream-
...
c10s
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1 +1,5 @@
|
|||||||
SOURCES/pytest-4.6.6.tar.gz
|
/pytest-*.zip
|
||||||
|
/pytest-*.tar.gz
|
||||||
|
/pytest-*/
|
||||||
|
/results_*/
|
||||||
|
*.rpm
|
||||||
|
@ -1 +0,0 @@
|
|||||||
6b2e5766b509e9351c457f3d48c665a8e6842e87 SOURCES/pytest-4.6.6.tar.gz
|
|
58
11611.patch
Normal file
58
11611.patch
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
From 052d1453544511c72674c20b47723e401fd0f8f3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||||
|
Date: Mon, 13 Nov 2023 09:45:05 +0100
|
||||||
|
Subject: [PATCH] XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe
|
||||||
|
|
||||||
|
The tested py.path.local.make_numbered_dir function is *not*
|
||||||
|
multiprocess safe, because is uses os.listdir which itself is not.
|
||||||
|
|
||||||
|
The os.listdir documentation explicitly states that:
|
||||||
|
|
||||||
|
> If a file is removed from or added to the directory during the call
|
||||||
|
> of this function, whether a name for that file be included is unspecified.
|
||||||
|
|
||||||
|
This can lead to a race when:
|
||||||
|
|
||||||
|
1. process A attempts to create directory N
|
||||||
|
2. the creation fails, as another process already created it in the meantime
|
||||||
|
3. process A calls listdir to determine a more recent maxnum
|
||||||
|
4. processes B+ repeatedly create newer directories and they delete directory N
|
||||||
|
5. process A doesn't have directory N or any newer directory in listdir result
|
||||||
|
6. process A attempts to create directory N again and raises
|
||||||
|
|
||||||
|
For details, see https://github.com/pytest-dev/pytest/issues/11603#issuecomment-1805708144
|
||||||
|
and bellow.
|
||||||
|
|
||||||
|
Additionally, the test itself has a race in batch_make_numbered_dirs.
|
||||||
|
When this functions attempts to write to repro-N/foo,
|
||||||
|
repro-N may have already been removed by another process.
|
||||||
|
|
||||||
|
For details, see https://github.com/pytest-dev/pytest/issues/11603#issuecomment-1804714313
|
||||||
|
and bellow.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The tested py.path.local.make_numbered_dir function is not used in pytest.
|
||||||
|
There is a different implementation in _pytest.pathlib.
|
||||||
|
|
||||||
|
We plan to remove this module eventually anyway.
|
||||||
|
|
||||||
|
Closes https://github.com/pytest-dev/pytest/issues/11603
|
||||||
|
---
|
||||||
|
testing/_py/test_local.py | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/testing/_py/test_local.py b/testing/_py/test_local.py
|
||||||
|
index aebee380cb..77a9838cf1 100644
|
||||||
|
--- a/testing/_py/test_local.py
|
||||||
|
+++ b/testing/_py/test_local.py
|
||||||
|
@@ -868,6 +868,9 @@ def test_fspath_protocol_other_class(self, fake_fspath_obj):
|
||||||
|
py_path.strpath, str_path
|
||||||
|
)
|
||||||
|
|
||||||
|
+ @pytest.mark.xfail(
|
||||||
|
+ reason="#11603", raises=(error.EEXIST, error.ENOENT), strict=False
|
||||||
|
+ )
|
||||||
|
def test_make_numbered_dir_multiprocess_safe(self, tmpdir):
|
||||||
|
# https://github.com/pytest-dev/py/issues/30
|
||||||
|
with multiprocessing.Pool() as pool:
|
@ -1,69 +0,0 @@
|
|||||||
From 5276d4e2b23dcefeb0cba419926c9006859d9011 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Lumir Balhar <lbalhar@redhat.com>
|
|
||||||
Date: Mon, 2 Dec 2019 13:55:11 +0100
|
|
||||||
Subject: [PATCH] Disable test with hypothesis when it's not available
|
|
||||||
|
|
||||||
---
|
|
||||||
testing/python/metafunc.py | 31 +++++++++++++++++++------------
|
|
||||||
1 file changed, 19 insertions(+), 12 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py
|
|
||||||
index d907878..c79d780 100644
|
|
||||||
--- a/testing/python/metafunc.py
|
|
||||||
+++ b/testing/python/metafunc.py
|
|
||||||
@@ -4,9 +4,8 @@ import sys
|
|
||||||
import textwrap
|
|
||||||
|
|
||||||
import attr
|
|
||||||
-import hypothesis
|
|
||||||
+
|
|
||||||
import six
|
|
||||||
-from hypothesis import strategies
|
|
||||||
|
|
||||||
import pytest
|
|
||||||
from _pytest import fixtures
|
|
||||||
@@ -15,6 +14,13 @@ from _pytest.warnings import SHOW_PYTEST_WARNINGS_ARG
|
|
||||||
|
|
||||||
PY3 = sys.version_info >= (3, 0)
|
|
||||||
|
|
||||||
+try:
|
|
||||||
+ from hypothesis import strategies
|
|
||||||
+ import hypothesis
|
|
||||||
+except ImportError:
|
|
||||||
+ with_hypothesis = False
|
|
||||||
+else:
|
|
||||||
+ with_hypothesis = True
|
|
||||||
|
|
||||||
class TestMetafunc(object):
|
|
||||||
def Metafunc(self, func, config=None):
|
|
||||||
@@ -196,16 +202,17 @@ class TestMetafunc(object):
|
|
||||||
assert metafunc._calls[2].id == "x1-a"
|
|
||||||
assert metafunc._calls[3].id == "x1-b"
|
|
||||||
|
|
||||||
- @hypothesis.given(strategies.text() | strategies.binary())
|
|
||||||
- @hypothesis.settings(
|
|
||||||
- deadline=400.0
|
|
||||||
- ) # very close to std deadline and CI boxes are not reliable in CPU power
|
|
||||||
- def test_idval_hypothesis(self, value):
|
|
||||||
- from _pytest.python import _idval
|
|
||||||
-
|
|
||||||
- escaped = _idval(value, "a", 6, None, item=None, config=None)
|
|
||||||
- assert isinstance(escaped, six.text_type)
|
|
||||||
- escaped.encode("ascii")
|
|
||||||
+ if with_hypothesis:
|
|
||||||
+ @hypothesis.given(strategies.text() | strategies.binary())
|
|
||||||
+ @hypothesis.settings(
|
|
||||||
+ deadline=400.0
|
|
||||||
+ ) # very close to std deadline and CI boxes are not reliable in CPU power
|
|
||||||
+ def test_idval_hypothesis(self, value):
|
|
||||||
+ from _pytest.python import _idval
|
|
||||||
+
|
|
||||||
+ escaped = _idval(value, "a", 6, None, item=None, config=None)
|
|
||||||
+ assert isinstance(escaped, six.text_type)
|
|
||||||
+ escaped.encode("ascii")
|
|
||||||
|
|
||||||
def test_unicode_idval(self):
|
|
||||||
"""This tests that Unicode strings outside the ASCII character set get
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
5
gating.yaml
Normal file
5
gating.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
--- !Policy
|
||||||
|
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
11
plans.fmf
Normal file
11
plans.fmf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
discover:
|
||||||
|
- name: Smoke-tests
|
||||||
|
how: shell
|
||||||
|
tests:
|
||||||
|
- name: python-import-test
|
||||||
|
test: python3 -c 'import pytest'
|
||||||
|
require:
|
||||||
|
- python3-pytest
|
||||||
|
duration: 1m
|
||||||
|
execute:
|
||||||
|
how: tmt
|
48
pytest-7.1.3-fix-xfails.patch
Normal file
48
pytest-7.1.3-fix-xfails.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
diff -up pytest-7.1.3/testing/test_debugging.py.orig pytest-7.1.3/testing/test_debugging.py
|
||||||
|
--- pytest-7.1.3/testing/test_debugging.py.orig 2022-09-02 13:12:55.000000000 +0200
|
||||||
|
+++ pytest-7.1.3/testing/test_debugging.py 2022-09-05 16:40:54.921946205 +0200
|
||||||
|
@@ -353,7 +353,7 @@ class TestPDB:
|
||||||
|
result = pytester.runpytest_subprocess("--pdb", ".")
|
||||||
|
result.stdout.fnmatch_lines(["-> import unknown"])
|
||||||
|
|
||||||
|
- @pytest.mark.xfail(reason="#10042")
|
||||||
|
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
||||||
|
def test_pdb_interaction_capturing_simple(self, pytester: Pytester) -> None:
|
||||||
|
p1 = pytester.makepyfile(
|
||||||
|
"""
|
||||||
|
@@ -522,7 +522,7 @@ class TestPDB:
|
||||||
|
assert "BdbQuit" not in rest
|
||||||
|
assert "UNEXPECTED EXCEPTION" not in rest
|
||||||
|
|
||||||
|
- @pytest.mark.xfail(reason="#10042")
|
||||||
|
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
||||||
|
def test_pdb_interaction_capturing_twice(self, pytester: Pytester) -> None:
|
||||||
|
p1 = pytester.makepyfile(
|
||||||
|
"""
|
||||||
|
@@ -558,7 +558,7 @@ class TestPDB:
|
||||||
|
assert "1 failed" in rest
|
||||||
|
self.flush(child)
|
||||||
|
|
||||||
|
- @pytest.mark.xfail(reason="#10042")
|
||||||
|
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
||||||
|
def test_pdb_with_injected_do_debug(self, pytester: Pytester) -> None:
|
||||||
|
"""Simulates pdbpp, which injects Pdb into do_debug, and uses
|
||||||
|
self.__class__ in do_continue.
|
||||||
|
@@ -1003,7 +1003,7 @@ class TestDebuggingBreakpoints:
|
||||||
|
assert "reading from stdin while output" not in rest
|
||||||
|
TestPDB.flush(child)
|
||||||
|
|
||||||
|
- @pytest.mark.xfail(reason="#10042")
|
||||||
|
+ @pytest.mark.xfail(reason="#10042",strict=False)
|
||||||
|
def test_pdb_not_altered(self, pytester: Pytester) -> None:
|
||||||
|
p1 = pytester.makepyfile(
|
||||||
|
"""
|
||||||
|
@@ -1163,7 +1163,7 @@ def test_quit_with_swallowed_SystemExit(
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("fixture", ("capfd", "capsys"))
|
||||||
|
-@pytest.mark.xfail(reason="#10042")
|
||||||
|
+@pytest.mark.xfail(reason="#10042", strict=False)
|
||||||
|
def test_pdb_suspends_fixture_capturing(pytester: Pytester, fixture: str) -> None:
|
||||||
|
"""Using "-s" with pytest should suspend/resume fixture capturing."""
|
||||||
|
p1 = pytester.makepyfile(
|
@ -1,110 +1,145 @@
|
|||||||
Name: pytest
|
Name: pytest
|
||||||
Version: 4.6.6
|
%global base_version 7.4.3
|
||||||
Release: 3%{?dist}
|
#global prerelease ...
|
||||||
|
Version: %{base_version}%{?prerelease:~%{prerelease}}
|
||||||
|
Release: 4%{?dist}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pytest.org
|
URL: https://pytest.org
|
||||||
Source0: %{pypi_source}
|
Source: %{pypi_source pytest %{base_version}%{?prerelease}}
|
||||||
Patch0: Disable-test-with-hypothesis-when-it-s-not-available.patch
|
# see https://github.com/pytest-dev/pytest/issues/10042#issuecomment-1237132867
|
||||||
|
Patch: pytest-7.1.3-fix-xfails.patch
|
||||||
|
# XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe
|
||||||
|
Patch: https://github.com/pytest-dev/pytest/pull/11611.patch
|
||||||
|
|
||||||
# The test in this specfile use pytest-timeout
|
# Remove -s from Python shebang,
|
||||||
|
# ensure that packages installed with pip to user locations are testable
|
||||||
|
# https://bugzilla.redhat.com/2152171
|
||||||
|
%undefine _py3_shebang_s
|
||||||
|
|
||||||
|
# When building pytest for the first time with new Python version
|
||||||
|
# we might not yet have all the BRs, those conditionals allow us to do that.
|
||||||
|
|
||||||
|
# This can be used to disable all tests for faster bootstrapping.
|
||||||
|
# The tests are enabled by default except when building on RHEL/ELN
|
||||||
|
# (to avoid pulling in extra dependencies into next RHEL).
|
||||||
|
%bcond tests %{undefined rhel}
|
||||||
|
|
||||||
|
# Only disabling the optional tests is a more complex but careful approach
|
||||||
|
# Pytest will skip the related tests, so we only conditionalize the BRs
|
||||||
|
%bcond optional_tests %{with tests}
|
||||||
|
|
||||||
|
# To run the tests in %%check we use pytest-timeout
|
||||||
# When building pytest for the first time with new Python version
|
# When building pytest for the first time with new Python version
|
||||||
# that is not possible as it depends on pytest
|
# that is not possible as it depends on pytest
|
||||||
%bcond_with timeout
|
%bcond timeout %{with tests}
|
||||||
|
|
||||||
# When building pytest for the first time with new Python version
|
|
||||||
# we might not yet have all the BRs, this allows us to build without some that
|
|
||||||
# are likely not yet built.
|
|
||||||
# Pytest will skip the related tests, so we only conditionalize the BRs
|
|
||||||
%bcond_with optional_tests
|
|
||||||
|
|
||||||
# When building pytest for the first time with new Python version
|
# When building pytest for the first time with new Python version
|
||||||
# we also don't have sphinx yet and cannot build docs.
|
# we also don't have sphinx yet and cannot build docs.
|
||||||
%bcond_with docs
|
# The docs are enabled by default except when building on RHEL/ELN
|
||||||
|
# (to avoid pulling in extra dependencies into next RHEL).
|
||||||
|
%bcond docs %{undefined rhel}
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: pyproject-rpm-macros >= 0-51
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
# we avoid using %%pyproject_buildrequires -x testing as it mixes optional and non-optional deps
|
||||||
|
BuildRequires: python3-attrs >= 19.2
|
||||||
|
BuildRequires: python3-hypothesis >= 3.56
|
||||||
|
BuildRequires: python3-pygments >= 2.7.2
|
||||||
|
BuildRequires: python3-xmlschema
|
||||||
|
%if %{with optional_tests}
|
||||||
|
BuildRequires: python3-argcomplete
|
||||||
|
#BuildRequires: python3-asynctest -- not packaged in Fedora
|
||||||
|
BuildRequires: python3-decorator
|
||||||
|
BuildRequires: python3-jinja2
|
||||||
|
BuildRequires: python3-mock
|
||||||
|
BuildRequires: python3-nose
|
||||||
|
BuildRequires: python3-numpy
|
||||||
|
BuildRequires: python3-pexpect
|
||||||
|
BuildRequires: python3-pytest-xdist
|
||||||
|
BuildRequires: python3-twisted
|
||||||
|
BuildRequires: /usr/bin/lsof
|
||||||
|
%endif
|
||||||
|
%if %{with timeout}
|
||||||
|
BuildRequires: python3-pytest-timeout
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
BuildRequires: %{_bindir}/rst2html
|
BuildRequires: %{_bindir}/rst2html
|
||||||
BuildRequires: python%{python3_pkgversion}-pygments-pytest
|
# pluggy >= 1 is needed to build the docs, older versions are allowed on runtime:
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinx
|
BuildRequires: python3-pluggy >= 1
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinx-removed-in
|
BuildRequires: python3-pygments-pytest
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-trio
|
BuildRequires: python3-Pallets-Sphinx-Themes
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: python3-sphinx-removed-in
|
||||||
|
BuildRequires: python3-sphinxcontrib-trio
|
||||||
|
# See doc/en/conf.py -- sphinxcontrib.inkscapeconverter is only used when inkscape is available
|
||||||
|
# we don't BR inkscape so we generally don't need it, but in case inkscape is installed accidentally:
|
||||||
|
BuildRequires: (python3-sphinxcontrib-inkscapeconverter if inkscape)
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
||||||
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
||||||
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
||||||
ExcludeArch: i686
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
py.test provides simple, yet powerful testing for Python.
|
The pytest framework makes it easy to write small tests, yet scales to support
|
||||||
|
complex functional testing for applications and libraries.
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
BuildRequires: python%{python3_pkgversion}-atomicwrites
|
Provides: pytest = %{version}-%{release}
|
||||||
BuildRequires: python%{python3_pkgversion}-attrs
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
|
||||||
BuildRequires: python%{python3_pkgversion}-more-itertools
|
|
||||||
BuildRequires: python%{python3_pkgversion}-packaging
|
|
||||||
BuildRequires: python%{python3_pkgversion}-pluggy >= 0.12
|
|
||||||
BuildRequires: python%{python3_pkgversion}-py >= 1.5.0
|
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
||||||
BuildRequires: python%{python3_pkgversion}-six
|
|
||||||
BuildRequires: python%{python3_pkgversion}-wcwidth
|
|
||||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
||||||
|
|
||||||
%if %{with timeout}
|
%description -n python3-%{name}
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest-timeout
|
The pytest framework makes it easy to write small tests, yet scales to support
|
||||||
%endif
|
complex functional testing for applications and libraries.
|
||||||
|
|
||||||
%if %{with optional_tests}
|
|
||||||
BuildRequires: python%{python3_pkgversion}-argcomplete
|
|
||||||
BuildRequires: python%{python3_pkgversion}-decorator
|
|
||||||
BuildRequires: python%{python3_pkgversion}-jinja2
|
|
||||||
BuildRequires: python%{python3_pkgversion}-nose
|
|
||||||
BuildRequires: python%{python3_pkgversion}-twisted
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
|
||||||
|
|
||||||
Requires: python%{python3_pkgversion}-atomicwrites
|
|
||||||
Requires: python%{python3_pkgversion}-attrs
|
|
||||||
Requires: python%{python3_pkgversion}-more-itertools
|
|
||||||
Requires: python%{python3_pkgversion}-packaging
|
|
||||||
Requires: python%{python3_pkgversion}-pluggy >= 0.12
|
|
||||||
Requires: python%{python3_pkgversion}-py >= 1.5.0
|
|
||||||
Requires: python%{python3_pkgversion}-setuptools
|
|
||||||
Requires: python%{python3_pkgversion}-six
|
|
||||||
Requires: python%{python3_pkgversion}-wcwidth
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{name}
|
|
||||||
py.test provides simple, yet powerful testing for Python.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1 -n %{name}-%{base_version}%{?prerelease}
|
||||||
|
|
||||||
|
# Between 7.2.0 and 7.2.1 the tests were updated for pygments 2.14.
|
||||||
|
# See https://github.com/pytest-dev/pytest/pull/10632 + 10637 (backport to 7.2).
|
||||||
|
# To make the tests work with pygments 2.13, we set the added {endline}s to empty.
|
||||||
|
# Once pygments 2.14+ is omnipresent, feel free to remove this hack,
|
||||||
|
# but bump the minimal BuildRequired version of python3-pygments to 2.14.
|
||||||
|
%if v"0%(%{python3} -c "import pygments; print(pygments.__version__)" 2>/dev/null)" < v"2.14~~"
|
||||||
|
sed -i 's/"endline": "\\x1b\[90m\\x1b\[39;49;00m",/"endline": "",/' testing/conftest.py
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires -r
|
||||||
|
|
||||||
# Remove dependency of setuptools-scm
|
|
||||||
sed -i "/ *use_scm_version=.*,/d" setup.py
|
|
||||||
sed -i "s/ *setup_requires=.*/version='%{version}',/" setup.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
for l in doc/* ; do
|
for l in doc/* ; do
|
||||||
make -C $l html PYTHONPATH=$(pwd)/src SPHINXBUILD=%{_bindir}/sphinx-build-3
|
%make_build -C $l html PYTHONPATH="$(pwd)/src"
|
||||||
done
|
done
|
||||||
for f in README CHANGELOG CONTRIBUTING ; do
|
for f in README CHANGELOG CONTRIBUTING ; do
|
||||||
rst2html ${f}.rst > ${f}.html
|
rst2html ${f}.rst > ${f}.html
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files _pytest pytest py
|
||||||
|
|
||||||
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python3_version}
|
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python3_version}
|
||||||
|
ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest-3
|
||||||
mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python3_version}
|
mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python3_version}
|
||||||
|
ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test-3
|
||||||
|
|
||||||
|
# We use 3.X per default
|
||||||
|
ln -snf pytest-%{python3_version} %{buildroot}%{_bindir}/pytest
|
||||||
|
ln -snf py.test-%{python3_version} %{buildroot}%{_bindir}/py.test
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
mkdir -p _htmldocs/html
|
mkdir -p _htmldocs/html
|
||||||
@ -120,36 +155,224 @@ find %{buildroot}%{python3_sitelib} \
|
|||||||
-name '*.py' \
|
-name '*.py' \
|
||||||
-exec sed -i -e '1{/^#!/d}' {} \;
|
-exec sed -i -e '1{/^#!/d}' {} \;
|
||||||
|
|
||||||
%check
|
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PATH=%{buildroot}%{_bindir}:${PATH} \
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
||||||
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
|
|
||||||
%if %{with timeout}
|
|
||||||
--timeout=30
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{name}
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
%global __pytest %{buildroot}%{_bindir}/pytest
|
||||||
|
# optional_tests deps contain pytest-xdist, so we can use it to run tests faster
|
||||||
|
%pytest testing %{?with_timeout:--timeout=30} %{?with_optional_tests:-n auto} -rs
|
||||||
|
%else
|
||||||
|
%pyproject_check_import
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-%{name} -f %{pyproject_files}
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%doc CHANGELOG.html
|
%doc CHANGELOG.html
|
||||||
%doc README.html
|
%doc README.html
|
||||||
%doc CONTRIBUTING.html
|
%doc CONTRIBUTING.html
|
||||||
%doc _htmldocs/html
|
%doc _htmldocs/html
|
||||||
%endif
|
%endif
|
||||||
%license LICENSE
|
%{_bindir}/pytest
|
||||||
|
%{_bindir}/pytest-3
|
||||||
%{_bindir}/pytest-%{python3_version}
|
%{_bindir}/pytest-%{python3_version}
|
||||||
|
%{_bindir}/py.test
|
||||||
|
%{_bindir}/py.test-3
|
||||||
%{_bindir}/py.test-%{python3_version}
|
%{_bindir}/py.test-%{python3_version}
|
||||||
%{python3_sitelib}/pytest-*.egg-info/
|
|
||||||
%{python3_sitelib}/_pytest/
|
|
||||||
%{python3_sitelib}/pytest.py
|
|
||||||
%{python3_sitelib}/__pycache__/pytest.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 4.6.6-3
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 7.4.3-4
|
||||||
- Exclude unsupported i686 arch
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 4.6.6-2
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.3-3
|
||||||
- Adjusted for Python 3.8 module in RHEL 8
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Nov 09 2023 Miro Hrončok <mhroncok@redhat.com> - 7.4.3-1
|
||||||
|
- Update to 7.4.3
|
||||||
|
- Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-7-4-3-2023-10-24
|
||||||
|
- Fixes: rhbz#2245983
|
||||||
|
|
||||||
|
* Fri Sep 08 2023 Miro Hrončok <mhroncok@redhat.com> - 7.4.2-1
|
||||||
|
- Update to 7.4.2
|
||||||
|
- Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-7-4-2-2023-09-07
|
||||||
|
- Fixes: rhbz#2237942
|
||||||
|
|
||||||
|
* Wed Sep 06 2023 Miro Hrončok <mhroncok@redhat.com> - 7.4.1-1
|
||||||
|
- Update to 7.4.1
|
||||||
|
- Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-7-4-1-2023-09-02
|
||||||
|
- Fixes: rhbz#2236995
|
||||||
|
|
||||||
|
* Mon Aug 07 2023 Lumír Balhar <lbalhar@redhat.com> - 7.4.0-1
|
||||||
|
- Update to 7.4.0
|
||||||
|
Resolves: rhbz#2216956
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 7.3.2-3
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 7.3.2-2
|
||||||
|
- Bootstrap for Python 3.12
|
||||||
|
|
||||||
|
* Mon Jun 12 2023 Maxwell G <maxwell@gtmx.me> - 7.3.2-1
|
||||||
|
- Update to 7.3.2. Fixes rhbz#2213992.
|
||||||
|
|
||||||
|
* Mon Apr 24 2023 Miro Hrončok <mhroncok@redhat.com> - 7.3.1-2
|
||||||
|
- Fix build with setuptools >= 67.5.0
|
||||||
|
- Fixes: rhbz#2188982
|
||||||
|
|
||||||
|
* Mon Apr 17 2023 Miro Hrončok <mhroncok@redhat.com> - 7.3.1-1
|
||||||
|
- Update to 7.3.1
|
||||||
|
- Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-7-3-1-2023-04-14
|
||||||
|
- Fixes: rhbz#2186895
|
||||||
|
|
||||||
|
* Sun Apr 09 2023 Miro Hrončok <mhroncok@redhat.com> - 7.3.0-1
|
||||||
|
- Update to 7.3.0
|
||||||
|
- Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-7-3-0-2023-04-08
|
||||||
|
- Fixes: rhbz#2185393
|
||||||
|
|
||||||
|
* Fri Mar 24 2023 Miro Hrončok <mhroncok@redhat.com> - 7.2.2-1
|
||||||
|
- Update to 7.2.2
|
||||||
|
- Changelog: https://docs.pytest.org/en/7.2.x/changelog.html#pytest-7-2-2-2023-03-03
|
||||||
|
- Fixes: rhbz#2175310
|
||||||
|
|
||||||
|
* Fri Feb 10 2023 Stephen Gallagher <sgallagh@redhat.com> - 7.2.1-2
|
||||||
|
- Don't build tests and docs on RHEL to reduce dependencies
|
||||||
|
|
||||||
|
* Fri Jan 27 2023 Miro Hrončok <mhroncok@redhat.com> - 7.2.1-1
|
||||||
|
- Update to 7.2.1
|
||||||
|
- Fixes: rhbz#2160925
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Dec 10 2022 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-2
|
||||||
|
- Remove -s from Python shebang,
|
||||||
|
ensure that packages installed with pip to user locations are testable
|
||||||
|
- Fixes: rhbz#2152171
|
||||||
|
|
||||||
|
* Tue Nov 01 2022 Lumír Balhar <lbalhar@redhat.com> - 7.2.0-1
|
||||||
|
- Update to 7.2.0
|
||||||
|
Resolves: rhbz#2137514
|
||||||
|
|
||||||
|
* Sat Sep 3 2022 Thomas Moschny <thomas.moschny@gmx.de> - 7.1.3-1
|
||||||
|
- Update to 7.1.3
|
||||||
|
- Fixes: rhbz#2123701
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 13 2022 Miro Hrončok <mhroncok@redhat.com> - 7.1.2-4
|
||||||
|
- Adjust tests for a last minute Python 3.11 change in the traceback format
|
||||||
|
|
||||||
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 7.1.2-3
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 7.1.2-2
|
||||||
|
- Bootstrap for Python 3.11
|
||||||
|
|
||||||
|
* Fri Apr 08 2022 Lumír Balhar <lbalhar@redhat.com> - 7.1.2-1
|
||||||
|
- Update to 7.1.2
|
||||||
|
Resolves: rhbz#2063549
|
||||||
|
|
||||||
|
* Tue Mar 01 2022 Miro Hrončok <mhroncok@redhat.com> - 7.0.1-1
|
||||||
|
- Update to 7.0.1
|
||||||
|
- Fixes: rhbz#2050629
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Miro Hrončok <mhroncok@redhat.com> - 7.0.0~rc1-1
|
||||||
|
- Update to 7.0.0rc1
|
||||||
|
- Fixes: rhbz#2029764
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Sep 15 2021 Charalampos Stratakis <cstratak@redhat.com> - 6.2.5-1
|
||||||
|
- Update to 6.2.5
|
||||||
|
- Fixes: rhbz#1999270
|
||||||
|
|
||||||
|
* Fri Aug 27 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.4-7
|
||||||
|
- Enable all tests during package build
|
||||||
|
|
||||||
|
* Fri Aug 27 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.4-6
|
||||||
|
- Allow pluggy >=1.0
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.4-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 12 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.4-4
|
||||||
|
- Adjust pytest's own tests for changes in Python 3.10.0b4
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.2.4-3
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 6.2.4-2
|
||||||
|
- Bootstrap for Python 3.10
|
||||||
|
|
||||||
|
* Tue May 04 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.4-1
|
||||||
|
- Update to 6.2.4
|
||||||
|
- Fixes: rhbz#1956942
|
||||||
|
|
||||||
|
* Mon Apr 12 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.3-1
|
||||||
|
- Update to 6.2.3
|
||||||
|
- Fixes: rhbz#1946061
|
||||||
|
|
||||||
|
* Wed Mar 10 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.2-2
|
||||||
|
- Drop redundant build dependency on wcwidth (unused since 6.0.0rc1)
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Miro Hrončok <mhroncok@redhat.com> - 6.2.2-1
|
||||||
|
- Update to 6.2.2
|
||||||
|
- Update the description
|
||||||
|
- Fixes: rhbz#1882935
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 20 2021 Miro Hrončok <mhroncok@redhat.com> - 6.0.2-2
|
||||||
|
- Workaround the bracketed-paste mode breaking tests with Bash 5.1+
|
||||||
|
|
||||||
|
* Sat Sep 12 2020 Thomas Moschny <thomas.moschny@gmx.de> - 6.0.2-1
|
||||||
|
- Update to 6.0.2.
|
||||||
|
|
||||||
|
* Thu Aug 06 2020 Miro Hrončok <mhroncok@redhat.com> - 6.0.1-1
|
||||||
|
- Update to 6.0.1 (#1862097)
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Miro Hrončok <mhroncok@redhat.com> - 6.0.0~rc1-1
|
||||||
|
- Update to 6.0.0rc1
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 5 2020 Thomas Moschny <thomas.moschny@gmx.de> - 5.4.3-1
|
||||||
|
- Update to 5.4.3.
|
||||||
|
|
||||||
|
* Fri May 29 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.2-1
|
||||||
|
- Update to 5.4.2 (#1707986)
|
||||||
|
|
||||||
|
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.10-3
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.10-2
|
||||||
|
- Bootstrap for Python 3.9
|
||||||
|
|
||||||
|
* Fri May 08 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.10-1
|
||||||
|
- Update to 4.6.10.
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.9-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 5 2020 Thomas Moschny <thomas.moschny@gmx.de> - 4.6.9-1
|
||||||
|
- Update to 4.6.9.
|
||||||
|
|
||||||
|
* Fri Jan 3 2020 Thomas Moschny <thomas.moschny@gmx.de> - 4.6.8-1
|
||||||
|
- Update to 4.6.8.
|
||||||
|
|
||||||
|
* Fri Dec 06 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.7-1
|
||||||
|
- Update to 4.6.7
|
||||||
|
|
||||||
* Fri Oct 25 2019 Thomas Moschny <thomas.moschny@gmx.de> - 4.6.6-1
|
* Fri Oct 25 2019 Thomas Moschny <thomas.moschny@gmx.de> - 4.6.6-1
|
||||||
- Update to 4.6.6.
|
- Update to 4.6.6.
|
Loading…
Reference in New Issue
Block a user