Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 2d7cb4f8ac | |||
| 3b3b8ac339 |
@@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Sep 15 03:02:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Add patch support-dnspython-2.8.0.patch:
|
|
||||||
* Support dnspython 2.8.0 changes.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 2 07:54:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Mon Jun 2 07:54:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-localzone
|
# spec file for package python-localzone
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -22,11 +22,10 @@ Version: 0.9.8
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for managing DNS zones
|
Summary: A library for managing DNS zones
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/ags-slc/localzone
|
URL: https://github.com/ags-slc/localzone
|
||||||
# The PyPI sdist does not provide the tests
|
# The PyPI sdist does not provide the tests
|
||||||
Source: https://github.com/ags-slc/localzone/archive/v%{version}.tar.gz#/localzone-%{version}.tar.gz
|
Source: https://github.com/ags-slc/localzone/archive/v%{version}.tar.gz#/localzone-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#ags-slc/localzone#6
|
|
||||||
Patch0: support-dnspython-2.8.0.patch
|
|
||||||
BuildRequires: %{python_module dnspython}
|
BuildRequires: %{python_module dnspython}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -58,6 +57,6 @@ A simple library for managing DNS zones.
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/localzone
|
%{python_sitelib}/localzone
|
||||||
%{python_sitelib}/localzone-%{version}.dist-info
|
%{python_sitelib}/localzone-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
From 200f4b47187c137340781ba05f3b79738f86ffa1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?=
|
|
||||||
<frenzy.madness@gmail.com>
|
|
||||||
Date: Tue, 9 Sep 2025 13:17:37 +0200
|
|
||||||
Subject: [PATCH] Fix test_zone_add_record_no_content with dnspython 2.8.0
|
|
||||||
|
|
||||||
Fixes: https://github.com/ags-slc/localzone/issues/5
|
|
||||||
---
|
|
||||||
tests/test_models.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_models.py b/tests/test_models.py
|
|
||||||
index 621f6c0..b4e8687 100644
|
|
||||||
--- a/tests/test_models.py
|
|
||||||
+++ b/tests/test_models.py
|
|
||||||
@@ -78,7 +78,7 @@ def test_zone_add_record_unknown_type():
|
|
||||||
|
|
||||||
def test_zone_add_record_no_content():
|
|
||||||
with localzone.manage(ZONEFILE, ORIGIN) as z:
|
|
||||||
- with pytest.raises((AttributeError, DNSSyntaxError)):
|
|
||||||
+ with pytest.raises((AttributeError, DNSSyntaxError, ValueError)):
|
|
||||||
z.add_record("test", "txt", None)
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user