14
0

Accepting request 1183581 from home:alois:branches:devel:languages:python

- Update to version 2.2.0
  * Drop python2 support, the supported versions are
    >=3.8,<=3.12.
  * Load CLI options from a configuration file with the
    --config/-c option
  * Change default encoding of downloaded subtitles to 'utf-8'
    (not the original encoding). Use the --original-encoding cli
    option to recover the previous default behavior
  * Add opensubtitlescom provider
  * Add gestdown provider
  * Add tmdb refiner (requires a personal API key)
  * Fix tvsubtitles provider
  * Fix opensubtitles provider
  * Fix napiprojekt provider
  * Fix podnapisi provider to use JSON API
  * Fix addic7ed provider
  * Remove thesubdb provider
  * Remove argenteam provider
  * Remove shooter provider
  * Remove legendastv provider
  * Use pyproject.toml to specify the package configurations.
  * Add pre-commit hook
  * Use ruff to lint and format
  * Use mypy to check types
  * Add type annotations
  * Drop dependencies: pysrt, appdirs, six, pytz
  * Add dependencies:
    + click-option-group>=0.5.6
    + platformdirs>=4.2
    + pysubs2>=1.7
    + srt>=3.5
    + tomli>=2
  * Bump dependency versions:
    + babelfish>=0.6.1
    + chardet>=5.0
    + click>=8.0
    + dogpile.cache>=1.0
    + enzyme>=0.5.0
    + stevedore>=3.0

OBS-URL: https://build.opensuse.org/request/show/1183581
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=21
This commit is contained in:
2024-06-27 13:58:20 +00:00
committed by Git OBS Bridge
parent 702cf33d2b
commit 6587127b8e
4 changed files with 68 additions and 21 deletions

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Tue Jun 25 09:34:51 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.2.0
* Drop python2 support, the supported versions are
>=3.8,<=3.12.
* Load CLI options from a configuration file with the
--config/-c option
* Change default encoding of downloaded subtitles to 'utf-8'
(not the original encoding). Use the --original-encoding cli
option to recover the previous default behavior
* Add opensubtitlescom provider
* Add gestdown provider
* Add tmdb refiner (requires a personal API key)
* Fix tvsubtitles provider
* Fix opensubtitles provider
* Fix napiprojekt provider
* Fix podnapisi provider to use JSON API
* Fix addic7ed provider
* Remove thesubdb provider
* Remove argenteam provider
* Remove shooter provider
* Remove legendastv provider
* Use pyproject.toml to specify the package configurations.
* Add pre-commit hook
* Use ruff to lint and format
* Use mypy to check types
* Add type annotations
* Drop dependencies: pysrt, appdirs, six, pytz
* Add dependencies:
+ click-option-group>=0.5.6
+ platformdirs>=4.2
+ pysubs2>=1.7
+ srt>=3.5
+ tomli>=2
* Bump dependency versions:
+ babelfish>=0.6.1
+ chardet>=5.0
+ click>=8.0
+ dogpile.cache>=1.0
+ enzyme>=0.5.0
+ stevedore>=3.0
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 30 09:41:55 UTC 2022 - Luigi Baldoni <aloisio@gmx.com> Wed Mar 30 09:41:55 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-subliminal # spec file for package python-subliminal
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# 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,34 +16,36 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
%global pythons python3
Name: python-subliminal Name: python-subliminal
Version: 2.1.0 Version: 2.2.0
Release: 0 Release: 0
Summary: Python library to search and download subtitles Summary: Python library to search and download subtitles
License: MIT License: MIT
URL: https://github.com/Diaoul/subliminal URL: https://github.com/Diaoul/subliminal
Source: https://files.pythonhosted.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 18.0.1} BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-appdirs >= 1.3 Requires: python-babelfish >= 0.6.1
Requires: python-babelfish >= 0.5.4
Requires: python-beautifulsoup4 >= 4.4.0 Requires: python-beautifulsoup4 >= 4.4.0
Requires: python-chardet >= 2.3.0 Requires: python-chardet >= 5.0
Requires: python-click >= 4.1 Requires: python-click >= 8.0
Requires: python-dogpile.cache >= 0.6.0 Requires: python-click-option-group >= 0.5.6
Requires: python-enzyme >= 0.4.1 Requires: python-dogpile.cache >= 1.0
Requires: python-enzyme >= 0.5.0
Requires: python-guessit >= 3.0.0 Requires: python-guessit >= 3.0.0
Requires: python-pysrt >= 1.0.1 Requires: python-platformdirs >= 4.2
Requires: python-pytz >= 2012c Requires: python-pysubs2 >= 1.7
Requires: python-rarfile >= 2.7 Requires: python-rarfile >= 2.7
Requires: python-requests >= 2.7.0 Requires: python-requests >= 2.7.0
Requires: python-six >= 1.9.0 Requires: python-srt >= 3.5
Requires: python-stevedore >= 1.20.0 Requires: python-stevedore >= 3.0
Requires: python-tomli >= 2
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
Recommends: python-colorlog >= 2.6.0 Recommends: python-colorlog >= 2.6.0
Provides: subliminal = %{version} Provides: subliminal = %{version}
Obsoletes: subliminal < %{version} Obsoletes: subliminal < %{version}
@@ -58,13 +60,15 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%autosetup -n subliminal-%{version} %autosetup -n subliminal-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/subliminal %python_clone -a %{buildroot}%{_bindir}/subliminal
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%post %post
%python_install_alternative subliminal %python_install_alternative subliminal
@@ -76,6 +80,6 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%doc HISTORY.rst README.rst %doc HISTORY.rst README.rst
%python_alternative %{_bindir}/subliminal %python_alternative %{_bindir}/subliminal
%{python_sitelib}/subliminal %{python_sitelib}/subliminal
%{python_sitelib}/subliminal-%{version}-py%{python_version}.egg-info %{python_sitelib}/subliminal-%{version}.dist-info
%changelog %changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6439cc733a4f37f01f8c14c096d44fd28d75d1f6f6e2d1d1003b1b82c65628b
size 52468

3
subliminal-2.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f103380d1e2ef09b7cb194beff5bf4a19492d5f3bbf336dec03a7451c992a593
size 3121983