14
0

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

- Update to version 3.2.0
  * Add python 3.9 support, drop python 2.7 support

OBS-URL: https://build.opensuse.org/request/show/858453
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=28
This commit is contained in:
2020-12-24 09:50:58 +00:00
committed by Git OBS Bridge
parent 1b96790caa
commit 17b049e40e
4 changed files with 16 additions and 12 deletions

View File

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

3
guessit-3.2.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 24 09:10:44 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 3.2.0
* Add python 3.9 support, drop python 2.7 support
-------------------------------------------------------------------
Tue May 26 06:34:32 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -16,9 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-guessit
Version: 3.1.1
Version: 3.2.0
Release: 0
Summary: A library for guessing information from video files
License: LGPL-3.0-only
@@ -53,13 +53,13 @@ and TV shows episodes.
%autosetup -n guessit-%{version}
# Remove shebang from non-executable files
for i in {'audio_codec','bit_rate','bonus','cds','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"
sed -i -e "1d" "guessit/rules/properties/$i.py"
done
for i in {'common/comparators','common/date','common/expected','common/formatters','common/__init__','common/numeral','common/pattern','common/quantity','common/validators','common/words','__init__','markers/groups','markers/__init__','markers/path','processors'}; do
sed -i -e "1d" "guessit/rules/$i.py"
sed -i -e "1d" "guessit/rules/$i.py"
done
for i in {'api','backports','__init__','jsonutils','__main__','monkeypatch','options','reutils','test/__init__','test/rules/__init__','test/rules/processors_test','test/test_api','test/test_api_unicode_literals','test/test_benchmark','test/test_main','test/test_options','test/test_yml','__version__','yamlutils'}; do
sed -i -e "1d" "guessit/$i.py"
for i in {'api','__init__','jsonutils','__main__','monkeypatch','options','reutils','test/__init__','test/rules/__init__','test/rules/processors_test','test/test_api','test/test_api_unicode_literals','test/test_benchmark','test/test_main','test/test_options','test/test_yml','__version__','yamlutils'}; do
sed -i -e "1d" "guessit/$i.py"
done
%build
@@ -71,8 +71,6 @@ done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG='en_US.UTF8'
export PYTHONDONTWRITEBYTECODE=1
%pytest
%post
@@ -82,7 +80,7 @@ export PYTHONDONTWRITEBYTECODE=1
%python_uninstall_alternative guessit
%files %{python_files}
%doc README.rst
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/guessit
%{python_sitelib}/guessit