Sync from SUSE:SLFO:Main python-netaddr revision f8903b6c142b5d0926235c40a381adbe

This commit is contained in:
2025-05-17 15:50:54 +02:00
parent 25a6b0f9e5
commit 5c9887f698
4 changed files with 31 additions and 7 deletions

BIN
netaddr-1.2.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
netaddr-1.3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Dec 5 09:53:32 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Fix incorrect removal of shebangs
-------------------------------------------------------------------
Thu Dec 5 06:41:14 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.3.0:
* Added:
- Add partial address expansion in IPNetwork via the
expand_partial switch, this enables opting into pre-1.1.0
behavior
* Fixed:
- Fix running the test suite on musl systems
- Fix IPAddress IPv6 parsing with ZEROFILL enabled
- Fix handling of the NOHOST flag in the IPNetwork copy
constructor
-------------------------------------------------------------------
Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -18,17 +18,22 @@
%{?sle15_python_module_pythons}
Name: python-netaddr
Version: 1.2.1
Version: 1.3.0
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
URL: https://github.com/netaddr/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 wheel}
# SECTION test
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module iniconfig}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pluggy}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
@@ -55,7 +60,7 @@ Included are routines for:
%prep
%autosetup -p1 -n netaddr-%{version}
sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
%build
%pyproject_wheel