forked from pool/python-netaddr
Accepting request 1160042 from devel:languages:python
- 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: OBS-URL: https://build.opensuse.org/request/show/1160042 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netaddr?expand=0&rev=29
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf
|
|
||||||
size 2225283
|
|
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,40 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Sun Jan 7 20:54:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -18,25 +18,21 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 0.10.1
|
Version: 1.2.1
|
||||||
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 pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-importlib-metadata
|
|
||||||
Requires: python-importlib_resources
|
|
||||||
%ifpython2
|
|
||||||
Requires: python-xml
|
|
||||||
%endif
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -58,16 +54,16 @@ Included are routines for:
|
|||||||
- querying of IP standards related data from key IANA data sources.
|
- querying of IP standards related data from key IANA data sources.
|
||||||
|
|
||||||
%prep
|
%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
|
sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/netaddr
|
%python_clone -a %{buildroot}%{_bindir}/netaddr
|
||||||
%fdupes %{buildroot}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
@@ -79,8 +75,8 @@ sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executabl
|
|||||||
%python_uninstall_alternative netaddr
|
%python_uninstall_alternative netaddr
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE.rst
|
||||||
%doc AUTHORS CHANGELOG COPYRIGHT README.rst
|
%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst
|
||||||
%{python_sitelib}/netaddr*
|
%{python_sitelib}/netaddr*
|
||||||
%{_bindir}/netaddr-%{python_bin_suffix}
|
%{_bindir}/netaddr-%{python_bin_suffix}
|
||||||
%python_alternative %{_bindir}/netaddr
|
%python_alternative %{_bindir}/netaddr
|
||||||
|
Reference in New Issue
Block a user