commit 44834bfe251e26aa5ca29be842773b448bf2d7ef30cf073fcce1b162fe265e40 Author: Steve Kowalik Date: Mon Sep 15 03:03:32 2025 +0000 - Add patch support-dnspython-2.8.0.patch: * Support dnspython 2.8.0 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-localzone?expand=0&rev=20 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/localzone-0.9.8.tar.gz b/localzone-0.9.8.tar.gz new file mode 100644 index 0000000..12df2fc --- /dev/null +++ b/localzone-0.9.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ef39de76dc59a0c6c13ae85fe85bf3a58323cab568b47cb51b435d42a1d39e6 +size 28102 diff --git a/python-localzone.changes b/python-localzone.changes new file mode 100644 index 0000000..dc82d6b --- /dev/null +++ b/python-localzone.changes @@ -0,0 +1,70 @@ +------------------------------------------------------------------- +Mon Sep 15 03:02:51 UTC 2025 - Steve Kowalik + +- 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á + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Jul 1 09:07:15 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sat Jan 7 23:06:36 UTC 2023 - Dirk Müller + +- update to 0.9.8: + * Support dnspython 2.1. +- drop localzone-dnspython-2.1.patch (upstream) + +------------------------------------------------------------------- +Mon Jan 18 14:00:08 UTC 2021 - Benjamin Greiner + +- Update to version 0.9.7 + * Support dnspython 2. +- Add localzone-dnspython-2.1.patch gh#ags-slc/localzone#3 + +------------------------------------------------------------------- +Wed Apr 15 09:17:57 UTC 2020 - pgajdos@suse.com + +- version update to 0.9.6 + - Minor documentation change for PyPI +- use pytest macro + +------------------------------------------------------------------- +Fri Apr 12 08:25:55 UTC 2019 - Tomáš Chvátal + +- Do not use pytest macro as this goes to leap and the macros + update is not yet processed + +------------------------------------------------------------------- +Mon Mar 18 10:44:32 UTC 2019 - Tomáš Chvátal + +- Update to 0.9.5: + * Support dnspython 1.16.0. + * Add tox config. + +------------------------------------------------------------------- +Fri Dec 7 11:59:56 UTC 2018 - Tomáš Chvátal + +- Switch to github tarball to run tests + +------------------------------------------------------------------- +Tue Dec 4 14:19:36 UTC 2018 - Matej Cepl + +- Fix License: tag + +------------------------------------------------------------------- +Tue Dec 4 12:50:04 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Nov 16 12:02:42 UTC 2018 - John Paul Adrian Glaubitz + +- Initial build + + Version 0.9.4 diff --git a/python-localzone.spec b/python-localzone.spec new file mode 100644 index 0000000..a93725c --- /dev/null +++ b/python-localzone.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-localzone +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-localzone +Version: 0.9.8 +Release: 0 +Summary: A library for managing DNS zones +License: BSD-3-Clause +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} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-dnspython +BuildArch: noarch +%python_subpackages + +%description +A simple library for managing DNS zones. + +%prep +%autosetup -p1 -n localzone-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/localzone +%{python_sitelib}/localzone-%{version}.dist-info + +%changelog diff --git a/support-dnspython-2.8.0.patch b/support-dnspython-2.8.0.patch new file mode 100644 index 0000000..f236374 --- /dev/null +++ b/support-dnspython-2.8.0.patch @@ -0,0 +1,24 @@ +From 200f4b47187c137340781ba05f3b79738f86ffa1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?= + +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) + +