forked from pool/python-tld
- Update to 0.13.0:
* Drop Python 2.7, 3.5 and 3.6 support. Minimum required version now is Python 3.7. - Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=44
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-tld
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,28 +16,28 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-tld
|
||||
Version: 0.12.6
|
||||
Version: 0.13
|
||||
Release: 0
|
||||
Summary: URL top level domain (TLD) extraction module
|
||||
License: GPL-2.0-only OR MPL-1.1 OR LGPL-2.1-or-later
|
||||
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 base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Faker}
|
||||
BuildRequires: %{python_module factory_boy}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -48,15 +48,14 @@ 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
|
||||
%autosetup -p1 -n tld-%{version}
|
||||
# https://github.com/barseghyanartur/tld/issues/75
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/update-tld-names
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -73,6 +72,7 @@ A list of TLD names is taken from Mozillas public suffix list:
|
||||
%doc README.rst CHANGELOG.rst
|
||||
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt LICENSE_MPL_1.1.txt
|
||||
%python_alternative %{_bindir}/update-tld-names
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/tld
|
||||
%{python_sitelib}/tld-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user