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,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 5 01:56:10 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 17 15:53:55 UTC 2022 - pgajdos@suse.com
|
Mon Oct 17 15:53:55 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tld
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-tld
|
||||||
Version: 0.12.6
|
Version: 0.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: URL top level domain (TLD) extraction module
|
Summary: URL top level domain (TLD) extraction module
|
||||||
License: GPL-2.0-only OR MPL-1.1 OR LGPL-2.1-or-later
|
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
|
URL: https://github.com/barseghyanartur/tld
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/tld/tld-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/tld/tld-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE skip_internet_tests.patch
|
# PATCH-FIX-OPENSUSE skip_internet_tests.patch
|
||||||
Patch0: 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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module Faker}
|
BuildRequires: %{python_module Faker}
|
||||||
BuildRequires: %{python_module factory_boy}
|
BuildRequires: %{python_module factory_boy}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%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>
|
<https://publicsuffix.org/list/effective_tld_names.dat>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tld-%{version}
|
%autosetup -p1 -n tld-%{version}
|
||||||
%patch0 -p1
|
|
||||||
# https://github.com/barseghyanartur/tld/issues/75
|
# https://github.com/barseghyanartur/tld/issues/75
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/update-tld-names
|
%python_clone -a %{buildroot}%{_bindir}/update-tld-names
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%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
|
%doc README.rst CHANGELOG.rst
|
||||||
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt LICENSE_MPL_1.1.txt
|
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt LICENSE_MPL_1.1.txt
|
||||||
%python_alternative %{_bindir}/update-tld-names
|
%python_alternative %{_bindir}/update-tld-names
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/tld
|
||||||
|
%{python_sitelib}/tld-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:69fed19d26bb3f715366fb4af66fdeace896c55c052b00e8aaba3a7b63f3e7f0
|
|
||||||
size 1143127
|
|
3
tld-0.13.tar.gz
Normal file
3
tld-0.13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:93dde5e1c04bdf1844976eae440706379d21f4ab235b73c05d7483e074fb5629
|
||||||
|
size 446824
|
Reference in New Issue
Block a user