Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-subliminal for
openSUSE:Factory checked in at 2026-07-23 23:15:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-subliminal (Old)
and /work/SRC/openSUSE:Factory/.python-subliminal.new.2004 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-subliminal"
Thu Jul 23 23:15:25 2026 rev:12 rq:1367410 version:2.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-subliminal/python-subliminal.changes
2026-07-22 19:05:59.082857347 +0200
+++
/work/SRC/openSUSE:Factory/.python-subliminal.new.2004/python-subliminal.changes
2026-07-23 23:17:53.504202797 +0200
@@ -1,0 +2,7 @@
+Thu Jul 23 11:51:51 UTC 2026 - Luigi Baldoni <[email protected]>
+
+- Update to version 2.7.1
+ Misc:
+ * fix test for compatibility with guessit>=4
+
+-------------------------------------------------------------------
Old:
----
subliminal-2.7.0.tar.gz
New:
----
subliminal-2.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-subliminal.spec ++++++
--- /var/tmp/diff_new_pack.6nHzPa/_old 2026-07-23 23:17:54.096223965 +0200
+++ /var/tmp/diff_new_pack.6nHzPa/_new 2026-07-23 23:17:54.104224252 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-subliminal
-Version: 2.7.0
+Version: 2.7.1
Release: 0
Summary: Python library to search and download subtitles
License: MIT
++++++ subliminal-2.7.0.tar.gz -> subliminal-2.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/.github/workflows/CI.yaml
new/subliminal-2.7.1/.github/workflows/CI.yaml
--- old/subliminal-2.7.0/.github/workflows/CI.yaml 2026-07-22
00:51:19.000000000 +0200
+++ new/subliminal-2.7.1/.github/workflows/CI.yaml 2026-07-23
01:58:52.000000000 +0200
@@ -188,10 +188,52 @@
include-hidden-files: true
if-no-files-found: error
+ test-freebsd:
+ name: Test on FreeBSD
+ runs-on: ubuntu-latest
+ needs: prepare-test
+ timeout-minutes: 10
+ if: github.event_name == 'push'
+ steps:
+ - uses: actions/checkout@v7
+ with:
+ persist-credentials: false
+ fetch-depth: 0
+ - name: Prepare tests
+ uses: ./.github/actions/prepare-tests
+ - name: Display downloaded files
+ run: ls -R tests/data
+ - name: Test in FreeBSD
+ uses: vmactions/freebsd-vm@v1
+ with:
+ release: "15.0"
+ usesh: true
+ prepare: |
+ pkg install -y python3 databases/py-sqlite3 devel/py-hatch git-lite
+ run: |
+ set -e
+ PY_VERSION=$(python3 -c 'import platform;
print(".".join(platform.python_version_tuple()[:2]))')
+ echo "Picked Python ${PY_VERSION}"
+ export ENV="tests.py${PY_VERSION}"
+ export FORCE_COLOR="1"
+ export CI_RUN="yes"
+ export COVERAGE_FILE=".coverage.freebsd.${PY_VERSION}"
+ hatch -v env create "${ENV}"
+ hatch -v run "${ENV}:test-cov"
+
+ - name: Store coverage file
+ uses: actions/upload-artifact@v7
+ with:
+ name: coverage-freebsd
+ path: .coverage*
+ include-hidden-files: true
+ if-no-files-found: error
+
coverage:
name: Coverage
runs-on: ubuntu-latest
- needs: test
+ needs: [test, test-freebsd]
+ if: ${{ !cancelled() && needs.test.result == 'success' &&
(needs.test-freebsd.result == 'success' || needs.test-freebsd.result ==
'skipped') }}
permissions:
pull-requests: write
contents: write
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/HISTORY.rst
new/subliminal-2.7.1/HISTORY.rst
--- old/subliminal-2.7.0/HISTORY.rst 2026-07-22 00:51:19.000000000 +0200
+++ new/subliminal-2.7.1/HISTORY.rst 2026-07-23 01:58:52.000000000 +0200
@@ -2,6 +2,16 @@
.. towncrier release notes start
+2.7.1 (2026-07-22)
+^^^^^^^^^^^^^^^^^^
+
+Misc
+----
+
+- fix test for compatibility with guessit>=4 (`#1368
<https://github.com/Diaoul/subliminal/issues/1368>`__)
+- add CI tests for FreeBSD (`#1370
<https://github.com/Diaoul/subliminal/issues/1370>`__)
+
+
2.7.0 (2026-07-21)
^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/PKG-INFO
new/subliminal-2.7.1/PKG-INFO
--- old/subliminal-2.7.0/PKG-INFO 2026-07-22 00:51:19.000000000 +0200
+++ new/subliminal-2.7.1/PKG-INFO 2026-07-23 01:58:52.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: subliminal
-Version: 2.7.0
+Version: 2.7.1
Summary: Subtitles, faster than your thoughts
Project-URL: homepage, https://github.com/Diaoul/subliminal
Project-URL: repository, https://github.com/Diaoul/subliminal
@@ -55,6 +55,7 @@
Provides-Extra: tests
Requires-Dist: colorama; extra == 'tests'
Requires-Dist: coverage[toml]>=7; extra == 'tests'
+Requires-Dist: packaging; extra == 'tests'
Requires-Dist: pytest-cov; extra == 'tests'
Requires-Dist: pytest-xdist; extra == 'tests'
Requires-Dist: pytest>=6.0; extra == 'tests'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/pyproject.toml
new/subliminal-2.7.1/pyproject.toml
--- old/subliminal-2.7.0/pyproject.toml 2026-07-22 00:51:19.000000000 +0200
+++ new/subliminal-2.7.1/pyproject.toml 2026-07-23 01:58:52.000000000 +0200
@@ -67,6 +67,7 @@
tests = [
"subliminal[rar]",
"coverage[toml]>=7",
+ "packaging",
"pytest>=6.0",
"pytest-cov",
"pytest-xdist",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/tests/conftest.py
new/subliminal-2.7.1/tests/conftest.py
--- old/subliminal-2.7.0/tests/conftest.py 2026-07-22 00:51:19.000000000
+0200
+++ new/subliminal-2.7.1/tests/conftest.py 2026-07-23 01:58:52.000000000
+0200
@@ -520,12 +520,13 @@
),
'adam-12_s01e02': Episode(
'Adam-12 1968 Season 1 Complete x264 [i_c]/Adam-12 S01E02 Log 141
The Color TV Bandit.mkv',
- 'Adam 12',
+ 'Adam-12', # with guessit>=4, before 'Adam 12'
1,
2,
year=1968,
release_group='[i_c]',
video_codec='H.264',
+ title='Log 141 The Color TV Bandit', # with guessit>=4, before
None
),
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/subliminal-2.7.0/tests/test_video.py
new/subliminal-2.7.1/tests/test_video.py
--- old/subliminal-2.7.0/tests/test_video.py 2026-07-22 00:51:19.000000000
+0200
+++ new/subliminal-2.7.1/tests/test_video.py 2026-07-23 01:58:52.000000000
+0200
@@ -3,10 +3,12 @@
import os
from datetime import datetime, timedelta, timezone
+from importlib.metadata import version as get_version
from typing import TYPE_CHECKING
from unittest.mock import Mock
import pytest
+from packaging.version import Version
from subliminal.utils import sanitize, timestamp
from subliminal.video import Episode, Movie, Video
@@ -239,8 +241,14 @@
assert video.tvdb_id is None
[email protected](
+ Version(get_version('guessit')) < Version('4'),
+ reason='guessit was not correctly parsing this video in older versions',
+)
def test_episode_fromname_guessit_bug(episodes: dict[str, Episode]) -> None:
- # Only works with Video.fromname, not Episode.fromname
+ # Only works with Video.fromname
+ # With Episode.fromname, the episode is incorrectly guessed as 12
+ # See https://github.com/guessit-io/guessit/issues/929
video = Video.fromname(episodes['adam-12_s01e02'].name)
assert isinstance(video, Episode)
assert video.name == episodes['adam-12_s01e02'].name
@@ -250,5 +258,5 @@
assert video.series == episodes['adam-12_s01e02'].series
assert video.season == episodes['adam-12_s01e02'].season
assert video.episode == episodes['adam-12_s01e02'].episode
- assert video.title is None
+ assert video.title == episodes['adam-12_s01e02'].title
assert video.year == episodes['adam-12_s01e02'].year