Hello community, here is the log from the commit of package python-ftfy for openSUSE:Leap:15.2 checked in at 2020-03-17 04:15:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-ftfy (Old) and /work/SRC/openSUSE:Leap:15.2/.python-ftfy.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ftfy" Tue Mar 17 04:15:41 2020 rev:4 rq:785601 version:5.7 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-ftfy/python-ftfy.changes 2020-03-16 12:20:47.127705845 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-ftfy.new.3160/python-ftfy.changes 2020-03-17 04:16:08.972994261 +0100 @@ -1,0 +2,6 @@ +Tue Mar 10 08:48:18 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 5.7: + * Fixes build on python 3.8 + +------------------------------------------------------------------- Old: ---- v5.6.tar.gz New: ---- v5.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ftfy.spec ++++++ --- /var/tmp/diff_new_pack.66z185/_old 2020-03-17 04:16:09.636994646 +0100 +++ /var/tmp/diff_new_pack.66z185/_new 2020-03-17 04:16:09.644994651 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ftfy # -# 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 @@ -19,11 +19,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-ftfy -Version: 5.6 +Version: 5.7 Release: 0 Summary: Python module for repairing mis-decoded Unicode text License: MIT -Group: Development/Languages/Python URL: https://github.com/LuminosoInsight/python-ftfy Source: https://github.com/LuminosoInsight/python-ftfy/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} @@ -32,7 +31,6 @@ Requires: python-wcwidth BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module wcwidth} # /SECTION ++++++ v5.6.tar.gz -> v5.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/.mailmap new/python-ftfy-5.7/.mailmap --- old/python-ftfy-5.6/.mailmap 1970-01-01 01:00:00.000000000 +0100 +++ new/python-ftfy-5.7/.mailmap 2020-02-18 17:46:41.000000000 +0100 @@ -0,0 +1,6 @@ +# Robyn has used different names and e-mail addresses in the course of this project. Map them all to her current name and e-mail. +Robyn Speer <rsp...@luminoso.com> <r...@luminoso.com> +Robyn Speer <rsp...@luminoso.com> <r...@lumino.so> +Robyn Speer <rsp...@luminoso.com> <rsp...@mit.edu> +Robyn Speer <rsp...@luminoso.com> <rspeer...@luminoso.com> + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/.travis.yml new/python-ftfy-5.7/.travis.yml --- old/python-ftfy-5.6/.travis.yml 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -language: python -sudo: false - -cache: - apt: true - directories: - - $HOME/.cache/pip - - $HOME/download -python: - - "3.4" - - "3.5" - - "3.6" - - "3.7-dev" -before_install: - - pip install pip -U - - pip install pytest -U -install: - - travis_retry pip install -e . -script: - - travis_wait pytest - -after_success: - - codecov -cache: - apt: true - directories: - - $HOME/.pip-cache - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/CHANGELOG.md new/python-ftfy-5.7/CHANGELOG.md --- old/python-ftfy-5.6/CHANGELOG.md 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/CHANGELOG.md 2020-02-18 17:46:41.000000000 +0100 @@ -1,3 +1,12 @@ +## Version 5.7 (February 18, 2020) + +- Updated the data file of Unicode character categories to Unicode 12.1, as + used in Python 3.8. (No matter what version of Python you're on, ftfy uses + the same data.) + +- Corrected an omission where short sequences involving the ACUTE ACCENT + character were not being fixed. + ## Version 5.6 (August 7, 2019) - The `unescape_html` function now supports all the HTML5 entities that appear diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/docs/conf.py new/python-ftfy-5.7/docs/conf.py --- old/python-ftfy-5.6/docs/conf.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/docs/conf.py 2020-02-18 17:46:41.000000000 +0100 @@ -48,9 +48,9 @@ # built documents. # # The short X.Y version. -version = '5.6' +version = '5.7' # The full version, including alpha/beta/rc tags. -release = '5.6.0' +release = '5.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/ftfy/__init__.py new/python-ftfy-5.7/ftfy/__init__.py --- old/python-ftfy-5.6/ftfy/__init__.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/ftfy/__init__.py 2020-02-18 17:46:41.000000000 +0100 @@ -11,7 +11,7 @@ from ftfy import fixes from ftfy.formatting import display_ljust -__version__ = '5.6' +__version__ = '5.7' # See the docstring for ftfy.bad_codecs to see what we're doing here. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/ftfy/badness.py new/python-ftfy-5.7/ftfy/badness.py --- old/python-ftfy-5.6/ftfy/badness.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/ftfy/badness.py 2020-02-18 17:46:41.000000000 +0100 @@ -128,9 +128,11 @@ # ISO-8859-2. This also covers some cases from related encodings such as # Windows-1252 and Windows-1250. '[ÂÃĂ][\x80-\x9f€ƒ‚„†‡ˆ‰‹Œ“•˜œŸ¡¢£¤¥¦§¨ª«¬¯°±²³µ¶·¸¹º¼½¾¿ˇ˘˝]|' + # Characters we have to be a little more cautious about if they're at # the end of a word, but totally okay to fix in the middle - r'[ÂÃĂ][›»‘”©™]\w|' + r'[ÂÃĂ][›»‘”´©™]\w|' + # Similar mojibake of low-numbered characters in MacRoman. Leaving out # most mathy characters because of false positives, but cautiously catching # "√±" (mojibake for "ñ") and "√∂" (mojibake for "ö") in the middle of a @@ -144,12 +146,15 @@ # the nose of a kaomoji. '[¬√][ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñúùûü†¢£§¶ß®©™≠ÆØ¥ªæø≤≥]|' r'\w√[±∂]\w|' + # ISO-8859-1, ISO-8859-2, or Windows-1252 mojibake of characters U+10000 # to U+1FFFF. (The Windows-1250 and Windows-1251 versions might be too # plausible.) '[ðđ][Ÿ\x9f]|' + # Windows-1252 or Windows-1250 mojibake of Windows punctuation characters 'â€|' + # Windows-1251 mojibake of some Windows punctuation characters 'вЂ[љћ¦°№™ќ“”]' ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/ftfy/build_data.py new/python-ftfy-5.7/ftfy/build_data.py --- old/python-ftfy-5.6/ftfy/build_data.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/ftfy/build_data.py 2020-02-18 17:46:41.000000000 +0100 @@ -5,7 +5,7 @@ classes we care about change, or if a new version of Python supports a new Unicode standard and we want it to affect our string decoding. -The file that we generate is based on Unicode 11.0, as supported by Python 3.7. +The file that we generate is based on Unicode 12.1, as supported by Python 3.8. You can certainly use it in earlier versions. This simply makes sure that we get consistent results from running ftfy on different versions of Python. @@ -39,15 +39,15 @@ Build the compressed data file 'char_classes.dat' and write it to the current directory. - If you run this, run it in Python 3.7.0 or later. It will run in earlier - versions, but you won't get the Unicode 11 standard, leading to inconsistent - behavior. Pre-releases of Python 3.7 won't work (Unicode 11 wasn't out yet). + If you run this, run it in Python 3.8 or later. It will run in earlier + versions, but you won't get the Unicode 12 standard, leading to + inconsistent behavior. To protect against this, running this in the wrong version of Python will raise an error unless you pass `do_it_anyway=True`. """ - if sys.hexversion < 0x030700f0 and not do_it_anyway: - raise RuntimeError("This function should be run in Python 3.7.0 or later.") + if sys.version_info < (3, 8) and not do_it_anyway: + raise RuntimeError("This function should be run in Python 3.8 or later.") cclasses = [None] * 0x110000 for codepoint in range(0x0, 0x110000): Binary files old/python-ftfy-5.6/ftfy/char_classes.dat and new/python-ftfy-5.7/ftfy/char_classes.dat differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/ftfy/chardata.py new/python-ftfy-5.7/ftfy/chardata.py --- old/python-ftfy-5.6/ftfy/chardata.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/ftfy/chardata.py 2020-02-18 17:46:41.000000000 +0100 @@ -55,7 +55,6 @@ def _build_html_entities(): - entities = dict(html.entities.html5) entities = {} # Create a dictionary based on the built-in HTML5 entity dictionary. # Add a limited set of HTML entities that we'll also decode if they've diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/setup.py new/python-ftfy-5.7/setup.py --- old/python-ftfy-5.6/setup.py 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/setup.py 2020-02-18 17:46:41.000000000 +0100 @@ -4,14 +4,8 @@ # Python 3 standard library, let's make sure we're not on Python 2 and provide # a helpful message if we are. -PY2_MESSAGE = """ -Sorry, this version of ftfy is no longer written for Python 2. +PY2_MESSAGE = "Python 2 is no longer supported. Please upgrade." -The older version of ftfy, version 4.4, is still available and can run on -Python 2. Try this: - - pip install ftfy==4.4.3 -""" if sys.version_info[0] < 3: print(PY2_MESSAGE) @@ -27,7 +21,7 @@ setup( name="ftfy", - version='5.6', + version='5.7', maintainer='Luminoso Technologies, Inc.', maintainer_email='i...@luminoso.com', license="MIT", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ftfy-5.6/tests/test_cases.json new/python-ftfy-5.7/tests/test_cases.json --- old/python-ftfy-5.6/tests/test_cases.json 2019-08-07 22:32:36.000000000 +0200 +++ new/python-ftfy-5.7/tests/test_cases.json 2020-02-18 17:46:41.000000000 +0100 @@ -94,6 +94,12 @@ "expect": "pass" }, { + "label": "UTF-8 / Windows-1252 mixup in French", + "original": "Hôtel de Police", + "fixed": "Hôtel de Police", + "expect": "pass" + }, + { "label": "UTF-8 / Windows-1250 mixup in French", "original": "Liège Avenue de l'HĂ´pital", "fixed": "Liège Avenue de l'Hôpital",