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:
committed by
Git OBS Bridge
parent
eee0e82ae7
commit
892cde046a
@@ -1,22 +0,0 @@
|
||||
From f34261e913c15391e8f48f90938a5164b69537b9 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Wagner <sebix@sebix.at>
|
||||
Date: Fri, 6 Jul 2018 23:04:14 +0200
|
||||
Subject: [PATCH] setup.py: fix test suite specifier
|
||||
|
||||
filenames are not supported. one must use the module name inside the package
|
||||
---
|
||||
CHANGELOG.rst | 1 +
|
||||
setup.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 0931c07..32bff73 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -52,5 +52,5 @@
|
||||
install_requires=[
|
||||
'six>=1.9'
|
||||
],
|
||||
- test_suite='src/tld/tests.py',
|
||||
+ test_suite='tld.tests',
|
||||
)
|
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 9 20:12:12 UTC 2018 - sebix+novell.com@sebix.at
|
||||
|
||||
- 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 - sebix+novell.com@sebix.at
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eba6e0ee3267d4249348bc0853ddc7c79402f09ab53bce88b1db6f5b4699e209
|
||||
size 105447
|
3
tld-0.9.1.tar.gz
Normal file
3
tld-0.9.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9648b8bb70fcdbd63bd62e069333e7f18e916c304b8d7329fd18f5eb6fcdb07
|
||||
size 245237
|
Reference in New Issue
Block a user