- Adding test TLDs list to the package. - switch back to pypi file. - Switch to github tarball because of missing test files. - update to version 0.11.8: - Minor fixes in setup.py. - update to version 0.11.7 - There have been no code changes since 0.11.2. The only change is that support for Python 2.7 and 3.5 has been added. - Added support for Python 2.7. - update to version 0.11.6: - Targeted releases for all supported Python versions. - update to version 0.11.5: - Targeted releases for all supported Python versions. - update to version 0.11.4: - Changed order of the releases (Python 3.6 and up come first, then Python 3.5). - Make all distributions except Python 3.5 universal. - update to version 0.11.3: - Added missing resources to the Python 3.5 release. - update to version 0.11.2: - Bring back Python 3.5 support. - update to version 0.11.1: - Minor speed ups. - More on adding typing. - update to version 0.11: - Since introduction of parser classes, usage of ``NAMES_SOURCE_URL`` and ``NAMES_LOCAL_PATH`` of the ``tld.conf`` module is deprecated. Also, ``tld_names_local_path`` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=21
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-tld
|
|
#
|
|
# Copyright (c) 2019 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-tld
|
|
Version: 0.11.9
|
|
Release: 0
|
|
Summary: URL top level domain (TLD) extraction module
|
|
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 skip_internet_tests.patch
|
|
Patch0: skip_internet_tests.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Faker}
|
|
BuildRequires: %{python_module factory_boy}
|
|
BuildRequires: %{python_module pytest-cov}
|
|
BuildRequires: %{python_module six >= 1.9}
|
|
BuildRequires: %{python_module tox}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-six >= 1.9
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
This module extracts the top level domain (TLD) from the URL given.
|
|
A list of TLD names is taken from Mozillas public suffix list:
|
|
<https://publicsuffix.org/list/effective_tld_names.dat>
|
|
|
|
%prep
|
|
%setup -q -n tld-%{version}
|
|
%patch0 -p1
|
|
# https://github.com/barseghyanartur/tld/issues/75
|
|
chmod -x src/tld/res/old/effective_tld_names-2015-07-19.dat.txt
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%doc README.rst CHANGELOG.rst
|
|
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt
|
|
%python3_only %{_bindir}/update-tld-names
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|