From 98daaf612f8ef575b5dbda21ef0eadcb0ba96988 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Sun, 7 Apr 2024 17:14:44 +0800 Subject: [PATCH] Fix test result missing (cherry picked from commit c83a74683861a737db76dc98c662bdf7e3cf96cc) --- 0001-Fix-test-result-missing.patch | 22 ++++++++++++++++++++++ python-pyproject-api.spec | 8 ++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 0001-Fix-test-result-missing.patch diff --git a/0001-Fix-test-result-missing.patch b/0001-Fix-test-result-missing.patch new file mode 100644 index 0000000..411bcc2 --- /dev/null +++ b/0001-Fix-test-result-missing.patch @@ -0,0 +1,22 @@ +From 942fe599a2803dca182d747a6f7248bab722c289 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Sun, 7 Apr 2024 17:08:31 +0800 +Subject: [PATCH] Fix test result missing + +--- + tests/test_frontend_setuptools.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/tests/test_frontend_setuptools.py b/tests/test_frontend_setuptools.py +index 92bfda2..ab6b3dc 100644 +--- a/tests/test_frontend_setuptools.py ++++ b/tests/test_frontend_setuptools.py +@@ -172,5 +172,3 @@ def test_result_missing(frontend_setuptools: SubprocessFrontend, tmp_path: Path, + assert exc.exc_msg == f"Backend response file {tmp_path / 'pep517__exit-.json'} is missing" + assert exc.exc_type == "RuntimeError" + assert exc.code == 1 +- assert "Traceback" in exc.err +- assert "PermissionError" in exc.err +-- +2.43.0 + diff --git a/python-pyproject-api.spec b/python-pyproject-api.spec index 342d5ec..27944b1 100644 --- a/python-pyproject-api.spec +++ b/python-pyproject-api.spec @@ -2,12 +2,13 @@ Name: python-pyproject-api Version: 1.6.1 -Release: 1 +Release: 2 Summary: API to interact with the python pyproject.toml based projects License: MIT URL: https://pyproject-api.readthedocs.org Source0: https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz +Patch1: 0001-Fix-test-result-missing.patch BuildArch: noarch BuildRequires: python3-devel @@ -32,7 +33,7 @@ Summary: %{summary} %description -n python3-pyproject-api %_description %prep -%autosetup -n pyproject_api-%{version} +%autosetup -n pyproject_api-%{version} -p1 # Remove unneeded testing deps sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml @@ -59,6 +60,9 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \ %{python3_sitelib}/pyproject_api*.dist-info/ %changelog +* Sun Apr 7 2024 Dongxing Wang - 1.6.1-2 +- Fix test result missing + * Mon Jan 15 2024 Dongxing Wang - 1.6.1-1 - Upgrade version of package to 1.6.1