forked from pool/python-localzone
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9542dae7a4 | |||
| 44834bfe25 | |||
| 0058630c17 | |||
| 8dd5d41e52 |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-localzone
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,10 +22,11 @@ Version: 0.9.8
|
||||
Release: 0
|
||||
Summary: A library for managing DNS zones
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ags-slc/localzone
|
||||
# The PyPI sdist does not provide the tests
|
||||
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 pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -57,6 +58,6 @@ A simple library for managing DNS zones.
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/localzone
|
||||
%{python_sitelib}/localzone-%{version}*-info
|
||||
%{python_sitelib}/localzone-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
24
support-dnspython-2.8.0.patch
Normal file
24
support-dnspython-2.8.0.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
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