pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/py-netaddr



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Feb 14 16:32:29 UTC 2024

Modified Files:
        pkgsrc/net/py-netaddr: Makefile distinfo

Log Message:
py-netaddr: updated to 1.0.0

Release: 1.0.0
--------------

Date: 2024-02-10

Removed:

* Drop support for Python versions lower than 3.7.
* Remove the flag shorthands: ``N``, ``P`` and ``Z``. Use :data:`NOHOST`, :data:`INET_PTON`
  and :data:`ZEROFILL` instead.
* Remove abbreviated CIDR format support in :class:`IPNetwork` (``implicit_prefix=True``),
  use :func:`cidr_abbrev_to_verbose` if you need this behavior.
* Remove the ``IPAddress.is_private`` method.

  There are more precise replacements for subset of the addresses that used to handled by ``is_private``:

  * :meth:`IPAddress.is_link_local`
  * :meth:`IPAddress.is_ipv4_private_use`
  * :meth:`IPAddress.is_ipv6_unique_local`
  * :meth:`IPAddress.is_global`

  The following address blocks used to be handled by ``is_private`` have no dedicated
  convenience methods and you'll have to handle them manually or request a method
  addition:

  * ``100.64.0.0/10`` – Shared Address Space
  * ``192.0.0.0/24`` – IETF Protocol Assignments (watch out – there are exceptions in there)
  * ``198.18.0.0/15`` – Benchmarking
  * ``239.0.0.0``-``239.255.255.255`` – ``240.0.0.0/4`` is Reserved, ``239.0.0.0/8`` – unclear

Changed:

* Stop 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 affect implicit conversions from ``str`` in all relevant contexts. If you need
  to control the IPv4 parsing mode construct :class:`IPAddress` objects explicitly.
* Stop parsing IPv4 addresses permissively (``inet_aton()``-like) by default.

  :data:`INET_PTON` is the default mode.

  If you need to be permissive and parse using ``inet_aton()`` semantics use the
  :data:`INET_ATON` flag.

  This change will affect implicit conversions from ``str`` in all relevant contexts. If you
  need to control the IPv4 parsing mode construct :class:`IPAddress` objects explicitly.
* Apply the two changes above to :func:`valid_ipv4` as well.
* Update the address databases to the 2024-02-10 versions.

Fixed:

* Return ``False`` instead of raising :exc:`AddrFormatError` when an empty string is passed
  to :func:`valid_ipv4` or :func:`valid_ipv6`.
* Fix handling of ``dialect`` provided to :class:`EUI` during copy-construction.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/net/py-netaddr/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/net/py-netaddr/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/py-netaddr/Makefile
diff -u pkgsrc/net/py-netaddr/Makefile:1.14 pkgsrc/net/py-netaddr/Makefile:1.15
--- pkgsrc/net/py-netaddr/Makefile:1.14 Wed Jan  3 06:53:25 2024
+++ pkgsrc/net/py-netaddr/Makefile      Wed Feb 14 16:32:29 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2024/01/03 06:53:25 adam Exp $
+# $NetBSD: Makefile,v 1.15 2024/02/14 16:32:29 adam Exp $
 
-DISTNAME=      netaddr-0.10.1
+DISTNAME=      netaddr-1.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/netaddr/}

Index: pkgsrc/net/py-netaddr/distinfo
diff -u pkgsrc/net/py-netaddr/distinfo:1.11 pkgsrc/net/py-netaddr/distinfo:1.12
--- pkgsrc/net/py-netaddr/distinfo:1.11 Wed Jan  3 06:53:25 2024
+++ pkgsrc/net/py-netaddr/distinfo      Wed Feb 14 16:32:29 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2024/01/03 06:53:25 adam Exp $
+$NetBSD: distinfo,v 1.12 2024/02/14 16:32:29 adam Exp $
 
-BLAKE2s (netaddr-0.10.1.tar.gz) = d13d1a3127b0d543d5be6e17609fb6b36f7b43ea6db8c432cdc51fe78e40ad52
-SHA512 (netaddr-0.10.1.tar.gz) = ca04171d5cbfd569d4f262f4870610edfd98be35899cb70983dbff5f37add963e05987ddbe1ab22d9b615580ac1abe96a8c2903681b18af8c9f2f96899b618ff
-Size (netaddr-0.10.1.tar.gz) = 2225283 bytes
+BLAKE2s (netaddr-1.0.0.tar.gz) = f223e0ea413824be18cdb2047605bc3a9df1f96cc97f27003a2e0e25b3bf6087
+SHA512 (netaddr-1.0.0.tar.gz) = 0eb27a655c03ea2a26ea11b88324f6c1c15b6458abd0ba056a4651038261038c8c852a866b5c45e96a87f107a2b23ec259c868c2122ae450b31b4fff91ea9962
+Size (netaddr-1.0.0.tar.gz) = 2233464 bytes



Home | Main Index | Thread Index | Old Index