From 3df6f299018a4e03d2b7613e55f7b3c905641ff0eca6659b5a0bda81293448fd Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 21 Mar 2024 09:25:55 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=201.2.1:=20=20=20*=20Fix=20bad?= =?UTF-8?q?=20version=201.2.0=20upload=20to=20PyPI=20=E2=80=93=20now=20yan?= =?UTF-8?q?ked.=20No=20changes=20to=20=20=20=20=20the=20package.=20-=201.2?= =?UTF-8?q?.0:=20=20=20*=20Add=20CLI=20tool=20subcommand=20to=20display=20?= =?UTF-8?q?cli-network-info.=20=20=20*=20Support=20running=20interactive-s?= =?UTF-8?q?hell=20without=20IPython=20installed.=20=20=20*=20Explicitly=20?= =?UTF-8?q?raise=20TypeError=20is=20a=20non-string=20value=20is=20passed?= =?UTF-8?q?=20to=20=20=20=20=20valid=5Fipv4=20or=20valid=5Fipv6.=20-=201.1?= =?UTF-8?q?.0:=20=20=20*=20Add=20the=20required=20Python=20version=20to=20?= =?UTF-8?q?the=20package=20metadata=20(#365).=20=20=20*=20Add=20expand=5Fp?= =?UTF-8?q?artial=5Fipv4=5Faddress=20to=20the=20public=20API.=20=20=20*=20?= =?UTF-8?q?Fix=20IPNetwork(...)=20in=20IPRange(...)=20false=20negatives=20?= =?UTF-8?q?(#157).=20=20=20*=20Fix=20a=20few=20IPNetwork=20slicing=20edge?= =?UTF-8?q?=20cases=20(#214).=20=20=20*=20Fix=20support=20for=20partial=20?= =?UTF-8?q?IP=20addresses=20accidentally=20left=20in=20IPNetwork=20in=201.?= =?UTF-8?q?0.0.=20=20=20*=20Fixed=20an=20incorrect=20license=20classifier?= =?UTF-8?q?=20in=20the=20package=20metadata.=20-=201.0.0:=20=20=20*=20Remo?= =?UTF-8?q?ved:=20=20=20=20=20*=20Drop=20support=20for=20Python=20versions?= =?UTF-8?q?=20lower=20than=203.7.=20=20=20=20=20*=20Remove=20the=20flag=20?= =?UTF-8?q?shorthands:=20N,=20P=20and=20Z.=20Use=20NOHOST,=20INET=5FPTON?= =?UTF-8?q?=20=20=20=20=20=20=20and=20ZEROFILL=20instead.=20=20=20=20=20*?= =?UTF-8?q?=20Remove=20abbreviated=20CIDR=20format=20support=20in=20IPNetw?= =?UTF-8?q?ork=20(implicit=5Fprefix=3DTrue),=20=20=20=20=20=20=20use=20cid?= =?UTF-8?q?r=5Fabbrev=5Fto=5Fverbose=20if=20you=20need=20this=20behavior.?= =?UTF-8?q?=20=20=20=20=20*=20Remove=20the=20IPAddress.is=5Fprivate=20meth?= =?UTF-8?q?od.=20=20=20*=20Changed:=20=20=20=20=20*=20Stop=20accepting=20l?= =?UTF-8?q?eading=20zeros=20when=20parsing=20IPv4=20addresses=20in=20INET?= =?UTF-8?q?=5FPTON=20mode=20=20=20=20=20=20=20(it's=20been=20allowed=20on?= =?UTF-8?q?=20some=20platforms).=20=20=20=20=20*=20Stop=20parsing=20IPv4?= =?UTF-8?q?=20addresses=20permissively=20(inet=5Faton()-like)=20by=20defau?= =?UTF-8?q?lt.=20=20=20=20=20*=20Apply=20the=20two=20changes=20above=20to?= =?UTF-8?q?=20valid=5Fipv4=20as=20well.=20=20=20=20=20*=20Update=20the=20a?= =?UTF-8?q?ddress=20databases=20to=20the=202024-02-10=20versions.=20=20=20?= =?UTF-8?q?*=20Fixed:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=34 --- netaddr-0.10.1.tar.gz | 3 --- netaddr-1.2.1.tar.gz | 3 +++ python-netaddr.changes | 37 +++++++++++++++++++++++++++++++++++++ python-netaddr.spec | 24 ++++++++++-------------- 4 files changed, 50 insertions(+), 17 deletions(-) delete mode 100644 netaddr-0.10.1.tar.gz create mode 100644 netaddr-1.2.1.tar.gz diff --git a/netaddr-0.10.1.tar.gz b/netaddr-0.10.1.tar.gz deleted file mode 100644 index 60bc411..0000000 --- a/netaddr-0.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf -size 2225283 diff --git a/netaddr-1.2.1.tar.gz b/netaddr-1.2.1.tar.gz new file mode 100644 index 0000000..b9d95c7 --- /dev/null +++ b/netaddr-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987 +size 2278809 diff --git a/python-netaddr.changes b/python-netaddr.changes index 1f9f24a..3ae275a 100644 --- a/python-netaddr.changes +++ b/python-netaddr.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia + +- Update to 1.2.1: + * Fix bad version 1.2.0 upload to PyPI – now yanked. No changes to + the package. +- 1.2.0: + * Add CLI tool subcommand to display cli-network-info. + * Support running interactive-shell without IPython installed. + * Explicitly raise TypeError is a non-string value is passed to + valid_ipv4 or valid_ipv6. +- 1.1.0: + * Add the required Python version to the package metadata (#365). + * Add expand_partial_ipv4_address to the public API. + * Fix IPNetwork(...) in IPRange(...) false negatives (#157). + * Fix a few IPNetwork slicing edge cases (#214). + * Fix support for partial IP addresses accidentally left in IPNetwork in 1.0.0. + * Fixed an incorrect license classifier in the package metadata. +- 1.0.0: + * Removed: + * Drop support for Python versions lower than 3.7. + * Remove the flag shorthands: N, P and Z. Use NOHOST, INET_PTON + and ZEROFILL instead. + * Remove abbreviated CIDR format support in IPNetwork (implicit_prefix=True), + use cidr_abbrev_to_verbose if you need this behavior. + * Remove the IPAddress.is_private method. + * Changed: + * Stop accepting leading zeros when parsing IPv4 addresses in INET_PTON mode + (it's been allowed on some platforms). + * Stop parsing IPv4 addresses permissively (inet_aton()-like) by default. + * Apply the two changes above to valid_ipv4 as well. + * Update the address databases to the 2024-02-10 versions. + * Fixed: + * Return False instead of raising AddrFormatError when an empty string is passed + to valid_ipv4 or valid_ipv6. + * Fix handling of dialect provided to EUI during copy-construction. + ------------------------------------------------------------------- Sun Jan 7 20:54:19 UTC 2024 - Dirk Müller diff --git a/python-netaddr.spec b/python-netaddr.spec index 9f30106..c4138c8 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -18,25 +18,21 @@ %{?sle15_python_module_pythons} Name: python-netaddr -Version: 0.10.1 +Version: 1.2.1 Release: 0 Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/drkjam/netaddr Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module xml} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-importlib-metadata -Requires: python-importlib_resources -%ifpython2 -Requires: python-xml -%endif Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -58,16 +54,16 @@ Included are routines for: - querying of IP standards related data from key IANA data sources. %prep -%setup -q -n netaddr-%{version} +%autosetup -p1 -n netaddr-%{version} sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/netaddr -%fdupes %{buildroot} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest @@ -79,8 +75,8 @@ sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executabl %python_uninstall_alternative netaddr %files %{python_files} -%license LICENSE -%doc AUTHORS CHANGELOG COPYRIGHT README.rst +%license LICENSE.rst +%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst %{python_sitelib}/netaddr* %{_bindir}/netaddr-%{python_bin_suffix} %python_alternative %{_bindir}/netaddr