Hello community,

here is the log from the commit of package python-tld for openSUSE:Factory 
checked in at 2018-07-17 09:43:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tld (Old)
 and      /work/SRC/openSUSE:Factory/.python-tld.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tld"

Tue Jul 17 09:43:26 2018 rev:3 rq:623183 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tld/python-tld.changes    2018-05-08 
13:36:39.763019705 +0200
+++ /work/SRC/openSUSE:Factory/.python-tld.new/python-tld.changes       
2018-07-17 09:44:00.536935692 +0200
@@ -1,0 +2,37 @@
+Mon Jul  9 20:12:12 UTC 2018 - [email protected]
+
+- remove fix-setup-test.patch, merged upstream
+- update to version 0.9.1:
+  * Correctly handling nested TLDs.
+- update to version 0.9:
+ * This release contains backward incompatible changes. You should update your 
code.
+ * The active_only option has been removed from get_tld, get_fld and parse_url 
functions. Update your code accordingly.
+ * Removed active_only option from get_tld, get_fld and parse_url functions.
+ * Correctly handling exceptions (!) in the original TLD list.
+ * Fixes in documentation.
+ * Added parse_tld function.
+ * Fixes the python setup.py test command.
+
+-------------------------------------------------------------------
+Fri Jul  6 20:58:36 UTC 2018 - [email protected]
+
+- add remove-download-test.patch to remove download test requiring internet
+- add fix-setup-test.patch to fix setup.py test_suite specifier
+- update to version 0.8:
+ - This release contains backward incompatible changes. You should update
+   your code.
+   Old `get_tld` functionality remain is moved to `get_fld` (first-level
+   domain definition). The `as_object` argument (False by default) has been
+   deprecated for `get_fld`.
+   Have a look at the packages' documentation and changelog for details and 
examples.
+ - Move to a Trie to match TLDs. This brings a speed up of 15-20%.
+ - It's now possible to search in public, private or all suffixes (old
+   behaviour). Use `search_public` and `search_private` arguments accordingly.
+   By default (to support old behavior), both are set to True.
+ - Correct TLD definitions.
+ - Domains like `*****.xn--fiqs8s` are now recognized as well.
+ - Due to usage of `urlsplit` instead of `urlparse`, the initial list of TLDs
+   is assembled quicker (a speed-up of 15-20%).
+ - Docs/ directory is included in source distribution tarball.
+
+-------------------------------------------------------------------

Old:
----
  tld-0.7.10.tar.gz

New:
----
  remove-download-test.patch
  tld-0.9.1.tar.gz

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

Other differences:
------------------
++++++ python-tld.spec ++++++
--- /var/tmp/diff_new_pack.QTxfzj/_old  2018-07-17 09:44:01.736931296 +0200
+++ /var/tmp/diff_new_pack.QTxfzj/_new  2018-07-17 09:44:01.736931296 +0200
@@ -18,13 +18,15 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-tld
-Version:        0.7.10
+Version:        0.9.1
 Release:        0
 Summary:        Extract the top level domain (TLD) from the URL given
 License:        MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-only
 Group:          Development/Languages/Python
 Url:            https://github.com/barseghyanartur/tld
 Source:         
https://files.pythonhosted.org/packages/source/t/tld/tld-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE remove-download-test.patch
+Patch0:         remove-download-test.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
@@ -39,12 +41,13 @@
 
 %description
 Extract the top level domain (TLD) from the URL given. List of TLD names is
-taken from Mozilla
-<http://mxr.mozilla.org/mozilla/source/netwerk/dns/src/effective_tld_names.dat?raw=1>
+taken from Mozillas public suffix list:
+<https://publicsuffix.org/list/effective_tld_names.dat>
 
 %prep
 %setup -q -n tld-%{version}
 sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' src/tld/bin/update-tld-names
+%patch0 -p1
 
 %build
 %python_build
@@ -52,6 +55,7 @@
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%{python_expand chmod -x 
%{buildroot}%{$python_sitelib}/tld/res/old/effective_tld_names-2015-07-19.dat.txt}
 
 %check
 %python_exec setup.py test

++++++ remove-download-test.patch ++++++
--- tld-0.8/src/tld/tests1.py   2018-07-07 10:19:47.235166666 +0200
+++ tld-0.8/src/tld/tests.py    2018-07-07 10:20:05.779258621 +0200
@@ -266,13 +266,6 @@
         return res
 
     @log_info
-    def test_1_update_tld_names(self):
-        """Test updating the tld names (re-fetch mozilla source)."""
-        res = update_tld_names(fail_silently=True)
-        self.assertTrue(res)
-        return res
-
-    @log_info
     def test_2_fld_good_patterns_pass(self):
         """Test good URL patterns."""
         res = []
++++++ tld-0.7.10.tar.gz -> tld-0.9.1.tar.gz ++++++
++++ 6386 lines of diff (skipped)


Reply via email to