From 2bb3c7cfaaf804487de22e1af1194cbd1b1cd88c9e0072b8809f905f68cc08ff Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:19:40 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cinemagoer?expand=0&rev=7 --- python-cinemagoer.changes | 5 +++++ python-cinemagoer.spec | 16 +++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/python-cinemagoer.changes b/python-cinemagoer.changes index 83cc411..c30f7be 100644 --- a/python-cinemagoer.changes +++ b/python-cinemagoer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:17 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Wed Jun 19 10:32:30 UTC 2024 - ecsos diff --git a/python-cinemagoer.spec b/python-cinemagoer.spec index d19abd8..a1f30ef 100644 --- a/python-cinemagoer.spec +++ b/python-cinemagoer.spec @@ -1,7 +1,7 @@ # # spec file for package python-cinemagoer # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,10 @@ 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 -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-SQLAlchemy @@ -49,10 +51,10 @@ copy of the whole database. %autosetup -p1 -n cinemagoer-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Do not install python scripts under locale/, they are only used at build time # for the translations @@ -61,6 +63,10 @@ copy of the whole database. %python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po %python_clone -a %{buildroot}%{_bindir}/imdbpy +%check +# The just about the entire testsuite wants network access +%pytest -k "test_series_full_cast_has_ids" + %post %python_install_alternative imdbpy @@ -71,7 +77,7 @@ copy of the whole database. %doc README.rst CHANGELOG.txt %license LICENSE.txt %python_alternative %{_bindir}/imdbpy -%{python_sitelib}/cinemagoer-%{version}-py%{python_version}.egg-info +%{python_sitelib}/cinemagoer-%{version}.dist-info %{python_sitelib}/imdb %lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo %lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo