Up to [cvs.NetBSD.org] / pkgsrc / net / py-netaddr
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Fix PLIST after py-setuptools update; bump depends and revision
py-netaddr: updated to 1.1.0 1.1.0 ----- Date: 2024-02-15 Added: * Add the required Python version to the package metadata (GH :issue:`365`). * Add :func:`expand_partial_ipv4_address` to the public API. Fixed: * Fix ``IPNetwork(...) in IPRange(...)`` false negatives (GH :issue:`157`). * Fix a few :class:`IPNetwork` slicing edge cases (GH :issue:`214`). * Fix support for partial IP addresses accidentally left in :class:`IPNetwork` in 1.0.0. When I removed the ``implicit_prefix`` switch I missed the fact that there was some partial IPv4 address expansion triggered unconditionally. If you need the old behavior use :func:`expand_partial_ipv4_address`. Related GH issue: :issue:`110`. * Fixed an incorrect license classifier in the package metadata.
py-netaddr: updated to 0.10.0 Release: 0.10.0 Added: * Add an :data:`INET_ATON` flag to explicitly request ``inet_aton()`` IPv4 parsing semantics from :class:`IPAddress`. * Add an :meth:`IPAddress.is_ipv4_private_use` convenience method. * Add an :meth:`IPAddress.is_global` convenience method to allow determining if an address is considered globally reachable. * Add an :meth:`IPAddress.is_ipv6_unique_local` convenience method. Fixed: * Improve Python 3.13 compatibility, thank you John Eckersberg. Deprecated: * Deprecate Python 3.7 support. * Deprecate abbreviated CIDR format support in :class:`IPNetwork` (``implicit_prefix=True``). * Deprecate accepting leading zeros when parsing IPv4 addresses in :data:`INET_PTON` mode (it's been allowed on some platforms). If you need to allow and discard leading zeros use the :data:`ZEROFILL` flag. This change will implicit conversions from ``str`` in all relevant contexts. If you need to control the IPv4 parsing mode construct :class:`IPAddress` objects explicitly. * Deprecate parsing IPv4 addresses permissively (``inet_aton()``-like) by default. :data:`INET_PTON` will become the default mode. If you need to be permissive and parse using ``inet_aton()`` semantics use the :data:`INET_ATON` flag. This change will implicit conversions from ``str`` in all relevant contexts. If you need to control the IPv4 parsing mode construct :class:`IPAddress` objects explicitly. * Deprecate the :meth:`IPAddress.is_private` method. Migration instructions in the documentation. Other: * Raise an exception if invalid flags are passed to ``IPAddress``, ``IPNetwork`` or ``IPRange``. * Improve the documentation substantially. * Update the DB files to the latest versions (2023-12-23).
py-netaddr: updated to 0.7.20
Changes since 0.7.19
* Fixed returning from an iterator on Python 3.7+, by Sergey Kozlov.
* Fixed Python 3.8 SyntaxWarning on using `is not` with a string literal, by Stefan Nordhausen.
* Fixed DeprecationWarnings by using raw strings for escape characters used in regexes, by Sean McGinnis.
* Improved IPGlob documentation, by obkmeta.
* Fixed exception creation in corner cases by explicitly passin error message params as tuples, by
Matthias Urlichs.
* Stopped manually replacing shebang of an included script.
* Stopped using __file__ in all code that's expected to run in environments that don't support it
(like PyOxidizer-produced binaries).
* Updated all databases included in the package.
Specific bug fixes addressed in this release
FIXED Issue 182: https://github.com/netaddr/netaddr/issues/182
- test_ip_splitter_remove_prefix_larger_than_input_range fails with python 3.7
FIXED Issue 206: https://github.com/netaddr/netaddr/issues/206
- ""is not" with a literal." SyntaxWarning
FIXED Issue 198: https://github.com/netaddr/netaddr/issues/198
- oui databases are outdated
FIXED Issue 188: https://github.com/netaddr/netaddr/issues/188
- Avoid use of __file__
Miscellanea
- Python 2 versions older than 2.7 and Python 3 versions older than 3.5 should be considered
unsupported. No incompatible code has been introduced to the best of our knowledge but
there's no CI infrastructure in place to verify this and if there are any issues with
those versions they won't be fixed.
- Consequently, Python 2.7 and 3.5 support should be considered deprecated as 2.7 has
reached its end-of-life already and 3.5 will hit it soon.
- A CI setup has been introduced which allows us to test on a variety of Python versions
on all Mac, Linux and Windows.
py-netaddr: update to 0.7.19 Release: 0.7.19: * added a new SubnetSplitter class for those looking to divide up subnets. Thanks alanwill and RyPeck and those on (Stack Overflow discussion). * removed bundled pytest dependency code for "python setup.py test". * setup.py now uses setuptools only (no more distutils) and setup_egg.py removed. * cleaned up INSTALL docs so they accurately reflect current Python packaging. * fixed broken parsing, generating and reading of IEEE index files when switching between Python 2.x and 3.x.
Changes 0.7.18: * cidr_merge() algorithm is now O(n) and much faster. * nmap target specification now fully supported including IPv4 CIDR prefixes and IPv6 addresses.
py-netaddr is a Python library for representing and manipulating network addresses. It support the ability to work and interact with the following: - IPv4 and IPv6 addresses and subnets - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers - arbitrary (non-aligned) IP address ranges and IP address sets - various non-CIDR IP range formats such as nmap and glob-style formats