Fix test result format compatible
(cherry picked from commit d126dc3baa839dcdcb9cc77c947eecdb4bb02e52)
This commit is contained in:
parent
aeaa2dbd59
commit
402ee8dca4
25
0002-Fix-test-result-format-compatible.patch
Normal file
25
0002-Fix-test-result-format-compatible.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From cfac1a98a6c931cfc9901b783ea03a4ffbe40340 Mon Sep 17 00:00:00 2001
|
||||||
|
From: desert-sailor <dongxing.wang_a@thundersoft.com>
|
||||||
|
Date: Mon, 8 Apr 2024 15:04:49 +0800
|
||||||
|
Subject: [PATCH] Fix test result format compatible
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/test_frontend_setuptools.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_frontend_setuptools.py b/tests/test_frontend_setuptools.py
|
||||||
|
index ab6b3dc..7ed6817 100644
|
||||||
|
--- a/tests/test_frontend_setuptools.py
|
||||||
|
+++ b/tests/test_frontend_setuptools.py
|
||||||
|
@@ -76,7 +76,7 @@ def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: Subpro
|
||||||
|
assert dist.metadata["Name"] == "demo"
|
||||||
|
values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"] # type: ignore[attr-defined]
|
||||||
|
# ignore because "PackageMetadata" has no attribute "items"
|
||||||
|
- assert sorted(values) == ["magic >3", "requests >2"]
|
||||||
|
+ assert sorted(values) in [["magic >3", "requests >2"], ["magic (>3)", "requests (>2)"]]
|
||||||
|
assert isinstance(result.out, str)
|
||||||
|
assert isinstance(result.err, str)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
Name: python-pyproject-api
|
Name: python-pyproject-api
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 2
|
Release: 3
|
||||||
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
|
Patch1: 0001-Fix-test-result-missing.patch
|
||||||
|
Patch2: 0002-Fix-test-result-format-compatible.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -60,6 +61,9 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \
|
|||||||
%{python3_sitelib}/pyproject_api*.dist-info/
|
%{python3_sitelib}/pyproject_api*.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 8 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-3
|
||||||
|
- Fix test result format compatible
|
||||||
|
|
||||||
* Sun Apr 7 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-2
|
* Sun Apr 7 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-2
|
||||||
- Fix test result missing
|
- Fix test result missing
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user