diff --git a/build-0.10.0.tar.gz b/build-0.10.0.tar.gz deleted file mode 100644 index 867d057..0000000 Binary files a/build-0.10.0.tar.gz and /dev/null differ diff --git a/build-1.0.3.tar.gz b/build-1.0.3.tar.gz new file mode 100644 index 0000000..59a8184 Binary files /dev/null and b/build-1.0.3.tar.gz differ diff --git a/python-build.spec b/python-build.spec index 3d1f881..8c7c15d 100644 --- a/python-build.spec +++ b/python-build.spec @@ -1,15 +1,13 @@ %global pypi_name build Name: python-%{pypi_name} -Version: 0.10.0 +Version: 1.0.3 Release: 1 Summary: A simple, correct PEP517 package builder License: MIT URL: https://github.com/pypa/build Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz -# Upstream patch for fixing tests with pip 23 -Patch1: strip-formatting-from-stderr.patch BuildArch: noarch BuildRequires: python3-devel @@ -80,5 +78,8 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \ %{python3_sitelib}/%{pypi_name}*.dist-info/ %changelog +* Mon Nov 20 2023 jiangxinyu - 1.0.3-1 +- Update package to version 1.0.3 + * Sun May 28 2023 Dongxing Wang - 0.10.0-1 - Initial package 0.10.0 diff --git a/strip-formatting-from-stderr.patch b/strip-formatting-from-stderr.patch deleted file mode 100644 index 1c12ffa..0000000 --- a/strip-formatting-from-stderr.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 4f5362fccc908820574fdbac2f6b6871c0f371c5 Mon Sep 17 00:00:00 2001 -From: Henry Schreiner -Date: Wed, 15 Mar 2023 09:33:53 -0400 -Subject: [PATCH] tests: strip formatting from stderr (pip 23) - -Signed-off-by: Henry Schreiner ---- - tests/test_main.py | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/tests/test_main.py b/tests/test_main.py -index e924d8bd..456ff749 100644 ---- a/tests/test_main.py -+++ b/tests/test_main.py -@@ -20,6 +20,8 @@ - cwd = os.getcwd() - out = os.path.join(cwd, 'dist') - -+ANSI_STRIP = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])') -+ - - @pytest.mark.parametrize( - ('cli_args', 'build_args', 'hook'), -@@ -368,8 +370,10 @@ def test_output_env_subprocess_error( - assert stdout[:4] == stdout_body - assert stdout[-1].startswith(stdout_error) - -- assert len(stderr) == 1 -- assert stderr[0].startswith('ERROR: Invalid requirement: ') -+ # Newer versions of pip also color stderr - strip them if present -+ cleaned_stderr = ANSI_STRIP.sub('', '\n'.join(stderr)).strip() -+ assert len(cleaned_stderr.splitlines()) == 1 -+ assert cleaned_stderr.startswith('ERROR: Invalid requirement: ') - - - @pytest.mark.parametrize(