From 29a0225dc0d66e369deeb48a43b9d9c897240969 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Sat, 19 Apr 2025 11:39:28 +0200 Subject: [PATCH 1/6] update to 3.21.0 --- python-dns-lexicon-findall.patch | 44 +++++++++++++++++++++++++++++ python-dns-lexicon-tox-config.patch | 4 +-- python-dns-lexicon.spec | 11 ++++++-- sources | 2 +- 4 files changed, 55 insertions(+), 6 deletions(-) create mode 100644 python-dns-lexicon-findall.patch diff --git a/python-dns-lexicon-findall.patch b/python-dns-lexicon-findall.patch new file mode 100644 index 0000000..39f6497 --- /dev/null +++ b/python-dns-lexicon-findall.patch @@ -0,0 +1,44 @@ +diff --git a/src/lexicon/_private/providers/easyname.py b/src/lexicon/_private/providers/easyname.py +index 827b9cf..3e6dbb4 100644 +--- a/src/lexicon/_private/providers/easyname.py ++++ b/src/lexicon/_private/providers/easyname.py +@@ -273,7 +273,7 @@ class Provider(BaseProvider): + rec["priority"] = (columns[3].contents[1].string or "").strip() + rec["ttl"] = (columns[4].contents[1].string or "").strip() + rec["id"] = "" +- for a in columns[5].findAll( ++ for a in columns[5].find_all( + "a", class_="button button--transparent" + ): + rec["id"] = int(a["href"].rsplit("/", 1)[-1]) +@@ -367,7 +367,7 @@ class Provider(BaseProvider): + def _is_zone_tr(elm): + return elm.name.lower() == "tr" and (elm.has_attr("class")) + +- rows = dns_table.findAll(_is_zone_tr) ++ rows = dns_table.find_all(_is_zone_tr) + assert rows is not None and rows, "Could not find any DNS entries" + return rows + +diff --git a/src/lexicon/_private/providers/henet.py b/src/lexicon/_private/providers/henet.py +index aed38ec..28e5afa 100644 +--- a/src/lexicon/_private/providers/henet.py ++++ b/src/lexicon/_private/providers/henet.py +@@ -144,7 +144,7 @@ class Provider(BaseProvider): + def is_dns_tr_type(klass): + return klass and re.compile("dns_tr").search(klass) + +- records = html.findAll("tr", class_=is_dns_tr_type) ++ records = html.find_all("tr", class_=is_dns_tr_type) + + # If the tag couldn't be found, error, otherwise, return the value of the tag + if records is None or not records: +@@ -153,7 +153,7 @@ class Provider(BaseProvider): + + new_records = [] + for dns_tr in records: +- tds = dns_tr.findAll("td") ++ tds = dns_tr.find_all("td") + # Process HTML in the TR children to derive each object + rec = {} + rec["zone_id"] = tds[0].string diff --git a/python-dns-lexicon-tox-config.patch b/python-dns-lexicon-tox-config.patch index dd22740..039c798 100644 --- a/python-dns-lexicon-tox-config.patch +++ b/python-dns-lexicon-tox-config.patch @@ -1,5 +1,5 @@ diff --git a/pyproject.toml b/pyproject.toml -index d17fecc..be0c6e6 100644 +index 4122ff9..936bbdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,8 +126,7 @@ extend-ignore = [ "E203", "E501" ] @@ -9,6 +9,6 @@ index d17fecc..be0c6e6 100644 -runner = "uv-venv-lock-runner" -with_dev = true +with_dev = false - uv_sync_flags = [ "--python={env_python}" ] # Fix until https://github.com/tox-dev/tox-uv/issues/110 is fixed extras = [ "full" ] setenv.PYTEST_ADDOPTS = "--numprocesses auto" + setenv.PYTHONHASHSEED = "0" diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index 6fc6779..3767c2a 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -1,7 +1,7 @@ %global forgeurl https://github.com/dns-lexicon/dns-lexicon -%global forgeversion 3.20.1 -Version: 3.20.1 +%global forgeversion 3.21.0 +Version: %{forgeversion} %forgemeta %global pypi_name dns-lexicon @@ -20,7 +20,7 @@ Version: 3.20.1 %bcond_without tests Name: python-%{pypi_name} -Release: 2%{?dist} +Release: 1%{?dist} Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way License: MIT @@ -29,6 +29,8 @@ URL: %{forgeurl} Source0: %{forgesource} Source1: create-local-tld-cache.py Patch: python-dns-lexicon-tox-config.patch +# submitted upstream as https://github.com/dns-lexicon/dns-lexicon/pull/29 +Patch2: python-dns-lexicon-findall.patch BuildArch: noarch BuildRequires: python3-devel @@ -227,6 +229,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Sat Apr 19 2025 Felix Schwarz - 3.21.0-1 +- update to 3.21.0 + * Thu Jan 23 2025 Felix Schwarz - 3.20.1-1 - update to 3.20.1 diff --git a/sources b/sources index 305f6a1..cec2b9c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dns-lexicon-3.20.1.tar.gz) = 98a29bc67596e58ada43373fd1dfa2a5c35512dd33924969df0d16c10cf2e53cf2bc564488c9f7a1b682b63a7959cd2073207a8d77435aa62a04f408024d85fd +SHA512 (dns-lexicon-3.21.0.tar.gz) = 1b132fae2741d8cf505c0779724b5e0d518683226099c796f1b77b4ceb07e1fbecccb4d82869be090f2c379b3d17f19766857e49f83760d793a0934f520bc8ed From fb10e373de1b03511419fb3f890a0aa6de0ce876 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Mon, 28 Apr 2025 21:36:13 +0200 Subject: [PATCH 2/6] update to 3.21.1 --- python-dns-lexicon-findall.patch | 44 -------------------------------- python-dns-lexicon.spec | 7 ++--- sources | 2 +- 3 files changed, 5 insertions(+), 48 deletions(-) delete mode 100644 python-dns-lexicon-findall.patch diff --git a/python-dns-lexicon-findall.patch b/python-dns-lexicon-findall.patch deleted file mode 100644 index 39f6497..0000000 --- a/python-dns-lexicon-findall.patch +++ /dev/null @@ -1,44 +0,0 @@ -diff --git a/src/lexicon/_private/providers/easyname.py b/src/lexicon/_private/providers/easyname.py -index 827b9cf..3e6dbb4 100644 ---- a/src/lexicon/_private/providers/easyname.py -+++ b/src/lexicon/_private/providers/easyname.py -@@ -273,7 +273,7 @@ class Provider(BaseProvider): - rec["priority"] = (columns[3].contents[1].string or "").strip() - rec["ttl"] = (columns[4].contents[1].string or "").strip() - rec["id"] = "" -- for a in columns[5].findAll( -+ for a in columns[5].find_all( - "a", class_="button button--transparent" - ): - rec["id"] = int(a["href"].rsplit("/", 1)[-1]) -@@ -367,7 +367,7 @@ class Provider(BaseProvider): - def _is_zone_tr(elm): - return elm.name.lower() == "tr" and (elm.has_attr("class")) - -- rows = dns_table.findAll(_is_zone_tr) -+ rows = dns_table.find_all(_is_zone_tr) - assert rows is not None and rows, "Could not find any DNS entries" - return rows - -diff --git a/src/lexicon/_private/providers/henet.py b/src/lexicon/_private/providers/henet.py -index aed38ec..28e5afa 100644 ---- a/src/lexicon/_private/providers/henet.py -+++ b/src/lexicon/_private/providers/henet.py -@@ -144,7 +144,7 @@ class Provider(BaseProvider): - def is_dns_tr_type(klass): - return klass and re.compile("dns_tr").search(klass) - -- records = html.findAll("tr", class_=is_dns_tr_type) -+ records = html.find_all("tr", class_=is_dns_tr_type) - - # If the tag couldn't be found, error, otherwise, return the value of the tag - if records is None or not records: -@@ -153,7 +153,7 @@ class Provider(BaseProvider): - - new_records = [] - for dns_tr in records: -- tds = dns_tr.findAll("td") -+ tds = dns_tr.find_all("td") - # Process HTML in the TR children to derive each object - rec = {} - rec["zone_id"] = tds[0].string diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index 3767c2a..a282e72 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -1,6 +1,6 @@ %global forgeurl https://github.com/dns-lexicon/dns-lexicon -%global forgeversion 3.21.0 +%global forgeversion 3.21.1 Version: %{forgeversion} %forgemeta @@ -29,8 +29,6 @@ URL: %{forgeurl} Source0: %{forgesource} Source1: create-local-tld-cache.py Patch: python-dns-lexicon-tox-config.patch -# submitted upstream as https://github.com/dns-lexicon/dns-lexicon/pull/29 -Patch2: python-dns-lexicon-findall.patch BuildArch: noarch BuildRequires: python3-devel @@ -229,6 +227,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Mon Apr 28 2025 Felix Schwarz - 3.21.1-1 +- update to 3.21.1 + * Sat Apr 19 2025 Felix Schwarz - 3.21.0-1 - update to 3.21.0 diff --git a/sources b/sources index cec2b9c..490f57d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dns-lexicon-3.21.0.tar.gz) = 1b132fae2741d8cf505c0779724b5e0d518683226099c796f1b77b4ceb07e1fbecccb4d82869be090f2c379b3d17f19766857e49f83760d793a0934f520bc8ed +SHA512 (dns-lexicon-3.21.1.tar.gz) = 0f53001edf2425afe7b7c4315e974ee47c956b659964998b942943788711c57634eea2d7974e21005be7f0edf16800e6577c49c8789e34f2133c4f5be8ac7ac1 From 82f71c1257b29c45274d597f5d7ad7f7ed289411 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 6 Jun 2025 18:00:29 +0200 Subject: [PATCH 3/6] Rebuilt for Python 3.14 --- python-dns-lexicon.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index a282e72..1b1056b 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -20,7 +20,7 @@ Version: %{forgeversion} %bcond_without tests Name: python-%{pypi_name} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way License: MIT @@ -227,6 +227,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Fri Jun 06 2025 Python Maint - 3.21.1-2 +- Rebuilt for Python 3.14 + * Mon Apr 28 2025 Felix Schwarz - 3.21.1-1 - update to 3.21.1 From 9de8403851af075b371c8426c8b35cea82a12eb1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 07:39:27 +0000 Subject: [PATCH 4/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- python-dns-lexicon.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index 1b1056b..a82dbf2 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -20,7 +20,7 @@ Version: %{forgeversion} %bcond_without tests Name: python-%{pypi_name} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way License: MIT @@ -227,6 +227,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 3.21.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jun 06 2025 Python Maint - 3.21.1-2 - Rebuilt for Python 3.14 From 66df8eba2b9b9b82ff987e60998fdb3a77cbad71 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:38:37 +0200 Subject: [PATCH 5/6] Rebuilt for Python 3.14.0rc2 bytecode --- python-dns-lexicon.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index a82dbf2..cf4aa05 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -20,7 +20,7 @@ Version: %{forgeversion} %bcond_without tests Name: python-%{pypi_name} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way License: MIT @@ -227,6 +227,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Fri Aug 15 2025 Python Maint - 3.21.1-4 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 3.21.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 398bc5a3a12b98ee0a76774cf1b424a11f4d9d4f Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 13:11:50 +0200 Subject: [PATCH 6/6] Rebuilt for Python 3.14.0rc3 bytecode --- python-dns-lexicon.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-dns-lexicon.spec b/python-dns-lexicon.spec index cf4aa05..de3d1f0 100644 --- a/python-dns-lexicon.spec +++ b/python-dns-lexicon.spec @@ -20,7 +20,7 @@ Version: %{forgeversion} %bcond_without tests Name: python-%{pypi_name} -Release: 4%{?dist} +Release: 5%{?dist} Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way License: MIT @@ -227,6 +227,9 @@ ln -s lexicon-%{python3_version} lexicon-3 # }}} %changelog +* Fri Sep 19 2025 Python Maint - 3.21.1-5 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 3.21.1-4 - Rebuilt for Python 3.14.0rc2 bytecode