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:           Mon Jan  1 11:43:26 UTC 2024

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

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/net/py-netaddr/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/py-netaddr/PLIST
cvs rdiff -u -r1.9 -r1.10 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.12 pkgsrc/net/py-netaddr/Makefile:1.13
--- pkgsrc/net/py-netaddr/Makefile:1.12 Wed Sep 20 07:29:14 2023
+++ pkgsrc/net/py-netaddr/Makefile      Mon Jan  1 11:43:26 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2023/09/20 07:29:14 adam Exp $
+# $NetBSD: Makefile,v 1.13 2024/01/01 11:43:26 adam Exp $
 
-DISTNAME=      netaddr-0.9.0
+DISTNAME=      netaddr-0.10.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/netaddr/}
@@ -10,11 +10,12 @@ HOMEPAGE=   https://github.com/drkjam/neta
 COMMENT=       Python library for manipulating network addresses
 LICENSE=       modified-bsd
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 
 USE_LANGUAGES= # none
 
-USE_PKG_RESOURCES=     yes
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 REPLACE_PYTHON+=       netaddr/eui/ieee.py
 REPLACE_PYTHON+=       netaddr/ip/iana.py
@@ -25,5 +26,5 @@ post-install:
        ${MV} netaddr netaddr-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/py-netaddr/PLIST
diff -u pkgsrc/net/py-netaddr/PLIST:1.4 pkgsrc/net/py-netaddr/PLIST:1.5
--- pkgsrc/net/py-netaddr/PLIST:1.4     Sat Jun 20 07:27:44 2020
+++ pkgsrc/net/py-netaddr/PLIST Mon Jan  1 11:43:26 2024
@@ -1,11 +1,12 @@
-@comment $NetBSD: PLIST,v 1.4 2020/06/20 07:27:44 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2024/01/01 11:43:26 adam Exp $
 bin/netaddr-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/netaddr/__init__.py
 ${PYSITELIB}/netaddr/__init__.pyc
 ${PYSITELIB}/netaddr/__init__.pyo

Index: pkgsrc/net/py-netaddr/distinfo
diff -u pkgsrc/net/py-netaddr/distinfo:1.9 pkgsrc/net/py-netaddr/distinfo:1.10
--- pkgsrc/net/py-netaddr/distinfo:1.9  Wed Sep 20 07:29:14 2023
+++ pkgsrc/net/py-netaddr/distinfo      Mon Jan  1 11:43:26 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2023/09/20 07:29:14 adam Exp $
+$NetBSD: distinfo,v 1.10 2024/01/01 11:43:26 adam Exp $
 
-BLAKE2s (netaddr-0.9.0.tar.gz) = ee97b415b65d7bc6e00511bce09ac66786f00f5be7a0cc4dd232e7f0ea2ffb2b
-SHA512 (netaddr-0.9.0.tar.gz) = 250b00a930f7180e1b4e18cb90de579733ffea9cd4ac93a3b7d2f7796b30c6b49d70da4b05ed522ebc9389600f4db8ecaed9345f7d0076632d0beae41e11c3ae
-Size (netaddr-0.9.0.tar.gz) = 2196428 bytes
+BLAKE2s (netaddr-0.10.0.tar.gz) = 1f20cf6c7f3b92053a9a41ac2ee7b91a11667a8f4ffa8041220f31297365ea27
+SHA512 (netaddr-0.10.0.tar.gz) = 120c7276c39f4d2e17265c5b09842408f7cc211035239a6fb540d538fa8d9c75cf1e201d4ae459d5319096b0c4d9c39a3f171364b2f1d2f5265d0535691fc2b3
+Size (netaddr-0.10.0.tar.gz) = 2225176 bytes



Home | Main Index | Thread Index | Old Index