From 97b1c875af96719cea540255aebb05bce47e1a775791131a59b4bb964b3263cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 Jul 2020 15:10:29 +0000 Subject: [PATCH] Accepting request 818948 from home:mnhauke:network:automation - Update to version 0.8.0 * Fixed weak reference support in classes with __slots__ * Added __bytes__ to IPAddress for intuitive usage * Added format() function to EUI * Added IPNetwork.netmask property setter * Added support for IABs in the 40:D8:55 OUI * Drastically optimized spanning_cidr() * Fixed "x.x.x.x/x" in IPNetwork tests * Added support for passing iterables of IPRange to IPSet and cidr_merge() Bugfixes: * N log N complexity instead of linear * Efficiently creating a large IPSet from a list of IPRanges? * Weak reference support - Run testsuite OBS-URL: https://build.opensuse.org/request/show/818948 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=25 --- netaddr-0.7.19.tar.gz | 3 --- netaddr-0.8.0.tar.gz | 3 +++ python-netaddr.changes | 19 +++++++++++++++++++ python-netaddr.spec | 18 ++++++++++-------- 4 files changed, 32 insertions(+), 11 deletions(-) delete mode 100644 netaddr-0.7.19.tar.gz create mode 100644 netaddr-0.8.0.tar.gz diff --git a/netaddr-0.7.19.tar.gz b/netaddr-0.7.19.tar.gz deleted file mode 100644 index f43b50f..0000000 --- a/netaddr-0.7.19.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd -size 1622835 diff --git a/netaddr-0.8.0.tar.gz b/netaddr-0.8.0.tar.gz new file mode 100644 index 0000000..1c86c36 --- /dev/null +++ b/netaddr-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243 +size 1891561 diff --git a/python-netaddr.changes b/python-netaddr.changes index b144039..1f5a308 100644 --- a/python-netaddr.changes +++ b/python-netaddr.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Sat Jul 4 18:19:40 UTC 2020 - Martin Hauke + +- Update to version 0.8.0 + * Fixed weak reference support in classes with __slots__ + * Added __bytes__ to IPAddress for intuitive usage + * Added format() function to EUI + * Added IPNetwork.netmask property setter + * Added support for IABs in the 40:D8:55 OUI + * Drastically optimized spanning_cidr() + * Fixed "x.x.x.x/x" in IPNetwork tests + * Added support for passing iterables of IPRange to IPSet and + cidr_merge() + Bugfixes: + * N log N complexity instead of linear + * Efficiently creating a large IPSet from a list of IPRanges? + * Weak reference support +- Run testsuite + ------------------------------------------------------------------- Thu May 21 10:56:34 UTC 2020 - Petr Gajdos diff --git a/python-netaddr.spec b/python-netaddr.spec index 001268a..cec8321 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -17,18 +17,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -#%%bcond_without test Name: python-netaddr -Version: 0.7.19 +Version: 0.8.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 Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz +BuildRequires: %{python_module importlib-metadata} +BuildRequires: %{python_module importlib_resources} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-importlib-metadata +Requires: python-importlib_resources Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -53,7 +57,7 @@ Included are routines for: %prep %setup -q -n netaddr-%{version} -sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts +sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts %build %python_build @@ -63,10 +67,8 @@ sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable sc %python_clone -a %{buildroot}%{_bindir}/netaddr %fdupes %{buildroot} -%if %{with test} %check -%python_exec setup.py test -%endif +%pytest %post %python_install_alternative netaddr @@ -75,10 +77,10 @@ sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable sc %python_uninstall_alternative netaddr %files %{python_files} +%license LICENSE +%doc AUTHORS CHANGELOG COPYRIGHT README.rst %{python_sitelib}/* %{_bindir}/netaddr-%{python_bin_suffix} %python_alternative %{_bindir}/netaddr -%license LICENSE -%doc AUTHORS CHANGELOG COPYRIGHT README.md %changelog