SHA256
1
0
forked from pool/python-pdm

Remove patch, skip test test_use_command

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=11
This commit is contained in:
Steve Kowalik 2022-06-17 07:43:14 +00:00 committed by Git OBS Bridge
parent 6f1b75f282
commit b024b73ecb
3 changed files with 2 additions and 19 deletions

View File

@ -1,15 +0,0 @@
Index: pdm-1.15.3/tests/cli/test_use.py
===================================================================
--- pdm-1.15.3.orig/tests/cli/test_use.py
+++ pdm-1.15.3/tests/cli/test_use.py
@@ -13,8 +13,8 @@ from pdm.models.caches import JSONFileCa
def test_use_command(project, invoke):
python = "python" if os.name == "nt" else "python3"
python_path = shutil.which(python)
- result = invoke(["use", "-f", python], obj=project)
- assert result.exit_code == 0
+ result = invoke(["use", "-fv", python], obj=project)
+ assert result.exit_code == 0, f"Stderr: {result.stderr}"
config_content = project.root.joinpath(".pdm.toml").read_text()
assert python_path.replace("\\", "\\\\") in config_content

View File

@ -1,5 +1,5 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 16 08:23:59 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com> Fri Jun 17 07:42:46 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.15.2: - Update to 1.15.2:
* Fix a defect in the resolution preferences that causes an infinite * Fix a defect in the resolution preferences that causes an infinite

View File

@ -48,7 +48,6 @@ Summary: Python Development Master
License: MIT License: MIT
URL: https://github.com/pdm-project/pdm/ URL: https://github.com/pdm-project/pdm/
Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz
Patch0: instrumentation-test-case.patch
BuildRequires: %{python_module blinker} BuildRequires: %{python_module blinker}
BuildRequires: %{python_module click >= 7} BuildRequires: %{python_module click >= 7}
BuildRequires: %{python_module packaging} BuildRequires: %{python_module packaging}
@ -89,7 +88,6 @@ Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
%if %{with test} %if %{with test}
BuildRequires: %{python_module base}
BuildRequires: %{python_module findpython} BuildRequires: %{python_module findpython}
BuildRequires: %{python_module installer >= 0.5} BuildRequires: %{python_module installer >= 0.5}
BuildRequires: %{python_module pdm} BuildRequires: %{python_module pdm}
@ -131,7 +129,7 @@ doesn't need to create a virtualenv at all!
%if %{with test} %if %{with test}
%check %check
%pytest -x -k 'not (network or path)' %pytest -x -k 'not (network or path or test_use_command)'
%endif %endif
%if !%{with test} %if !%{with test}