1
0

28 Commits

Author SHA256 Message Date
c5f7c6c25e Accepting request 1268404 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1268404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=27
2025-04-10 20:00:09 +00:00
21bc67a8a5 - Fix dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=58
2025-04-10 13:40:04 +00:00
fd8ef3c285 Accepting request 1236985 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1236985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=26
2025-01-12 10:22:10 +00:00
182985486e - migrate to pyproject macros
- add remove-six.patch to drop dependency on python-six

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=56
2025-01-11 09:42:28 +00:00
2b19e6b1f1 Accepting request 1182909 from devel:languages:python
- Raise version requirement for python-rebulk (fixes boo#1226826)

OBS-URL: https://build.opensuse.org/request/show/1182909
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=25
2024-06-24 18:56:04 +00:00
2a058eba8d Accepting request 1147193 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1147193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=24
2024-02-18 19:23:33 +00:00
38bd48d24e Accepting request 1133092 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1133092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=23
2023-12-14 21:03:51 +00:00
9df3b5f584 Accepting request 1066739 from devel:languages:python
- Update to version 3.7.1
  Fix:
  * episode: Ignore absolute_episode guess when SxxExx match is
    available in filepart
  + title: Fix title guessing for Show Name/Season XX/episode.mkv
    directories pattern

OBS-URL: https://build.opensuse.org/request/show/1066739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=22
2023-02-20 16:46:17 +00:00
9cb69dabe5 Accepting request 1066542 from devel:languages:python
- Update to version 3.7.0
  Feature:
  * week: Add week property
  Fix:
  * episode: Fix invalid episode range when a weak episode is 
    present before the match
  * expected: Build output from input string for 
    expected_title/expected_group
  * release_group: Properly extract group name from format "Title
  * edition: Improve remastered/restored detection
  * container: Add m2ts to container extensions
  Documentation:
  * contributing: Update branch name
- Update to version 3.6.0
  Feature:
  * audio_codec: Detect "DTS:X"

OBS-URL: https://build.opensuse.org/request/show/1066542
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=21
2023-02-18 16:12:59 +00:00
ef00622775 Accepting request 1032803 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1032803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=20
2022-11-02 11:47:26 +00:00
2470c4695c Accepting request 955864 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/955864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=19
2022-02-18 22:03:05 +00:00
614a9b9639 Accepting request 932649 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=18
2021-11-20 21:48:01 +00:00
34381c7f55 Accepting request 932492 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932492
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=17
2021-11-20 01:39:17 +00:00
02089f54c9 Accepting request 930226 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/930226
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=16
2021-11-09 22:54:49 +00:00
2d20f17533 Accepting request 929826 from devel:languages:python
- Update to version 3.4.1
  Fix:
  * other: Detect "Open Matte" with non-space separator
  * packaging: Use stdlib importlib.resources in py 3.7+
- Update to version 3.4.0
  Feature:
  * other: Add restored support and match 4k-* patterns
  * other: Add 2in1 support
  * python: Add python 3.10 support, drop python 3.5 support
  * audio_channels: Add support for "1.0" audio channels
  * streaming_service: Add more streaming services
  * other: Add ONA/OAD support
  * other: Add Repack and ReRip followed by a digit support
  Fix:
  * source: Avoid Shots to be guessed as Showtime and TS
  * screen_size: Add 540i
  * language: Fix language and subtitle_languages in some
    situations
  * packaging: Use importlib-resources instead of pkgutil
  * other: Fix Open Matte when written as is
  * frame_rate: Enhance frame_rate when ending with .000 or
    space separated
  * packaging: Use importlib-resources instead of pkg_resources
  * edition: Better support for "Criterion"
  * advanced-config: Fix removal of custom rebulk rules
  * streaming_service: Make SBS ambiguous
  * streaming_service: Keep pattern to avoid rebuilding rules
  * proper_count: Fix proper_count raw output to include all
    matches
  * website: Fix website when it contains a digit
  Documentation:
  * Add new properties

OBS-URL: https://build.opensuse.org/request/show/929826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=15
2021-11-06 23:19:02 +00:00
6b6a48d430 Accepting request 898236 from devel:languages:python
- Fix requirement version (forwarded request 898235 from alois)

OBS-URL: https://build.opensuse.org/request/show/898236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=14
2021-06-09 19:52:14 +00:00
2e16db71f1 Accepting request 869927 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/869927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=13
2021-02-07 14:21:55 +00:00
0ca3cfb881 Accepting request 869104 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/869104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=12
2021-02-04 19:24:17 +00:00
2c46f1f8f1 Accepting request 858454 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/858454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=11
2020-12-24 18:39:01 +00:00
c329bbeb0a Accepting request 809357 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=10
2020-05-28 07:16:27 +00:00
e214dbd64f Accepting request 799839 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/799839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=9
2020-05-03 20:47:49 +00:00
b8231ffe00 Accepting request 727929 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/727929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=8
2019-09-04 07:14:22 +00:00
e726e1c202 Accepting request 709047 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/709047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=7
2019-06-12 11:16:08 +00:00
bd45125bb4 Accepting request 685356 from devel:languages:python
- Update to 3.0.3:
  * Add MP2 audio_codec value.
  * Proper and Fix have been separated in two distinct other values.
  * Add 1e18 season/episode pattern.
  * Fix false release_group matches with --expected-title option.
  * Fix parent folder ending with a digit detected as title
  * Fix wrong season/year with ``--type episode `` option. Serie(s) keyword has been removed from default configuration.
  * Fix missing property when episode_details pattern appears in title.
  * Ensure consistent behavior between CLI and Python module.
  * Removed Extras and Bonus values from episode_details property as those tags may also appear in movies
  * Add Scalable Video Coding, Advanced Video Codec High Definition and High Efficiency Video Coding values to

OBS-URL: https://build.opensuse.org/request/show/685356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=6
2019-03-22 14:03:26 +00:00
4bb547b15e Accepting request 659406 from devel:languages:python
- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=5
2018-12-24 10:37:50 +00:00
661cc55554 Accepting request 634222 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/634222
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=4
2018-09-13 10:10:44 +00:00
e1cb50f483 Accepting request 632807 from devel:languages:python
- Update package test syntax to match up other python pkgs

- Update to version 3.0.0
  * Renamed `format` property to `source`.
  * `source` property `Cam` is now `Camera` or `HD Camera`
  * `source` property `Telesync` is now `Telesync` or `HD
    Telesync`
  * `source` property `PPV` is now `Pay-per-view`
  * `source` property `DVB` is now `Digital TV`
  * `source` property `VOD` is now `Video on Demand`
  * `source` property `WEBRip` is now `Web` with additional
    property `other`: `Rip`
  * `source` property `WEB-DL` is now `Web`
  * `source` property `AHDTV` is now `Analog HDTV`
  * `source` property `UHDTV` is now `Ultra HDTV`
  * `source` property `HDTC` is now `HD Telecine`
  * `screen_size` property `360i` was added.
  * `screen_size` property `480i` was added.
  * `screen_size` property `576i` was added.
  * `screen_size` property `900i` was added.
  * `screen_size` property `1440p` was added.
  * `screen_size` property `4K` is now `2160p`
  * `screen_size` property `4320p` was added.
  * `video_codec` property `h264` is now `H.264`
  * `video_codec` property `h265` is now `H.265`
  * `video_codec` property `Mpeg2` is now `MPEG-2`
  * `video_codec` property `Real` is now `RealVideo`
  * `video_codec` property `XviD` is now `Xvid`
  * `video_profile` property `BP` is now `Baseline`.
  * `video_profile` property `HP` is now `High`.

OBS-URL: https://build.opensuse.org/request/show/632807
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=3
2018-09-04 20:56:16 +00:00
0399f44099 Accepting request 494914 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/494914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-guessit?expand=0&rev=2
2017-05-18 18:48:07 +00:00
3 changed files with 61 additions and 21 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Apr 8 17:37:51 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Fix dependencies
-------------------------------------------------------------------
Fri Jan 10 15:47:50 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- migrate to pyproject macros
- add remove-six.patch to drop dependency on python-six
-------------------------------------------------------------------
Sun Jun 23 14:36:07 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-guessit
#
# 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
@@ -17,7 +17,9 @@
%if 0%{?suse_version} > 1500
%define with_tests 1
%bcond_without test
%else
%bcond_with test
%endif
Name: python-guessit
Version: 3.8.0
@@ -27,26 +29,32 @@ License: LGPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/wackou/guessit
Source0: https://files.pythonhosted.org/packages/source/g/guessit/guessit-%{version}.tar.gz
# PATCH-FIX-UPSTREAM remove-six.patch
Patch0: remove-six.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module babelfish >= 0.6.0}
BuildRequires: %{python_module importlib_resources}
%if 0%{?with_tests}
BuildRequires: %{python_module importlib_resources if %python-base < 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module rebulk >= 3.2.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-babelfish >= 0.6.0
Requires: python-python-dateutil
Requires: python-rebulk >= 3.2.0
%if %{?python_version_nodots} < 39
Requires: python-importlib_resources
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module pytest >= 5}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-mock >= 3.3.1}
%endif
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module rebulk >= 3.2.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-babelfish >= 0.6.0
Requires: python-importlib-resources
Requires: python-python-dateutil
Requires: python-rebulk >= 3.2.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -57,7 +65,7 @@ a video using its filename only. This matcher works with both movies
and TV shows episodes.
%prep
%autosetup -n guessit-%{version}
%autosetup -p1 -n guessit-%{version}
# Remove shebang from non-executable files
for i in {'audio_codec','bit_rate','bonus','cd','container','country','crc','date','edition','episodes','episode_title','film','__init__','language','mimetype','other','part','release_group','screen_size','size','source','streaming_service','title','type','video_codec','website'}; do
sed -i -e "1d" "guessit/rules/properties/$i.py"
@@ -72,14 +80,14 @@ done
sed -i 's:.pytest-runner.::' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/guessit
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if 0%{?with_tests}
%if %{with test}
%check
%pytest
%endif
@@ -95,6 +103,6 @@ sed -i 's:.pytest-runner.::' setup.py
%license LICENSE
%python_alternative %{_bindir}/guessit
%{python_sitelib}/guessit
%{python_sitelib}/guessit-%{version}-py%{python_version}.egg-info
%{python_sitelib}/guessit-%{version}.dist-info
%changelog

21
remove-six.patch Normal file
View File

@@ -0,0 +1,21 @@
Index: guessit-3.8.0/guessit/jsonutils.py
===================================================================
--- guessit-3.8.0.orig/guessit/jsonutils.py
+++ guessit-3.8.0/guessit/jsonutils.py
@@ -4,7 +4,6 @@ JSON Utils
"""
import json
-from six import text_type
from rebulk.match import Match
class GuessitEncoder(json.JSONEncoder):
@@ -16,6 +15,6 @@ class GuessitEncoder(json.JSONEncoder):
if isinstance(o, Match):
return o.advanced
if hasattr(o, 'name'): # Babelfish languages/countries long name
- return text_type(o.name)
+ return str(o.name)
# pragma: no cover
- return text_type(o)
+ return str(o)