14
0

Accepting request 1200735 from devel:languages:python

- Remove BuildRequires on wheel, it has been adopted since 71.1.
- Sort out test suite changes.

OBS-URL: https://build.opensuse.org/request/show/1200735
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-setuptools?expand=0&rev=85
This commit is contained in:
2024-09-15 10:32:49 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 13 04:01:00 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com> Tue Jul 30 02:22:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -39,8 +39,6 @@ Source: https://files.pythonhosted.org/packages/source/s/setuptools/setu
Patch0: sort-for-reproducibility.patch Patch0: sort-for-reproducibility.patch
# Bootstrap: Don't BuildRequire pip here! # Bootstrap: Don't BuildRequire pip here!
BuildRequires: %{python_module base >= 3.9} 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: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives 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 PRE_BUILT_SETUPTOOLS_WHEEL=$PWD/dist/setuptools-%{version}-py3-none-any.whl
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export PIP_FIND_LINKS=$PWD/dist
# tests need imports from local source dir # tests need imports from local source dir
export PYTHONPATH=$(pwd) export PYTHONPATH=$(pwd)
# no online comparisons in obs # no online comparisons in obs
donttest="(test_apply_pyproject_equivalent_to_setupcfg and https)" donttest="(test_apply_pyproject_equivalent_to_setupcfg and https)"
# test_pbr_integration tries to install pbr from network using pip # test_pbr_integration tries to install pbr from network using pip
donttest+=" or test_pbr_integration" 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 # looks for .exe files that we do not ship
donttest+=" or test_wheel_includes_cli_scripts" 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)" %pytest -rfE -n auto -k "not ($donttest)"
%endif %endif