14
0
forked from pool/python-tld

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=7
This commit is contained in:
Sebastian Wagner
2018-07-09 20:33:11 +00:00
committed by Git OBS Bridge
parent eee0e82ae7
commit 892cde046a
5 changed files with 20 additions and 29 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tld
Version: 0.8
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
@@ -27,8 +27,6 @@ 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
# PATCH-FIX-UPSTREAM fix-setup-test.patch -- based on https://github.com/barseghyanartur/tld/commit/f34261e913c15391e8f48f90938a5164b69537b9.patch
Patch1: fix-setup-test.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -50,7 +48,6 @@ taken from Mozillas public suffix list:
%setup -q -n tld-%{version}
sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' src/tld/bin/update-tld-names
%patch0 -p1
%patch1 -p1
%build
%python_build
@@ -58,6 +55,7 @@ sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' src/tld/bin/update-tld-names
%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