forked from pool/python-cinemagoer
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d5dda7bec7 | |||
| 923809dc7a | |||
| 6ceed6dc8e | |||
| c6531715f7 | |||
| 2a76a6e984 | |||
| b01f2e3a69 |
@@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Switch to pyroject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 19 10:32:30 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 16 14:46:26 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu May 16 14:46:26 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-cinemagoer
|
# spec file for package python-cinemagoer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-cinemagoer
|
Name: python-cinemagoer
|
||||||
Version: 2023.5.1
|
Version: 2023.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,8 +25,12 @@ License: GPL-2.0-or-later
|
|||||||
URL: https://cinemagoer.sourceforge.io/
|
URL: https://cinemagoer.sourceforge.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/c/cinemagoer/cinemagoer-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/c/cinemagoer/cinemagoer-%{version}.tar.gz
|
||||||
Patch0: do_not_install_scripts.patch
|
Patch0: do_not_install_scripts.patch
|
||||||
BuildRequires: %{python_module devel}
|
# 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}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-SQLAlchemy
|
Requires: python-SQLAlchemy
|
||||||
@@ -49,10 +53,10 @@ copy of the whole database.
|
|||||||
%autosetup -p1 -n cinemagoer-%{version}
|
%autosetup -p1 -n cinemagoer-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
# Do not install python scripts under locale/, they are only used at build time
|
# Do not install python scripts under locale/, they are only used at build time
|
||||||
# for the translations
|
# for the translations
|
||||||
@@ -61,6 +65,10 @@ copy of the whole database.
|
|||||||
%python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po
|
%python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po
|
||||||
%python_clone -a %{buildroot}%{_bindir}/imdbpy
|
%python_clone -a %{buildroot}%{_bindir}/imdbpy
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Just about the entire testsuite wants network access
|
||||||
|
%pytest -k "test_series_full_cast_has_ids"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative imdbpy
|
%python_install_alternative imdbpy
|
||||||
|
|
||||||
@@ -71,7 +79,7 @@ copy of the whole database.
|
|||||||
%doc README.rst CHANGELOG.txt
|
%doc README.rst CHANGELOG.txt
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python_alternative %{_bindir}/imdbpy
|
%python_alternative %{_bindir}/imdbpy
|
||||||
%{python_sitelib}/cinemagoer-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/cinemagoer-%{version}.dist-info
|
||||||
%{python_sitelib}/imdb
|
%{python_sitelib}/imdb
|
||||||
%lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo
|
%lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo
|
||||||
%lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo
|
%lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo
|
||||||
|
|||||||
56
support-python314.patch
Normal file
56
support-python314.patch
Normal 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
|
||||||
Reference in New Issue
Block a user