15
0

Compare commits

2 Commits

Author SHA256 Message Date
1f46f3ee72 Accepting request 1327975 from devel:languages:python
- Use poetry-core rather than poetry for building.
- Add patch support-python-314.patch:
  * Support Python 3.14 normalizing.

OBS-URL: https://build.opensuse.org/request/show/1327975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rnginline?expand=0&rev=7
2026-01-19 17:36:54 +00:00
f9a9b5bc95 - Use poetry-core rather than poetry for building.
- Add patch support-python-314.patch:
  * Support Python 3.14 normalizing.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rnginline?expand=0&rev=14
2026-01-19 05:07:44 +00:00
3 changed files with 33 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 19 05:07:20 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Use poetry-core rather than poetry for building.
- Add patch support-python-314.patch:
* Support Python 3.14 normalizing.
-------------------------------------------------------------------
Mon Mar 18 04:38:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-rnginline
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,9 +24,10 @@ Summary: Python libary to flatten multi-file RELAX NG schemas
License: Apache-2.0
URL: https://github.com/h4l/rnginline
Source: https://files.pythonhosted.org/packages/source/r/rnginline/rnginline-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Support Python 3.14 normalizing
Patch0: support-python-314.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docopt
@@ -55,7 +56,7 @@ multi-file RELAX NG schemas from arbitary URLs, and flattening them
into a single RELAX NG schema.
%prep
%setup -q -n rnginline-%{version}
%autosetup -p1 -n rnginline-%{version}
%build
%pyproject_wheel

21
support-python-314.patch Normal file
View File

@@ -0,0 +1,21 @@
Index: rnginline-1.0.0/rnginline/test/test_urlhandlers.py
===================================================================
--- rnginline-1.0.0.orig/rnginline/test/test_urlhandlers.py
+++ rnginline-1.0.0/rnginline/test/test_urlhandlers.py
@@ -1,6 +1,7 @@
from __future__ import annotations
import os
+import sys
import tempfile
from urllib import parse
@@ -32,6 +33,8 @@ def test_ensure_parsed() -> None:
def test_file_url_roundtrip(
path: str, abs: bool | None, expected_url: str, expected_path: str
) -> None:
+ if sys.version_info[:2] >= (3, 14) and expected_url.startswith('/some'):
+ expected_url = f"//{expected_url}"
kwargs = {"abs": abs} if abs is not None else {}
result_url = file.makeurl(path, **kwargs)