Accepting request 1201909 from devel:languages:python
- Add patch support-newer-pythons.patch: * Remove failing test with Python 3.12.6 and 3.13. - Switch to autosetup macro. OBS-URL: https://build.opensuse.org/request/show/1201909 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-poetry-core?expand=0&rev=22
This commit is contained in:
commit
59d2e31a0d
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 19 04:14:57 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-newer-pythons.patch:
|
||||
* Remove failing test with Python 3.12.6 and 3.13.
|
||||
- Switch to autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 18:50:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -22,10 +22,11 @@ Version: 1.9.0
|
||||
Release: 0
|
||||
Summary: Poetry PEP 517 Build Backend
|
||||
License: Apache-2.0 AND BSD-2-Clause AND MIT AND Python-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/python-poetry/poetry-core
|
||||
# Only the github archive provides the tests
|
||||
Source: %{url}/archive/%{version}.tar.gz#/poetry-core-%{version}-gh.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#python-poetry/poetry-core#758
|
||||
Patch0: support-newer-pythons.patch
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: fdupes
|
||||
@ -48,7 +49,7 @@ intended to be a light weight, fully compliant, self-contained package allowing
|
||||
PEP 517 compatible build frontends to build Poetry managed projects.
|
||||
|
||||
%prep
|
||||
%setup -q -n poetry-core-%{version}
|
||||
%autosetup -p1 -n poetry-core-%{version}
|
||||
mkdir vendoredlicenses
|
||||
cp -p src/poetry/core/_vendor/lark/LICENSE vendoredlicenses/lark.LICENSE
|
||||
cp -p src/poetry/core/_vendor/fastjsonschema/LICENSE vendoredlicenses/fastjsonschema.LICENSE
|
||||
@ -69,8 +70,7 @@ cp -p src/poetry/core/_vendor/tomli/LICENSE vendoredlicenses/tomli.L
|
||||
git init
|
||||
#https://github.com/python-poetry/poetry/issues/9678
|
||||
donttest="obsdummyprefix"
|
||||
python312_donttest=" or (test_invalid_requirement and :.-invalid)"
|
||||
%pytest -k "not ($donttest ${$python_donttest})"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
24
support-newer-pythons.patch
Normal file
24
support-newer-pythons.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 10c20e199caa4809cceb14456d7e647cb833906a Mon Sep 17 00:00:00 2001
|
||||
From: Emmanuel Arias <eamanu@yaerobi.com>
|
||||
Date: Fri, 13 Sep 2024 09:18:00 -0300
|
||||
Subject: [PATCH] Remove parametrize test for failed test
|
||||
|
||||
In CPython3.12.6 urllib.parse.urlunsplit() was modified to preserve relative path
|
||||
in URL without netloc. poetry-core use this method to check the links in requirements.
|
||||
This patch remove that parametrize test.
|
||||
---
|
||||
tests/version/test_requirements.py | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/tests/version/test_requirements.py b/tests/version/test_requirements.py
|
||||
index c1d6a34aa..6705cac06 100644
|
||||
--- a/tests/version/test_requirements.py
|
||||
+++ b/tests/version/test_requirements.py
|
||||
@@ -134,7 +134,6 @@ def test_requirement(string: str, expected: dict[str, Any]) -> None:
|
||||
[
|
||||
("foo!", "Unexpected character at column 4\n\nfoo!\n ^\n"),
|
||||
("foo (>=bar)", 'invalid version constraint ">=bar"'),
|
||||
- ("name @ file:.", "invalid URL"),
|
||||
("name @ file:/.", "invalid URL"),
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue
Block a user