diff --git a/netaddr-0.10.1.tar.gz b/netaddr-0.10.1.tar.gz deleted file mode 100644 index 60bc411..0000000 --- a/netaddr-0.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf -size 2225283 diff --git a/netaddr-1.2.1.tar.gz b/netaddr-1.2.1.tar.gz new file mode 100644 index 0000000..b9d95c7 --- /dev/null +++ b/netaddr-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987 +size 2278809 diff --git a/python-netaddr.changes b/python-netaddr.changes index 1f9f24a..3ae275a 100644 --- a/python-netaddr.changes +++ b/python-netaddr.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia + +- 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 diff --git a/python-netaddr.spec b/python-netaddr.spec index 9f30106..c4138c8 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -18,25 +18,21 @@ %{?sle15_python_module_pythons} Name: python-netaddr -Version: 0.10.1 +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: https://github.com/drkjam/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 xml} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-importlib-metadata -Requires: python-importlib_resources -%ifpython2 -Requires: python-xml -%endif Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -58,16 +54,16 @@ Included are routines for: - querying of IP standards related data from key IANA data sources. %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 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/netaddr -%fdupes %{buildroot} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest @@ -79,8 +75,8 @@ sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executabl %python_uninstall_alternative netaddr %files %{python_files} -%license LICENSE -%doc AUTHORS CHANGELOG COPYRIGHT README.rst +%license LICENSE.rst +%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst %{python_sitelib}/netaddr* %{_bindir}/netaddr-%{python_bin_suffix} %python_alternative %{_bindir}/netaddr