Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37725312
en ru br
ALT Linux repos
S:3.6.0-alt1

Group :: Development/Python3
RPM: python3-module-tldextract

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname tldextract

%def_with check

Name: python3-module-%oname
Version: 3.5.0
Release: alt1

Summary: Accurately separate the TLD from the registered domain and subdomains of a URL

License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.python.org/pypi/tldextract

# https://github.com/john-kurkowski/tldextract.git

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools_scm
BuildRequires: python3-module-wheel

%if_with check
BuildRequires: python3-module-requests-file
BuildRequires: python3-module-responses
BuildRequires: python3-module-pytest-mock
%endif

%py3_provides %oname

%description
tldextract accurately separates the gTLD or ccTLD (generic or country
code top-level domain) from the registered domain and subdomains of a
URL, using the Public Suffix List.

%prep
%setup

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%pyproject_build

%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%pyproject_install

%check
# deprecated code check, see task #307207
sed -i 's/--pylint//g' tox.ini
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%tox_check_pyproject

%files
%doc *.md
%_bindir/%oname
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version.dist-info

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin