15
0

Compare commits

6 Commits

Author SHA256 Message Date
d5dda7bec7 Accepting request 1317680 from devel:languages:python
- Add patch support-python314.patch:
  * Don't use removed pkgutil function.

OBS-URL: https://build.opensuse.org/request/show/1317680
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cinemagoer?expand=0&rev=5
2025-11-14 15:16:32 +00:00
923809dc7a - Add patch support-python314.patch:
* Don't use removed pkgutil function.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cinemagoer?expand=0&rev=9
2025-11-14 02:55:18 +00:00
6ceed6dc8e Accepting request 1285953 from devel:languages:python
- Switch to pyroject macros.

OBS-URL: https://build.opensuse.org/request/show/1285953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cinemagoer?expand=0&rev=4
2025-06-16 09:13:02 +00:00
c6531715f7 - Switch to pyroject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cinemagoer?expand=0&rev=7
2025-06-16 06:19:40 +00:00
2a76a6e984 Accepting request 1181940 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1181940
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cinemagoer?expand=0&rev=3
2024-06-20 14:49:11 +00:00
b01f2e3a69 - Add %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cinemagoer?expand=0&rev=5
2024-06-20 13:18:59 +00:00
3 changed files with 66 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 14 02:54:42 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-python314.patch:
* Don't use removed pkgutil function.
-------------------------------------------------------------------
Mon Jun 16 06:12:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cinemagoer
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 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
@@ -25,6 +25,8 @@ License: GPL-2.0-or-later
URL: https://cinemagoer.sourceforge.io/
Source: https://files.pythonhosted.org/packages/source/c/cinemagoer/cinemagoer-%{version}.tar.gz
Patch0: do_not_install_scripts.patch
# PATCH-FIX-UPSTREAM Based on gh#cinemagoer/cinemagoer#543
Patch1: support-python314.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -64,7 +66,7 @@ copy of the whole database.
%python_clone -a %{buildroot}%{_bindir}/imdbpy
%check
# The just about the entire testsuite wants network access
# Just about the entire testsuite wants network access
%pytest -k "test_series_full_cast_has_ids"
%post

56
support-python314.patch Normal file
View File

@@ -0,0 +1,56 @@
From fec0b1a0f90e2d6201f6fa5fd429f13d9b7a747d Mon Sep 17 00:00:00 2001
From: Jonas Stendahl <jonas@stendahl.me>
Date: Fri, 10 Oct 2025 22:59:05 +0200
Subject: [PATCH] Migrate to find_spec
---
imdb/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: cinemagoer-2023.5.1/imdb/__init__.py
===================================================================
--- cinemagoer-2023.5.1.orig/imdb/__init__.py
+++ cinemagoer-2023.5.1/imdb/__init__.py
@@ -32,7 +32,7 @@ VERSION = __version__
import os
import sys
-from pkgutil import find_loader
+from importlib.util import find_spec
from types import FunctionType, MethodType
from imdb import Character, Company, Movie, Person
@@ -214,9 +214,9 @@ Cinemagoer = IMDb
def available_access_systems():
"""Return the list of available data access systems."""
asList = []
- if find_loader('imdb.parser.http') is not None:
+ if find_spec('imdb.parser.http') is not None:
asList.append('http')
- if find_loader('imdb.parser.sql') is not None:
+ if find_spec('imdb.parser.sql') is not None:
asList.append('sql')
return asList
Index: cinemagoer-2023.5.1/imdb/parser/http/piculet.py
===================================================================
--- cinemagoer-2023.5.1.orig/imdb/parser/http/piculet.py
+++ cinemagoer-2023.5.1/imdb/parser/http/piculet.py
@@ -32,7 +32,7 @@ from argparse import ArgumentParser
from collections import deque
from functools import partial
from operator import itemgetter
-from pkgutil import find_loader
+from importlib.util import find_spec
__version__ = '1.2b1'
@@ -202,7 +202,7 @@ def html_to_xhtml(document, omit_tags=No
# sigalias: XPathResult = Union[Sequence[str], Sequence[Element]]
-_USE_LXML = find_loader('lxml') is not None
+_USE_LXML = find_spec('lxml') is not None
if _USE_LXML:
from lxml import etree as ElementTree
from lxml.etree import Element