From 8f6f04114cc713139ff23375702073acea0ded98d31c26da16adb74742d67fb9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 4 Feb 2023 22:32:26 +0000 Subject: [PATCH 1/2] Accepting request 1063176 from home:mnhauke:network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to version 2.3.0 * The get_soa() method has been added to dns.zone.Zone. * The minimum TLS version is now 1.2. * EDNS padding is now supported. Messages with EDNS enabled and with a non-zero pad option will be automatically padded appropriately when converted to wire format. * dns.zone.from_text() and dns.zone.from_file() now have an allow_directives parameter to allow finer control over how directives in zonefiles are processed. * A preliminary implementation of DNS-over-QUIC has been added, and will be available if the aioquic library is present. See dns.query.quic(), dns.asyncquery.quic(), and examples/doq.py for more info. This API is subject to change in future releases For asynchronous I/O, both asyncio and Trio are supported, but Curio is not. * DNSSEC signing support has been added to the dns.dnssec module, along with a number of functions to help generate DS, CDS, and CDNSKEY RRsets. * Curio asynchronous I/O support is deprecated as of this release and will be removed in a future release. * The resolver object’s nameserver field is planned to become a property in dnspython 2.4. Writing to this field other than by direct assignment is deprecated, and so is depending on the mutability and form of the iterable returned when it is read. OBS-URL: https://build.opensuse.org/request/show/1063176 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=66 --- dnspython-2.2.1.tar.gz | 3 --- dnspython-2.3.0.tar.gz | 3 +++ python-dnspython.changes | 28 ++++++++++++++++++++++++++++ python-dnspython.spec | 4 ++-- 4 files changed, 33 insertions(+), 5 deletions(-) delete mode 100644 dnspython-2.2.1.tar.gz create mode 100644 dnspython-2.3.0.tar.gz diff --git a/dnspython-2.2.1.tar.gz b/dnspython-2.2.1.tar.gz deleted file mode 100644 index 76053bf..0000000 --- a/dnspython-2.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f7569a4a6ff151958b64304071d370daa3243d15941a7beedf0c9fe5105603e -size 281325 diff --git a/dnspython-2.3.0.tar.gz b/dnspython-2.3.0.tar.gz new file mode 100644 index 0000000..a21ecbc --- /dev/null +++ b/dnspython-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:224e32b03eb46be70e12ef6d64e0be123a64e621ab4c0822ff6d450d52a540b9 +size 312313 diff --git a/python-dnspython.changes b/python-dnspython.changes index 70845f6..5bb3843 100644 --- a/python-dnspython.changes +++ b/python-dnspython.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sat Feb 4 15:48:32 UTC 2023 - Martin Hauke + +- Update to version 2.3.0 + * The get_soa() method has been added to dns.zone.Zone. + * The minimum TLS version is now 1.2. + * EDNS padding is now supported. Messages with EDNS enabled and + with a non-zero pad option will be automatically padded + appropriately when converted to wire format. + * dns.zone.from_text() and dns.zone.from_file() now have an + allow_directives parameter to allow finer control over how + directives in zonefiles are processed. + * A preliminary implementation of DNS-over-QUIC has been added, + and will be available if the aioquic library is present. See + dns.query.quic(), dns.asyncquery.quic(), and examples/doq.py + for more info. This API is subject to change in future releases + For asynchronous I/O, both asyncio and Trio are supported, + but Curio is not. + * DNSSEC signing support has been added to the dns.dnssec module, + along with a number of functions to help generate DS, CDS, and + CDNSKEY RRsets. + * Curio asynchronous I/O support is deprecated as of this release + and will be removed in a future release. + * The resolver object’s nameserver field is planned to become a + property in dnspython 2.4. Writing to this field other than by + direct assignment is deprecated, and so is depending on the + mutability and form of the iterable returned when it is read. + ------------------------------------------------------------------- Mon Oct 10 07:13:50 UTC 2022 - Matej Cepl diff --git a/python-dnspython.spec b/python-dnspython.spec index d1371e0..61f0387 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,7 +28,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-dnspython%{psuffix} -Version: 2.2.1 +Version: 2.3.0 Release: 0 Summary: A DNS toolkit for Python License: ISC From 295e25005a182605941d7de09d437360aa980033fe12862e4142da4f701e961d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 4 Feb 2023 22:33:55 +0000 Subject: [PATCH 2/2] Clean up SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=67 --- python-dnspython.spec | 61 ++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/python-dnspython.spec b/python-dnspython.spec index 61f0387..6f9fe43 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -24,8 +24,6 @@ %define psuffix %{nil} %bcond_with test %endif - -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-dnspython%{psuffix} Version: 2.3.0 @@ -40,47 +38,46 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module typing} -# doh: -BuildRequires: %{python_module httpx} -BuildRequires: %{python_module h2} -BuildRequires: %{python_module requests-toolbelt} -BuildRequires: %{python_module requests} +# dnssec +Requires: python-cryptography +Requires: python-httpx # idna -BuildRequires: %{python_module idna} +Requires: python-idna >= 2.1 +# Requires despite optional: see description +# doh +Requires: python-requests +Requires: python-requests-toolbelt +# HTTP/2 support in httpx +Recommends: python-h2 +Suggests: python-curio >= 1.2 +# curio +Suggests: python-sniffio >= 1.1 +# trio +Suggests: python-trio >= 0.14.0 +BuildArch: noarch +%if %{with test} # dnssec BuildRequires: %{python_module cryptography} -# trio -BuildRequires: %{python_module trio >= 0.14.0} +BuildRequires: %{python_module curio >= 1.2} +BuildRequires: %{python_module h2} +# doh: +BuildRequires: %{python_module httpx} +# idna +BuildRequires: %{python_module idna} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests-toolbelt} +BuildRequires: %{python_module requests} # curio BuildRequires: %{python_module sniffio >= 1.1} -BuildRequires: %{python_module curio >= 1.2} -BuildRequires: %{python_module pytest} +# trio +BuildRequires: %{python_module trio >= 0.14.0} +BuildRequires: %{python_module typing} BuildRequires: netcfg BuildRequires: (python3-contextvars if python3-base < 3.7) %endif %if 0%{?python_version_nodots} < 37 Requires: python-contextvars %endif -# Requires despite optional: see description -# doh -Requires: python-requests -Requires: python-httpx -Requires: python-requests-toolbelt -# idna -Requires: python-idna >= 2.1 -# dnssec -Requires: python-cryptography -# trio -Suggests: python-trio >= 0.14.0 -# curio -Suggests: python-sniffio >= 1.1 -Suggests: python-curio >= 1.2 -# HTTP/2 support in httpx -Recommends: python-h2 -BuildArch: noarch - %python_subpackages %description