14
0
forked from pool/python-pdm

- My ad-hoc patch failed_test_use_command.patch replaced by the

upstream mark-tests-path.patch (from
  gh#pdm-project/pdm#commit/23f1cf62a302 and gh#pdm-project/pdm#865).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=3
This commit is contained in:
2022-01-24 09:39:50 +00:00
committed by Git OBS Bridge
parent 15cc59fe47
commit dc692a2afd
4 changed files with 69 additions and 26 deletions

View File

@@ -33,9 +33,10 @@ Patch0: mark-network-tests.patch
# PATCH-FIX-OPENSUSE sys-exec-failures.patch mcepl@suse.com
# sys.executable is too long with python3.10
Patch1: sys-exec-failures.patch
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com
# this patch makes things totally awesome
Patch2: failed_test_use_command.patch
# PATCH-FIX-UPSTREAM mark-tests-path.patch gh#pdm-project/pdm#865 mcepl@suse.com
# mark tests which depend on exact paths of executables
# https://github.com/pdm-project/pdm/commit/23f1cf62a302
Patch2: mark-tests-path.patch
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module click >= 7}
BuildRequires: %{python_module importlib-metadata if %python-base < 3.8}
@@ -110,12 +111,8 @@ doesn't need to create a virtualenv at all!
%python_uninstall_alternative pdm
%check
# the test_use_python_by_version is gh#pdm-project/pdm#865
# large group is gh#pdm-project/pdm#864
# test_find_python_in_path and test_show_self_package are still
# remainders in gh#pdm-project/pdm#864
%pytest -k 'not (network or test_use_python_by_version or test_find_python_in_path or test_show_self_package)'
# the test_show_self_package is gh#pdm-project/pdm#865
%pytest -k 'not (network or path or test_show_self_package)'
%files %{python_files}
%doc README.md