Up to [cvs.NetBSD.org] / pkgsrc / net / py-tldextract
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-tldextract: updated to 5.3.0 5.3.0 (2025-04-21) * Features * Add result field `registry_suffix` * To complement the existing public suffix field `suffix` * Add result property `top_domain_under_public_suffix` * Add result property `top_domain_under_registry_suffix` * 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 5.2.0 (2025-04-07) * Features * Add `reverse_domain_name` result property * 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 * Misc. * Update bundled snapshot
py-tldextract: fix build with setuptools 78 Bump PKGREVISION.
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-tldextract: updated to 5.1.3 5.1.3 (2024-11-04) * Bugfixes * Reduce logging errors * Drop support for EOL Python 3.8 * Support Python 3.13 * Update bundled snapshot * Documentation * Clarify how to use your own definitions * Clarify first-successful definitions vs. merged definitions * Misc. * Switch from Black to Ruff * Switch from pip to uv, during tox
py-tldextract: updated to 5.1.2 5.1.2 (2024-03-18) * Bugfixes * Remove `socket.inet_pton`, to fix platform-dependent IP parsing * Use non-capturing groups for IPv4 address detection, for a slight speed boost * Misc. * Add CI for PyPy3.9 and PyPy3.10 * Add script to automate package release process * Update LICENSE copyright years
py-tldextract: updated to 5.1.1 5.1.1 (2023-11-16) * Bugfixes * Fix path join on Windows * Support Python 3.12 5.1.0 (2023-11-05) * Features * Allow passing in `requests.Session` * Add "-j, --json" option to support output in json format * Docs * Improve clarity of absolute path * Misc. * Extract all testing deps from tox.ini to pyproject.toml extras * Work around responses type union error, in tests
py-tldextract: updated to 5.0.1 5.0.1 (2023-10-17) * Bugfixes * Indicate MD5 not used in a security context (FIPS compliance) * Misc. * Increase typecheck aggression 5.0.0 (2023-10-11) * Breaking Changes * Migrate `ExtractResult` from `namedtuple` to `dataclass` * This means no more iterating/indexing/slicing/unpacking the result object returned by this library. It is no longer a tuple. You must directly reference the fields you're interested in. For example, the following will no longer work. ```python tldextract.extract("example.com")[1:3] # TypeError: 'ExtractResult' object is not subscriptable ``` Instead, use the following. ```python ext = tldextract.extract("example.com") (ext.domain, ext.suffix) ``` * Bugfixes * Drop support for EOL Python 3.7 * Misc. * Switch from pycodestyle and Pylint to Ruff * Consolidate config files * Type tests * Require docstrings in tests * Remove obsolete tests 4.0.0 (2023-10-11) * **Breaking** bugfixes * Always include suffix if private suffix enabled and private suffix exists * Add a 4th field `is_private: bool`, to the `ExtractResult` `namedtuple`, indicating whether the extraction came from the PSL's private domains or not. * **This could cause issues when iterating over the tuple and assuming only 3 fields.** * Previously, the docs promoted iteration to rejoin parts of the tuple. This is better achieved by individual access of fields of interest (e.g. `ExtractResult.subdomain`) or convenience properties (e.g. `ExtractResult.{fqdn,registered_domain}`). This is the same content as version 3.6.0, originally released 2023-09-19, which was yanked.
python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs.
py-tldextract: updated to 3.6.0 3.6.0 (2023-09-19) * **Breaking** bugfixes * Always include suffix if private suffix enabled and private suffix exists * Add a 4th field `is_private: bool`, to the `ExtractResult` `namedtuple`, indicating whether the extraction came from the PSL's private domains or not. * **This could cause issues when iterating over the tuple and assuming only 3 fields.** * Previously, the docs promoted iteration to rejoin parts of the tuple. This is better achieved by individual access of fields of interest (e.g. `ExtractResult.subdomain`) or convenience properties (e.g. `ExtractResult.{fqdn,registered_domain}`).
py-tldextract: updated to 3.5.0 3.5.0 (2023-09-06) * Features * Support IPv6 addresses * Bugfixes * Accept only 4 decimal octet IPv4 addresses * Support IPv4 addresses with unicode dots * Reject IPv4 addresses with trailing whitespaces + non-whitespaces * Misc. * Migrate setup.py to pyproject.toml
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
py-tldextract: updated to 3.4.4 3.4.4 Bugfixes * Honor private domains flag on `self`, not only when passed to `__call__`
py-tldextract: updated to 3.4.3 3.4.3 (2023-05-18) * Bugfixes * Speed up 10-15% over all inputs * Refactor `suffix_index()` to use a trie * Docs * Adopt PEP257 doc style 3.4.2 (2023-05-16) * Bugfixes * Speed up 10-40% on "average" inputs, and even more on pathological inputs, like long subdomains * Optimize `suffix_index()` * Optimize netloc extraction
py-tldextract: updated to 3.4.1 3.4.1 (2023-04-26) * Bugfixes * Fix Pyright not finding tldextract public interface * Fix various Pyright checks * Use SPDX license identifier * Support Python 3.11 * Docs * Add FAQ about private domains * Misc. * Update bundled snapshot * Fix lint in newer pylint
py-tldextract: updated to 3.4.0 3.4.0 (2022-10-04) * Features * Add method `extract_urllib` to extract from a `urllib.parse.{ParseResult,SplitResult}` * Bugfixes * Fix internal type-var error, in newer versions of mypy
py-tldextract: updated to 3.3.1 3.3.1 (2022-07-08) * Bugfixes * Fix documented types, in README and in exception message * Misc. * Format source code
py-tldextract: updated to 3.3.0 3.3.0 * Features * Add CLI flag `--suffix_list_url` to set the suffix list URL(s) or source file(s) * Add CLI flag `--no_fallback_to_snapshot` to not fall back to the snapshot * Add alias `--include_psl_private_domains` for CLI flag `--private_domains` * Bugfixes * Handle more internationalized domain name dots * Misc. * Update bundled snapshot * Add basic CLI test coverage
py-tldextract: updated to 3.2.1 3.2.1 (2022-04-11) * Bugfixes * Fix incorrect namespace used for caching function returns * Remove redundant encode * Remove redundant lowercase * Remove unused `try`/`except` path * Add types to the private API (disallow untyped calls and defs) * Rely on `python_requires` instead of runtime check * Docs * Fix docs with updated types * Fix link in Travis CI badge * Rewrite documentation intro * Remove unnecessary subheading * Unify case 3.2.0 (2022-02-20) * Features * Add types to the public API * Bugfixes * Add support for Python 3.10 * Drop support for EOL Python 3.6 * Remove py2 tag from wheel * Remove extra backtick in README
python: egg.mk: add USE_PKG_RESOURCES flag This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION.
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-tldextract: updated to 3.1.2 3.1.2 (2021-09-01) * Misc. * Only run pylint in Tox environments, i.e. CI, not by default in tests
py-tldextract: updated to 3.1.1 3.1.1: * Bugfixes * Support Python 3.9 * Drop support for EOL Python 3.5
py-tldextract: updated to 3.1.0 3.1.0 (2020-11-22) * Features * Prefer to cache in XDG cache directory in user folder, vs. in Python install folder * Bugfixes * Fix `AttributeError` on `--update` 3.0.2 (2020-10-24) * Bugfixes * Catch permission error when making cache dir, as well as cache file 3.0.1 (2020-10-21) * Bugfixes * Fix `tlds` property `AttributeError` * Allow `include_psl_private_domains` in global `extract` too 3.0.0 (2020-10-20) No changes since 3.0.0.rc1. 3.0.0.rc1 (2020-10-12) This release fixes the long standing bug that public and private suffixes were generated separately and could not be switched at runtime, * Breaking Changes * Rename `cache_file` to `cache_dir` as it is no longer a single file but a directory * 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 * Removals * Do not `debug` log the diff during update
py-tldextract: needs setuptools-scm as build dependency also does not need setuptools as runtime dependency
py-tldextract: updated to 2.2.3 2.2.3: Bugfixes * Fix concurrent access to cache file when using tldextract in multiple threads * Relocate version number, to avoid costly imports * Catch `IndexError` caused by upstream punycode bug * Drop support for EOL Python 3.4 * Explain warning better
pytest from versioned depends
py-tldextract: updated to 2.2.2 2.2.2: * Bugfixes * Catch file not found * Use pkgutil instead of pkg_resources * Performance: avoid recomputes, a regex, and a partition * Misc. * Update LICENSE from GitHub template * Fix warning about literal comparison * Modernize testing * 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
py-tldextract: updated to 2.2.1 2.2.1: Bugfixes Ignore case on punycode prefix check Drop support for EOL Python 2.6 Improve sundry doc and README bits
py-tldextract: updated to version 2.2.0 2.2.0 Unknown changes
2.1.0: Add fqdn convenience property Add ipv4 convenience property
Import net/py-tldextract 2.0.2. tldextract accurately separates the gTLD or ccTLD (generic or country code top-level domain) from the registered domain and subdomains of a URL.