Hello community,

here is the log from the commit of package python-python-slugify for 
openSUSE:Leap:15.2 checked in at 2020-03-23 07:13:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-python-slugify (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-python-slugify.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-slugify"

Mon Mar 23 07:13:49 2020 rev:6 rq:787233 version:4.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Leap:15.2/python-python-slugify/python-python-slugify.changes
    2020-03-02 13:21:40.406197476 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-python-slugify.new.3160/python-python-slugify.changes
  2020-03-23 07:14:22.754516036 +0100
@@ -1,0 +2,11 @@
+Fri Mar 20 11:17:22 UTC 2020 - [email protected]
+
+- version update to 4.0.0
+  * Drop support from 2.6, & < 3.4.5
+  * Fixed encoding in special.py
+  * Add test for pre-translation (e.g German Umlaut)
+  * Add special char supports (optional Use)
+  * Now supporting text-unidecode>=1.3
+  * Now supporting Unidecode>=1.1.1
+
+-------------------------------------------------------------------

Old:
----
  python-slugify-3.0.3.tar.gz

New:
----
  python-slugify-4.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-slugify.spec ++++++
--- /var/tmp/diff_new_pack.37REYe/_old  2020-03-23 07:14:24.442517049 +0100
+++ /var/tmp/diff_new_pack.37REYe/_new  2020-03-23 07:14:24.482517074 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-slugify
 #
-# 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,22 +18,22 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-python-slugify
-Version:        3.0.3
+Version:        4.0.0
 Release:        0
 Summary:        Slugify application that handles Unicode
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/un33k/python-slugify
+URL:            https://github.com/un33k/python-slugify
 Source:         
https://files.pythonhosted.org/packages/source/p/python-slugify/python-slugify-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module text-unidecode >= 1.2}
+BuildRequires:  %{python_module text-unidecode >= 1.3}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-setuptools
+Requires:       python-text-unidecode >= 1.3
+Suggests:       python-Unidecode >= 1.1.1
 Conflicts:      python-awesome-slugify
-Requires:       python-text-unidecode >= 1.2
-Suggests:       python-Unidecode >= 1.0.23
 BuildArch:      noarch
-
 %python_subpackages
 
 %description

++++++ python-slugify-3.0.3.tar.gz -> python-slugify-4.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/CHANGELOG.md 
new/python-slugify-4.0.0/CHANGELOG.md
--- old/python-slugify-3.0.3/CHANGELOG.md       2019-07-28 05:02:18.000000000 
+0200
+++ new/python-slugify-4.0.0/CHANGELOG.md       2019-10-20 19:40:08.000000000 
+0200
@@ -1,6 +1,19 @@
+## 4.0.0
+  - Drop support from 2.6, & < 3.4.5
+
+## 3.0.6
+  - Fixed encoding in special.py
+
+## 3.0.5
+  - Add test for pre-translation (e.g German Umlaut)
+  - Add special char supports (optional Use)
+
+## 3.0.4
+  - Now supporting text-unidecode>=1.3
+  - Now supporting Unidecode>=1.1.1 
+
 ## 3.0.3
-  - Add Options to readme
-  - Add more unit tests
+  - Remove unicode chars from file
 
 ## 3.0.2
   - Add official support of Py 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/PKG-INFO 
new/python-slugify-4.0.0/PKG-INFO
--- old/python-slugify-3.0.3/PKG-INFO   2019-07-28 05:02:27.000000000 +0200
+++ new/python-slugify-4.0.0/PKG-INFO   2019-10-20 19:40:41.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: python-slugify
-Version: 3.0.3
+Version: 4.0.0
 Summary: A Python Slugify application that handles Unicode
 Home-page: https://github.com/un33k/python-slugify
 Author: Val Neekman
@@ -14,13 +14,11 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
 Provides-Extra: unidecode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/README.md 
new/python-slugify-4.0.0/README.md
--- old/python-slugify-3.0.3/README.md  2019-07-28 05:02:18.000000000 +0200
+++ new/python-slugify-4.0.0/README.md  2019-10-11 00:13:34.000000000 +0200
@@ -128,6 +128,10 @@
 r = slugify(txt, replacements=[['|', 'or'], ['%', 'percent']])
 self.assertEqual(r, "10-or-20-percent")
 
+txt = 'ÜBER Über German Umlaut'
+r = slugify(txt, replacements=[['Ü', 'UE'], ['ü', 'ue']])
+self.assertEqual(r, "ueber-ueber-german-umlaut")
+
 ```
    
 For more examples, have a look at the [test.py](test.py) file.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-slugify-3.0.3/python_slugify.egg-info/PKG-INFO 
new/python-slugify-4.0.0/python_slugify.egg-info/PKG-INFO
--- old/python-slugify-3.0.3/python_slugify.egg-info/PKG-INFO   2019-07-28 
05:02:27.000000000 +0200
+++ new/python-slugify-4.0.0/python_slugify.egg-info/PKG-INFO   2019-10-20 
19:40:41.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: python-slugify
-Version: 3.0.3
+Version: 4.0.0
 Summary: A Python Slugify application that handles Unicode
 Home-page: https://github.com/un33k/python-slugify
 Author: Val Neekman
@@ -14,13 +14,11 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
 Provides-Extra: unidecode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-slugify-3.0.3/python_slugify.egg-info/SOURCES.txt 
new/python-slugify-4.0.0/python_slugify.egg-info/SOURCES.txt
--- old/python-slugify-3.0.3/python_slugify.egg-info/SOURCES.txt        
2019-07-28 05:02:27.000000000 +0200
+++ new/python-slugify-4.0.0/python_slugify.egg-info/SOURCES.txt        
2019-10-20 19:40:41.000000000 +0200
@@ -12,4 +12,5 @@
 python_slugify.egg-info/requires.txt
 python_slugify.egg-info/top_level.txt
 slugify/__init__.py
-slugify/slugify.py
\ No newline at end of file
+slugify/slugify.py
+slugify/special.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-slugify-3.0.3/python_slugify.egg-info/requires.txt 
new/python-slugify-4.0.0/python_slugify.egg-info/requires.txt
--- old/python-slugify-3.0.3/python_slugify.egg-info/requires.txt       
2019-07-28 05:02:27.000000000 +0200
+++ new/python-slugify-4.0.0/python_slugify.egg-info/requires.txt       
2019-10-20 19:40:41.000000000 +0200
@@ -1,4 +1,4 @@
-text-unidecode==1.2
+text-unidecode>=1.3
 
 [unidecode]
-Unidecode==1.0.23
+Unidecode>=1.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/setup.py 
new/python-slugify-4.0.0/setup.py
--- old/python-slugify-3.0.3/setup.py   2019-07-28 05:02:18.000000000 +0200
+++ new/python-slugify-4.0.0/setup.py   2019-10-20 19:40:08.000000000 +0200
@@ -14,8 +14,8 @@
 author = 'Val Neekman'
 author_email = '[email protected]'
 license = 'MIT'
-install_requires = ['text-unidecode==1.2']
-extras_require = {'unidecode': ['Unidecode==1.0.23']}
+install_requires = ['text-unidecode>=1.3']
+extras_require = {'unidecode': ['Unidecode>=1.1.1']}
 
 classifiers = [
     'Development Status :: 5 - Production/Stable',
@@ -24,12 +24,9 @@
     'License :: OSI Approved :: MIT License',
     'Operating System :: OS Independent',
     'Programming Language :: Python',
-    'Programming Language :: Python :: 2.6',
+    'Programming Language :: Python :: 2',
     'Programming Language :: Python :: 2.7',
     'Programming Language :: Python :: 3',
-    'Programming Language :: Python :: 3.2',
-    'Programming Language :: Python :: 3.3',
-    'Programming Language :: Python :: 3.4',
     'Programming Language :: Python :: 3.5',
     'Programming Language :: Python :: 3.6',
     'Programming Language :: Python :: 3.7',
@@ -68,6 +65,7 @@
     packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
     install_requires=install_requires,
     extras_require=extras_require,
+    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
     classifiers=classifiers,
     entry_points={'console_scripts': ['slugify=slugify.slugify:main']},
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/slugify/__init__.py 
new/python-slugify-4.0.0/slugify/__init__.py
--- old/python-slugify-3.0.3/slugify/__init__.py        2019-07-28 
05:02:18.000000000 +0200
+++ new/python-slugify-4.0.0/slugify/__init__.py        2019-10-20 
19:40:08.000000000 +0200
@@ -1,6 +1,7 @@
+from .special import *
 from .slugify import *
 
 
 __author__ = 'Val Neekman @ Neekware Inc. [@vneekman]'
 __description__ = 'A Python slugify application that also handles Unicode'
-__version__ = '3.0.3'
+__version__ = '4.0.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/slugify/slugify.py 
new/python-slugify-4.0.0/slugify/slugify.py
--- old/python-slugify-3.0.3/slugify/slugify.py 2019-07-28 05:02:18.000000000 
+0200
+++ new/python-slugify-4.0.0/slugify/slugify.py 2019-10-20 19:40:08.000000000 
+0200
@@ -62,9 +62,9 @@
         if word:
             next_len = len(truncated) + len(word)
             if next_len < max_length:
-                truncated += '{0}{1}'.format(word, separator)
+                truncated += '{}{}'.format(word, separator)
             elif next_len == max_length:
-                truncated += '{0}'.format(word)
+                truncated += '{}'.format(word)
                 break
             else:
                 if save_order:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/slugify/special.py 
new/python-slugify-4.0.0/slugify/special.py
--- old/python-slugify-3.0.3/slugify/special.py 1970-01-01 01:00:00.000000000 
+0100
+++ new/python-slugify-4.0.0/slugify/special.py 2019-10-11 00:26:49.000000000 
+0200
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+
+
+def add_uppercase_char(char_list):
+    """ Given a replacement char list, this adds uppercase chars to the list 
"""
+
+    for item in char_list:
+        char, xlate = item
+        upper_dict = char.upper(), xlate.capitalize()
+        if upper_dict not in char_list and char != upper_dict[0]:
+            char_list.insert(0, upper_dict)
+        return char_list
+
+
+# Language specific pre translations
+# Source awesome-slugify
+
+_CYRILLIC = [      # package defaults:
+    (u'ё', u'e'),    # io / yo
+    (u'я', u'ya'),   # ia
+    (u'х', u'h'),    # kh
+    (u'у', u'y'),    # u
+    (u'щ', u'sch'),  # shch
+    (u'ю', u'u'),    # iu / yu
+]
+CYRILLIC = add_uppercase_char(_CYRILLIC)
+
+_GERMAN = [        # package defaults:
+    (u'ä', u'ae'),   # a
+    (u'ö', u'oe'),   # o
+    (u'ü', u'ue'),   # u
+]
+GERMAN = add_uppercase_char(_GERMAN)
+
+_GREEK = [         # package defaults:
+    (u'χ', u'ch'),   # kh
+    (u'Ξ', u'X'),    # Ks
+    (u'ϒ', u'Y'),    # U
+    (u'υ', u'y'),    # u
+    (u'ύ', u'y'),
+    (u'ϋ', u'y'),
+    (u'ΰ', u'y'),
+]
+GREEK = add_uppercase_char(_GREEK)
+
+# Pre translations
+PRE_TRANSLATIONS = CYRILLIC + GERMAN + GREEK
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slugify-3.0.3/test.py 
new/python-slugify-4.0.0/test.py
--- old/python-slugify-3.0.3/test.py    2019-07-28 05:02:18.000000000 +0200
+++ new/python-slugify-4.0.0/test.py    2019-10-20 19:40:08.000000000 +0200
@@ -223,18 +223,10 @@
         r = slugify(txt, replacements=[['♥', 'amour'], ['🦄', 'licorne']])
         self.assertEqual(r, "i-amour-licorne")
 
-
-class TestUtils(unittest.TestCase):
-
-    def test_smart_truncate_no_max_length(self):
-        txt = '1,000 reasons you are #1'
-        r = smart_truncate(txt)
-        self.assertEqual(r, txt)
-
-    def test_smart_truncate_no_seperator(self):
-        txt = '1,000 reasons you are #1'
-        r = smart_truncate(txt, max_length=100, separator='_')
-        self.assertEqual(r, txt)
+    def test_replacements_german_umlaut_custom(self):
+        txt = 'ÜBER Über German Umlaut'
+        r = slugify(txt, replacements=[['Ü', 'UE'], ['ü', 'ue']])
+        self.assertEqual(r, "ueber-ueber-german-umlaut")
 
 
 class TestUtils(unittest.TestCase):


Reply via email to