From 588c0410437fe7bedfb04b7261df04896ca93ba3d6d7e61441b23a35576de770 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Sep 2024 04:01:51 +0000 Subject: [PATCH] - Remove BuildRequires on wheel, it has been adopted since 71.1. - Sort out test suite changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=269 --- python-setuptools.changes | 6 ++++++ python-setuptools.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-setuptools.changes b/python-setuptools.changes index 57407bf..9fc6bcf 100644 --- a/python-setuptools.changes +++ b/python-setuptools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 13 04:01:00 UTC 2024 - Steve Kowalik + +- Remove BuildRequires on wheel, it has been adopted since 71.1. +- Sort out test suite changes. + ------------------------------------------------------------------- Tue Jul 30 02:22:34 UTC 2024 - Steve Kowalik diff --git a/python-setuptools.spec b/python-setuptools.spec index cd81b3d..474da70 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -39,8 +39,6 @@ Source: https://files.pythonhosted.org/packages/source/s/setuptools/setu Patch0: sort-for-reproducibility.patch # Bootstrap: Don't BuildRequire pip here! BuildRequires: %{python_module base >= 3.9} -# The rpm python-wheel build is bootstrap friendly since 0.42 -BuildRequires: %{python_module wheel >= 0.42} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -120,16 +118,18 @@ cp %{$python_sitelib}/../wheels/setuptools-%{version}-py3-none-any.whl $PWD/dist } export PRE_BUILT_SETUPTOOLS_WHEEL=$PWD/dist/setuptools-%{version}-py3-none-any.whl export LANG=en_US.UTF-8 +export PIP_FIND_LINKS=$PWD/dist # tests need imports from local source dir export PYTHONPATH=$(pwd) # no online comparisons in obs donttest="(test_apply_pyproject_equivalent_to_setupcfg and https)" # test_pbr_integration tries to install pbr from network using pip donttest+=" or test_pbr_integration" -# test_example_file_in_sdist wants wheel.whl -donttest+=" or test_example_file_in_sdist" # looks for .exe files that we do not ship donttest+=" or test_wheel_includes_cli_scripts" +# ignores environment variables +donttest+=" or test_setup_requires_with_distutils_command_dep" +donttest+=" or test_setup_requires_with_transitive_extra_dependency" %pytest -rfE -n auto -k "not ($donttest)" %endif