SHA256
1
0
forked from pool/python-tox

Accepting request 1162951 from home:ecsos:python

- Fix build error in Leap.
  - Disable one more test.
  - Drop macro %dnl because it works only in rpm version >= 4.15.
    Leap hast 4.14 at this time.
    Also enable it.
  - Fix some python3 typos in spec.

OBS-URL: https://build.opensuse.org/request/show/1162951
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=121
This commit is contained in:
Markéta Machová 2024-03-28 08:03:04 +00:00 committed by Git OBS Bridge
parent dbcfdd3dea
commit 13ba9a9ffb
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Mar 27 16:33:24 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error in Leap.
- Disable one more test.
- Drop macro %dnl because it works only in rpm version >= 4.15.
Leap hast 4.14 at this time.
Also enable it.
- Fix some python3 typos in spec.
-------------------------------------------------------------------
Mon Mar 25 19:22:38 UTC 2024 - Dan Čermák <dcermak@suse.com>

View File

@ -57,7 +57,7 @@ BuildRequires: %{python_module wheel >= 0.42}
%if %{with devpi_process}
BuildRequires: %{python_module devpi-process > 1}
%endif
%dnl BuildRequires: %{python_module importlib-metadata >= 6.8}
BuildRequires: %{python_module importlib-metadata >= 6.8}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
@ -70,8 +70,8 @@ Requires: python-platformdirs >= 4.1
Requires: python-pluggy >= 1.3
Requires: python-pyproject-api >= 1.6.1
Requires: python-virtualenv >= 20.24.3
%dnl Requires: (python-importlib-metadata >= 0.12 if python3-base < 3.8)
Requires: (python-tomli >= 2.0.1 if python3-base < 3.11)
Requires: (python-importlib-metadata >= 0.12 if python-base < 3.8)
Requires: (python-tomli >= 2.0.1 if python-base < 3.11)
Requires(post): update-alternatives
Requires(postun): update-alternatives
# last detox version is 0.19
@ -145,6 +145,8 @@ donttest+=" or test_call_as_exe or test_skip_pkg_install"
donttest+=" or test_python_generate_hash_seed"
# this test doesn't work on aarch64
donttest+=" or test_bad_env_var"
# this test doesn't work on Leap
donttest+=" or test_package_cmd_builder"
%{python_expand # tests expect an active virtualenv with a clean python name as sys.executable
virtualenv-%{$python_bin_suffix} --system-site-packages testenv-%{$python_bin_suffix}