Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-netaddr revision 18680aa013fdd10a91b08d4aa1aa15fc
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.
BIN
netaddr-1.2.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
netaddr-1.2.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,97 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 14:01:34 UTC 2025 - Victor Zhestkov <vzhestkov@suse.com>
|
||||
|
||||
- Update to 1.2.1:
|
||||
* Fix bad version 1.2.0 upload to PyPI – now yanked. No changes to
|
||||
the package.
|
||||
|
||||
- Update to 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.
|
||||
|
||||
- Update to 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.
|
||||
|
||||
- Update to 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.
|
||||
|
||||
- Update to 0.10.1:
|
||||
* Get rid of some warnings
|
||||
* 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.
|
||||
* Improve Python 3.13 compatibility, thank you John Eckersberg.
|
||||
* Deprecate Python 3.7 support.
|
||||
* Deprecate abbreviated CIDR format support in
|
||||
:class:`IPNetwork`
|
||||
* 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.
|
||||
* 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).
|
||||
|
||||
- Update to 0.9.0:
|
||||
Added:
|
||||
* Add hash capabilities to OUI.
|
||||
Fixed:
|
||||
* Backwards incompatible: Handle RFC 6164 IPv6 addresses (don't
|
||||
reserve first IP address in point-to-point subnets).
|
||||
* Technically backwards incompatible: Fix for is_loopback
|
||||
behaviour – consider IPNetwork('::1/128') to be loopback.
|
||||
* Fix print syntax in the documentation to be Python 3 compatible
|
||||
* Fix the Sphinx syntax in the documentation.
|
||||
Other:
|
||||
* Deprecate Python 3.6.
|
||||
* Eliminate unnecessary evals.
|
||||
|
||||
- Update to 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 12:45:19 UTC 2022 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package saltbundlepy-netaddr
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,20 +19,19 @@
|
||||
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
|
||||
%define pythons saltbundlepy
|
||||
|
||||
# Disable python bytecompile for all distros
|
||||
# It's called explicitly in the spec
|
||||
%global __brp_python_bytecompile %{nil}
|
||||
|
||||
Name: saltbundlepy-netaddr
|
||||
Version: 0.7.19
|
||||
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: http://github.com/drkjam/netaddr
|
||||
Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
||||
BuildRequires: %{saltbundlepy_module devel >= 3.10}
|
||||
BuildRequires: %{saltbundlepy_module devel >= 3.11}
|
||||
BuildRequires: %{saltbundlepy_module pip}
|
||||
BuildRequires: %{saltbundlepy_module pytest}
|
||||
BuildRequires: %{saltbundlepy_module setuptools}
|
||||
BuildRequires: %{saltbundlepy_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: saltbundlepy-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -56,24 +55,23 @@ Included are routines for:
|
||||
- querying of IP standards related data from key IANA data sources.
|
||||
|
||||
%prep
|
||||
%setup -q -n netaddr-%{version}
|
||||
sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
||||
%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
|
||||
rm %{buildroot}%{_bindir}/netaddr
|
||||
%fdupes %{buildroot}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
%doc AUTHORS CHANGELOG COPYRIGHT README.md LICENSE
|
||||
%license LICENSE.rst
|
||||
%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst
|
||||
%{python_sitelib}/netaddr*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user