forked from pool/python-netaddr
Accepting request 819016 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/819016 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netaddr?expand=0&rev=24
This commit is contained in:
BIN
netaddr-0.7.19.tar.gz
(Stored with Git LFS)
BIN
netaddr-0.7.19.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
netaddr-0.8.0.tar.gz
Normal file
3
netaddr-0.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243
|
||||||
|
size 1891561
|
@@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 4 18:19:40 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- 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 <pgajdos@suse.com>
|
Thu May 21 10:56:34 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@@ -17,18 +17,22 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
#%%bcond_without test
|
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 0.7.19
|
Version: 0.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/drkjam/netaddr
|
URL: https://github.com/drkjam/netaddr
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
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: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-importlib-metadata
|
||||||
|
Requires: python-importlib_resources
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -53,7 +57,7 @@ Included are routines for:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n netaddr-%{version}
|
%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
|
%build
|
||||||
%python_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
|
%python_clone -a %{buildroot}%{_bindir}/netaddr
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%pytest
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative netaddr
|
%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
|
%python_uninstall_alternative netaddr
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc AUTHORS CHANGELOG COPYRIGHT README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_bindir}/netaddr-%{python_bin_suffix}
|
%{_bindir}/netaddr-%{python_bin_suffix}
|
||||||
%python_alternative %{_bindir}/netaddr
|
%python_alternative %{_bindir}/netaddr
|
||||||
%license LICENSE
|
|
||||||
%doc AUTHORS CHANGELOG COPYRIGHT README.md
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user