From a05d73ad1d6fd4817c349d89c32e3f5a3e2b1d4c1cf14cc640705c9dcd0db25e Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Mon, 29 Dec 2025 02:41:25 +0000 Subject: [PATCH] - Update to 5.3.1: Bugfixes * Drop support for EOL Python 3.9 #gh/john-kurkowski/tldextract#359 * Support Python 3.14 + PyPy 3.11 #gh/john-kurkowski/tldextract#358 * Speed up IP address search space with isdecimal() instead of isdigit() #gh/john-kurkowski/tldextract#352 Docs * Reorganize, dedupe, and shorten README #gh/john-kurkowski/tldextract#349 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tldextract?expand=0&rev=59 --- .gitattributes | 23 +++ .gitignore | 1 + python-tldextract-rpmlintrc | 1 + python-tldextract.changes | 397 ++++++++++++++++++++++++++++++++++++ python-tldextract.spec | 88 ++++++++ tldextract-5.3.0.tar.gz | 3 + tldextract-5.3.1.tar.gz | 3 + 7 files changed, 516 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-tldextract-rpmlintrc create mode 100644 python-tldextract.changes create mode 100644 python-tldextract.spec create mode 100644 tldextract-5.3.0.tar.gz create mode 100644 tldextract-5.3.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-tldextract-rpmlintrc b/python-tldextract-rpmlintrc new file mode 100644 index 0000000..b348c5e --- /dev/null +++ b/python-tldextract-rpmlintrc @@ -0,0 +1 @@ +addFilter("hidden-file-or-dir /usr/lib/python.*/site-packages/tldextract/.tld_set_snapshot") diff --git a/python-tldextract.changes b/python-tldextract.changes new file mode 100644 index 0000000..ff34507 --- /dev/null +++ b/python-tldextract.changes @@ -0,0 +1,397 @@ +------------------------------------------------------------------- +Mon Dec 29 02:30:15 UTC 2025 - Mia Herkt + +- Update to 5.3.1: +Bugfixes + * Drop support for EOL Python 3.9 + #gh/john-kurkowski/tldextract#359 + * Support Python 3.14 + PyPy 3.11 + #gh/john-kurkowski/tldextract#358 + * Speed up IP address search space with isdecimal() instead of + isdigit() + #gh/john-kurkowski/tldextract#352 +Docs + * Reorganize, dedupe, and shorten README + #gh/john-kurkowski/tldextract#349 + +------------------------------------------------------------------- +Wed Apr 23 19:17:24 UTC 2025 - Mia Herkt + +- Update to 5.3.0: +Features + * Add result field registry_suffix + To complement the existing public suffix field suffix + #gh/john-kurkowski/tldextract#344 + * Add result property top_domain_under_public_suffix + #gh/john-kurkowski/tldextract#344 + * Add result property top_domain_under_registry_suffix + #gh/john-kurkowski/tldextract#344 + * Deprecate registered_domain property + Use top_domain_under_public_suffix instead, which has the same + behavior but a more accurate name +Bugfixes + * Fix missing reverse_domain_name property in CLI --json output +Misc + * Expand internal suffix_index return type to be richer than + bools, and include the registry suffix during trie traversal + #gh/john-kurkowski/tldextract#344 + +------------------------------------------------------------------- +Tue Apr 8 15:06:55 UTC 2025 - Mia Herkt + +- Update to 5.2.0: +Features + * Add `reverse_domain_name` result property + #gh/john-kurkowski/tldextract#342 +Bugfixes + * Extend exported public interface with `ExtractResult` and + `update` + These were always meant to be public. Eases user import. +Docs + * Document result fields + * Note all return values + * Colocate usage in the usage section + * Link to private domain docs + +------------------------------------------------------------------- +Thu Jan 23 04:42:21 UTC 2025 - Steve Kowalik + +- Drop unneeded BuildRequires on six. +- Specify dist-info directory in %files. + +------------------------------------------------------------------- +Sat Nov 9 16:17:54 UTC 2024 - Dirk Müller + +- update to 5.1.3: + * Reduce logging errors (`921a825`) + * Drop support for EOL Python 3.8 + * Support Python 3.13 + * Update bundled snapshot + +------------------------------------------------------------------- +Thu Mar 28 16:29:56 UTC 2024 - Mia Herkt + +- Update to 5.1.2: + * Remove socket.inet_pton, to fix platform-dependent IP parsing + #gh/john-kurkowski/tldextract#318 + * Use non-capturing groups for IPv4 address detection, for a + slight speed boost + #gh/john-kurkowski/tldextract#323 + +------------------------------------------------------------------- +Fri Dec 8 13:44:38 UTC 2023 - Dirk Müller + +- update to 5.1.1: + * Fix path join on Windows (#314) + * Support Python 3.12 + +------------------------------------------------------------------- +Fri Nov 10 07:40:00 UTC 2023 - ecsos + +- Macro %{?sle15_python_module_pythons} must at beginn of spec to + fix build error in Leap. + +------------------------------------------------------------------- +Mon Nov 6 23:25:32 UTC 2023 - Mia Herkt + +- Update to 5.1.0: +Features: + * Allow passing in `requests.Session` + #gh/john-kurkowski/tldextract#311 + * Add "-j, --json" option to support output in json format + #gh/john-kurkowski/tldextract#313 + +------------------------------------------------------------------- +Mon Oct 23 00:56:58 UTC 2023 - Mia Herkt + +- Update to 5.0.1: +Bugfixes: + * Indicate MD5 not used in a security context (FIPS compliance) + #gh/john-kurkowski/tldextract#309 +Misc.: + * Increase typecheck aggression +- Changes in 5.0.0: +Breaking Changes: + * Migrate `ExtractResult` from `namedtuple` to `dataclass` + #gh/john-kurkowski/tldextract#306 +Bugfixes: + * Drop support for EOL Python 3.7 +- Changes in 4.0.0: +Breaking Bugfixes: + * Always include suffix if private suffix enabled and private + suffix exists + #gh/john-kurkowski/tldextract#300 +- Changes in 3.5.0: +Features: + * Support IPv6 addresses + #gh/john-kurkowski/tldextract#298 +Bugfixes: + * Accept only 4 decimal octet IPv4 addresses + #gh/john-kurkowski/tldextract#292 + * Support IPv4 addresses with unicode dots + * Reject IPv4 addresses with trailing whitespaces + non-whitespaces + #gh/john-kurkowski/tldextract#293 + +------------------------------------------------------------------- +Sat Jul 1 09:06:29 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sun May 21 13:02:41 UTC 2023 - Mia Herkt + +- Update to 3.4.4: +Bugfixes + * Honor private domains flag on self, not only when passed to + __call__ + #gh/john-kurkowski/tldextract#289 +- Changes in 3.4.3: +Bugfixes + * Speed up 10-15% over all inputs + * Refactor suffix_index() to use a trie + #gh/john-kurkowski/tldextract#285 +Docs + * Adopt PEP257 doc style +- Changes in 3.4.2: +Bugfixes + * Speed up 10-40% on "average" inputs, and even more on + pathological inputs, like long subdomains + * Optimize suffix_index(): search from right to left + #gh/john-kurkowski/tldextract#283 + * Optimize netloc extraction: switch from regex to if/else + #gh/john-kurkowski/tldextract#284 + +------------------------------------------------------------------- +Thu May 4 13:11:06 UTC 2023 - Mia Herkt + +- Update to 3.4.1 +Bugfixes + * Fix Pyright not finding tldextract public interface + #gh/john-kurkowski/tldextract#279 + * Fix various Pyright checks + * Use SPDX license identifier + #gh/john-kurkowski/tldextract#280 + * Support Python 3.11 +Docs + * Add FAQ about private domains + +------------------------------------------------------------------- +Thu Nov 10 09:04:18 UTC 2022 - Mia Herkt + +- Update to 3.4.0 +Features + * Add method extract_urllib to extract from a + urllib.parse.{ParseResult,SplitResult} + #gh/john-kurkowski/tldextract#274 +Bugfixes + * Fix internal type-var error, in newer versions of mypy + #gh/john-kurkowski/tldextract#275 + +------------------------------------------------------------------- +Sun Jul 24 17:00:27 UTC 2022 - Mia Herkt + +- Update to 3.3.1 +Bugfixes + * Fix documented types, in README and in exception message + #gh/john-kurkowski/tldextract#265 + +------------------------------------------------------------------- +Wed Jun 15 16:34:05 UTC 2022 - Mia Herkt + +- Update to 3.3.0 +Features + * Add CLI flag `--suffix_list_url` to set the suffix list URL(s) + or source file(s) + (#gh/john-kurkowski/tldextract#197) + * Add CLI flag `--no_fallback_to_snapshot` to not fall back to + the snapshot + (#gh/john-kurkowski/tldextract#260) + * Add alias `--include_psl_private_domains` for CLI flag + `--private_domains` +Bugfixes + * Handle more internationalized domain name dots + (#gh/john-kurkowski/tldextract#253) +Misc. + * Update bundled snapshot + * Add basic CLI test coverage +Changes in 3.2.1: +Bugfixes + * Fix incorrect namespace used for caching function returns + (#gh/john-kurkowski/tldextract#258) +Changes in 3.2.0: +Features + * Add types to the public API + (#gh/john-kurkowski/tldextract#244) +Bugfixes + * Add support for Python 3.10, drop EOL Python 3.6 + (#gh/john-kurkowski/tldextract/issues/246)) + +------------------------------------------------------------------- +Fri Oct 1 07:26:20 UTC 2021 - Mia Herkt + +- Update to 3.1.2 (no visible changes) +- Changes in 3.1.1: + * Bugfixes + + Support Python 3.9 + + Drop support for EOL Python 3.5 + +------------------------------------------------------------------- +Thu Feb 4 20:10:10 UTC 2021 - Benjamin Greiner + +- Fix python-rpm-macros singlespec glitches: + * The versions go inside python_module + * The obsoletion of the old python2 package did not work with + the python_subpackages rewrite + +------------------------------------------------------------------- +Sat Nov 28 20:13:57 UTC 2020 - Mia Herkt + +- Update to 3.1.0: + * Features + + Prefer to cache in XDG cache directory in user folder, + vs. in Python install folder + (https://github.com/john-kurkowski/tldextract/issues/213) + + Fix `AttributeError` on `--update` + (https://github.com/john-kurkowski/tldextract/issues/215) + +------------------------------------------------------------------- +Mon Oct 26 00:28:42 UTC 2020 - Mia Herkt + +- Update to 3.0.2: + * Catch permission error when making cache dir, as well as cache + file (https://github.com/john-kurkowski/tldextract/issues/211) + +------------------------------------------------------------------- +Fri Oct 23 21:46:35 UTC 2020 - Mia Herkt + +- Update to 3.0.1: + * Fix `tlds` property `AttributeError` + (https://github.com/john-kurkowski/tldextract/issues/210) + * Allow `include_psl_private_domains` in global `extract` too + (https://github.com/john-kurkowski/tldextract/issues/210) + +------------------------------------------------------------------- +Tue Oct 20 22:45:59 UTC 2020 - Mia Herkt + +- Update to 3.0.0: + This release fixes the long standing bug that public and private + suffixes were generated separately and could not be switched at + runtime, https://github.com/john-kurkowski/tldextract/issues/66 + + * Breaking Changes + + Rename `cache_file` to `cache_dir` as it is no longer a + single file but a directory + (https://github.com/john-kurkowski/tldextract/issues/207) + + Rename CLI arg also, from `--cache_file` to `--cache_dir` + + Remove Python 2.7 support + * Features + + Can pass `include_psl_private_domains` on call, not only on + construction + + Use filelocking to support multi-processing and + multithreading environments + * Bugfixes + + Select public or private suffixes at runtime + (https://github.com/john-kurkowski/tldextract/issues/66) + * Removals + + Do not `debug` log the diff during update + * Drop tldextract-tests-offline.patch + +------------------------------------------------------------------- +Thu Sep 17 11:47:16 UTC 2020 - Dirk Mueller + +- update to 2.2.3: + * Fix concurrent access to cache file when using tldextract in multiple threads ([#146](https://github.com/john-kurkowski/tldextract/pull/146)) + * Relocate version number, to avoid costly imports ([#187](https://github.com/john-kurkowski/tldextract/pull/187)) + * Catch `IndexError` caused by upstream punycode bug ([#200](https://github.com/john-kurkowski/tldextract/pull/200)) + * Drop support for EOL Python 3.4 ([#186](https://github.com/john-kurkowski/tldextract/pull/186)) + * Explain warning better + +------------------------------------------------------------------- +Wed Sep 16 21:32:26 UTC 2020 - Dirk Mueller + +- update to 2.2.2: + * Fix concurrent access to cache file when using tldextract in multiple threads ([#146](https://github.com/john-kurkowski/tldextract/pull/146)) + * Relocate version number, to avoid costly imports ([#187](https://github.com/john-kurkowski/tldextract/pull/187)) + * Catch `IndexError` caused by upstream punycode bug ([#200](https://github.com/john-kurkowski/tldextract/pull/200)) + * Drop support for EOL Python 3.4 ([#186](https://github.com/john-kurkowski/tldextract/pull/186)) + * Explain warning better + +------------------------------------------------------------------- +Mon May 18 09:10:32 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Wed Mar 11 11:24:28 UTC 2020 - pgajdos@suse.com + +- version update to 2.2.2 + * Bugfixes + * Catch file not found + * Use pkgutil instead of pkg_resources ([#163](https://github.com/john-kurkowski/tldextract/pull/163)) + * Performance: avoid recomputes, a regex, and a partition + * Misc. + * Update LICENSE from GitHub template + * Fix warning about literal comparison + * Modernize testing ([#177](https://github.com/john-kurkowski/tldextract/issues/177)) + * Use the latest pylint that works in Python 2 + * Appease pylint with the new rules + * Support Python 3.8-dev + * Drop support for EOL Python 3.4 + +------------------------------------------------------------------- +Sun Mar 10 19:57:13 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Run test suite +- Add tldextract-tests-offline.patch + No internet connection on OBS build hosts; skip suffix list + snapshot diff +- Update to 2.2.1 + * Bugfixes + - Ignore case on punycode prefix check + - Drop support for EOL Python 2.6 + - Improve sundry doc and README bits + +------------------------------------------------------------------- +Tue Dec 4 12:55:20 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Apr 16 15:38:22 UTC 2018 - jengelh@inai.de + +- Update summary. + +------------------------------------------------------------------- +Tue Feb 6 22:24:40 UTC 2018 - 9+suse@cirno.systems + +- Convert to singlespec, fix non-SPDX license tag +- Add rpmlintrc for (required) hidden file +- Add README.md to docs and use %license macro +- Update to 2.2.0 + * Bugfixes: + - Switch to explicit Python version check + - Work around `pkg_resources` missing + - Always close sessions + * Features: + - Add `fqdn` and `ipv4` convenience properties + - Add `cache_fetch_timeout` kwarg + and `TLDEXTRACT_CACHE_TIMEOUT` env var + * Misc: + - Document public vs. private domains + - Document support for Python 3.6 + +------------------------------------------------------------------- +Fri Jun 24 02:06:44 UTC 2016 - archie.cobbs@gmail.com + +- Correct license in spec file (MIT -> BSD) + +------------------------------------------------------------------- +Sun Jun 19 21:38:28 UTC 2016 - archie.cobbs@gmail.com + +- Fix homepage URL in specfile + +------------------------------------------------------------------- +Tue Jun 14 08:38:36 CDT 2016 - archie.cobbs@gmail.com + +- Initial creation of package, version 2.0.1 + diff --git a/python-tldextract.spec b/python-tldextract.spec new file mode 100644 index 0000000..9ad9cd0 --- /dev/null +++ b/python-tldextract.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-tldextract +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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/ +# + + +%define oldpython python +%{?sle15_python_module_pythons} +Name: python-tldextract +Version: 5.3.1 +Release: 0 +Summary: Python module to separate the TLD of a URL +License: BSD-3-Clause +URL: https://github.com/john-kurkowski/tldextract +Source: https://files.pythonhosted.org/packages/source/t/tldextract/tldextract-%{version}.tar.gz +Source1: %{name}-rpmlintrc +BuildRequires: %{python_module base >= 3.10} +BuildRequires: %{python_module filelock >= 3.0.8} +BuildRequires: %{python_module idna >= 2.1.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.1.0} +BuildRequires: %{python_module requests-file >= 1.4} +BuildRequires: %{python_module responses} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module syrupy} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-filelock >= 3.0.8 +Requires: python-idna >= 2.1.0 +Requires: python-requests >= 2.1.0 +Requires: python-requests-file >= 1.4 +Requires(post): update-alternatives +Requires(postun): update-alternatives +Obsoletes: %{oldpython}-tldextract <= 2.0.1 +BuildArch: noarch +%python_subpackages + +%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. By default, this includes the public ICANN TLDs and their +exceptions. You can optionally support the Public Suffix List's private domains +as well. + +%prep +%setup -q -n tldextract-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/tldextract +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%post +%python_install_alternative tldextract + +%postun +%python_uninstall_alternative tldextract + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/tldextract +%{python_sitelib}/tldextract-%{version}.dist-info +%python_alternative %{_bindir}/tldextract + +%changelog diff --git a/tldextract-5.3.0.tar.gz b/tldextract-5.3.0.tar.gz new file mode 100644 index 0000000..2cf6775 --- /dev/null +++ b/tldextract-5.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d2b70a1594a0ecfa6967d57251527d58e00bb5a91a74387baa0d87a0678609 +size 128502 diff --git a/tldextract-5.3.1.tar.gz b/tldextract-5.3.1.tar.gz new file mode 100644 index 0000000..ecc8455 --- /dev/null +++ b/tldextract-5.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a72756ca170b2510315076383ea2993478f7da6f897eef1f4a5400735d5057fb +size 126105