Hello community, here is the log from the commit of package python-pysrt for openSUSE:Factory checked in at 2020-01-20 22:57:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pysrt (Old) and /work/SRC/openSUSE:Factory/.python-pysrt.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pysrt" Mon Jan 20 22:57:29 2020 rev:3 rq:765900 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pysrt/python-pysrt.changes 2019-10-16 09:15:26.451443516 +0200 +++ /work/SRC/openSUSE:Factory/.python-pysrt.new.26092/python-pysrt.changes 2020-01-20 22:57:37.887394035 +0100 @@ -1,0 +2,10 @@ +Mon Jan 20 18:03:47 UTC 2020 - Luigi Baldoni <[email protected]> + +- Update to version 1.1.2 + * open(): don't use universal 'U' mode + * Switched broken pypip.in badges to shields.io + * to use print in py2 and py3, print from __future__ + * if file not exist show message + * Add Python 3 trove classifiers + +------------------------------------------------------------------- Old: ---- pysrt-1.1.1.tar.gz New: ---- pysrt-1.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pysrt.spec ++++++ --- /var/tmp/diff_new_pack.AYHq6k/_old 2020-01-20 22:57:39.743394779 +0100 +++ /var/tmp/diff_new_pack.AYHq6k/_new 2020-01-20 22:57:39.743394779 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pysrt # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pysrt -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: SubRip (.srt) subtitle parser and writer License: GPL-3.0-only @@ -54,6 +54,7 @@ %python_exec %{_bindir}/nosetests %files %{python_files} +%doc README.rst %python3_only %{_bindir}/srt %{python_sitelib}/pysrt %{python_sitelib}/pysrt-%{version}-py%{python_version}.egg-info ++++++ pysrt-1.1.1.tar.gz -> pysrt-1.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/PKG-INFO new/pysrt-1.1.2/PKG-INFO --- old/pysrt-1.1.1/PKG-INFO 2016-04-23 15:34:16.000000000 +0200 +++ new/pysrt-1.1.2/PKG-INFO 2020-01-20 16:19:14.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pysrt -Version: 1.1.1 +Version: 1.1.2 Summary: SubRip (.srt) subtitle parser and writer Home-page: https://github.com/byroot/pysrt Author: Jean Boussier @@ -15,11 +15,8 @@ :target: http://travis-ci.org/byroot/pysrt .. image:: https://coveralls.io/repos/byroot/pysrt/badge.png?branch=master :target: https://coveralls.io/r/byroot/pysrt?branch=master - .. image:: https://pypip.in/v/pysrt/badge.png + .. image:: https://img.shields.io/pypi/v/pysrt.svg :target: https://crate.io/packages/pysrt/ - .. image:: https://pypip.in/d/pysrt/badge.png - :target: https://crate.io/packages/pysrt/ - Foreword ==================== @@ -114,6 +111,10 @@ Classifier: License :: OSI Approved :: GNU General Public License (GPL) Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Multimedia :: Video Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Text Processing :: Markup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/README.rst new/pysrt-1.1.2/README.rst --- old/pysrt-1.1.1/README.rst 2014-01-11 01:46:23.000000000 +0100 +++ new/pysrt-1.1.2/README.rst 2020-01-20 16:05:29.000000000 +0100 @@ -7,11 +7,8 @@ :target: http://travis-ci.org/byroot/pysrt .. image:: https://coveralls.io/repos/byroot/pysrt/badge.png?branch=master :target: https://coveralls.io/r/byroot/pysrt?branch=master -.. image:: https://pypip.in/v/pysrt/badge.png +.. image:: https://img.shields.io/pypi/v/pysrt.svg :target: https://crate.io/packages/pysrt/ -.. image:: https://pypip.in/d/pysrt/badge.png - :target: https://crate.io/packages/pysrt/ - Foreword ==================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/pysrt/commands.py new/pysrt-1.1.2/pysrt/commands.py --- old/pysrt-1.1.1/pysrt/commands.py 2014-05-19 22:32:56.000000000 +0200 +++ new/pysrt-1.1.2/pysrt/commands.py 2020-01-20 16:05:29.000000000 +0100 @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable-all +from __future__ import print_function import os import re @@ -132,9 +133,14 @@ def run(self, args): self.arguments = self.build_parser().parse_args(args) - if self.arguments.in_place: - self.create_backup() - self.arguments.action() + + if os.path.isfile(self.arguments.file): + if self.arguments.in_place: + self.create_backup() + self.arguments.action() + + else: + print('No such file', self.arguments.file) def parse_time(self, time_string): negative = time_string.startswith('-') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/pysrt/srtfile.py new/pysrt-1.1.2/pysrt/srtfile.py --- old/pysrt-1.1.1/pysrt/srtfile.py 2014-05-19 22:32:39.000000000 +0200 +++ new/pysrt-1.1.2/pysrt/srtfile.py 2020-01-20 16:05:29.000000000 +0100 @@ -290,7 +290,7 @@ @classmethod def _open_unicode_file(cls, path, claimed_encoding=None): encoding = claimed_encoding or cls._detect_encoding(path) - source_file = codecs.open(path, 'rU', encoding=encoding) + source_file = codecs.open(path, 'r', encoding=encoding) # get rid of BOM if any possible_bom = CODECS_BOMS.get(encoding, None) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/pysrt.egg-info/PKG-INFO new/pysrt-1.1.2/pysrt.egg-info/PKG-INFO --- old/pysrt-1.1.1/pysrt.egg-info/PKG-INFO 2016-04-23 15:34:16.000000000 +0200 +++ new/pysrt-1.1.2/pysrt.egg-info/PKG-INFO 2020-01-20 16:19:14.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pysrt -Version: 1.1.1 +Version: 1.1.2 Summary: SubRip (.srt) subtitle parser and writer Home-page: https://github.com/byroot/pysrt Author: Jean Boussier @@ -15,11 +15,8 @@ :target: http://travis-ci.org/byroot/pysrt .. image:: https://coveralls.io/repos/byroot/pysrt/badge.png?branch=master :target: https://coveralls.io/r/byroot/pysrt?branch=master - .. image:: https://pypip.in/v/pysrt/badge.png + .. image:: https://img.shields.io/pypi/v/pysrt.svg :target: https://crate.io/packages/pysrt/ - .. image:: https://pypip.in/d/pysrt/badge.png - :target: https://crate.io/packages/pysrt/ - Foreword ==================== @@ -114,6 +111,10 @@ Classifier: License :: OSI Approved :: GNU General Public License (GPL) Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Multimedia :: Video Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Text Processing :: Markup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/setup.cfg new/pysrt-1.1.2/setup.cfg --- old/pysrt-1.1.1/setup.cfg 2016-04-23 15:34:16.000000000 +0200 +++ new/pysrt-1.1.2/setup.cfg 2020-01-20 16:19:14.000000000 +0100 @@ -1,5 +1,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/setup.py new/pysrt-1.1.2/setup.py --- old/pysrt-1.1.1/setup.py 2016-04-23 15:33:45.000000000 +0200 +++ new/pysrt-1.1.2/setup.py 2020-01-20 16:05:52.000000000 +0100 @@ -18,7 +18,7 @@ REQUIRES.append('argparse') setup(name='pysrt', - version='1.1.1', + version='1.1.2', author='Jean Boussier', author_email='[email protected]', packages=['pysrt'], @@ -36,6 +36,10 @@ "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", "Topic :: Multimedia :: Video", "Topic :: Software Development :: Libraries", "Topic :: Text Processing :: Markup", Binary files old/pysrt-1.1.1/tests/__init__.pyc and new/pysrt-1.1.2/tests/__init__.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pysrt-1.1.1/tests/test_srtfile.py new/pysrt-1.1.2/tests/test_srtfile.py --- old/pysrt-1.1.1/tests/test_srtfile.py 2014-05-19 22:27:35.000000000 +0200 +++ new/pysrt-1.1.2/tests/test_srtfile.py 2020-01-20 16:05:29.000000000 +0100 @@ -90,14 +90,14 @@ os.remove(self.temp_path) def test_eol_conversion(self): - input_file = open(self.windows_path, 'rU', encoding='windows-1252') + input_file = open(self.windows_path, 'r', encoding='windows-1252') input_file.read() self.assertEqual(input_file.newlines, '\r\n') srt_file = pysrt.open(self.windows_path, encoding='windows-1252') srt_file.save(self.temp_path, eol='\n') - output_file = open(self.temp_path, 'rU', encoding='windows-1252') + output_file = open(self.temp_path, 'r', encoding='windows-1252') output_file.read() self.assertEqual(output_file.newlines, '\n') Binary files old/pysrt-1.1.1/tests/test_srtfile.pyc and new/pysrt-1.1.2/tests/test_srtfile.pyc differ Binary files old/pysrt-1.1.1/tests/test_srtitem.pyc and new/pysrt-1.1.2/tests/test_srtitem.pyc differ Binary files old/pysrt-1.1.1/tests/test_srttime.pyc and new/pysrt-1.1.2/tests/test_srttime.pyc differ
