Fix test result missing
(cherry picked from commit c83a74683861a737db76dc98c662bdf7e3cf96cc)
This commit is contained in:
parent
aa278c3415
commit
98daaf612f
22
0001-Fix-test-result-missing.patch
Normal file
22
0001-Fix-test-result-missing.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 942fe599a2803dca182d747a6f7248bab722c289 Mon Sep 17 00:00:00 2001
|
||||||
|
From: desert-sailor <dongxing.wang_a@thundersoft.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
Name: python-pyproject-api
|
Name: python-pyproject-api
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: API to interact with the python pyproject.toml based projects
|
Summary: API to interact with the python pyproject.toml based projects
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pyproject-api.readthedocs.org
|
URL: https://pyproject-api.readthedocs.org
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz
|
||||||
|
Patch1: 0001-Fix-test-result-missing.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -32,7 +33,7 @@ Summary: %{summary}
|
|||||||
%description -n python3-pyproject-api %_description
|
%description -n python3-pyproject-api %_description
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pyproject_api-%{version}
|
%autosetup -n pyproject_api-%{version} -p1
|
||||||
# Remove unneeded testing deps
|
# Remove unneeded testing deps
|
||||||
sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml
|
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/
|
%{python3_sitelib}/pyproject_api*.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 7 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-2
|
||||||
|
- Fix test result missing
|
||||||
|
|
||||||
* Mon Jan 15 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-1
|
* Mon Jan 15 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-1
|
||||||
- Upgrade version of package to 1.6.1
|
- Upgrade version of package to 1.6.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user