public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python3-mallard-ducktype] rawhide: Change way of using namespaces to be Python 3.14+ compatible
@ 2026-07-28 11:30 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-07-28 11:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python3-mallard-ducktype
Branch : rawhide
Commit : 0c03cae37aaace3420a06e3ce72a93d040d9668c
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-07-27T17:38:25-04:00
Stats : +62/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python3-mallard-ducktype/c/0c03cae37aaace3420a06e3ce72a93d040d9668c?branch=rawhide
Log:
Change way of using namespaces to be Python 3.14+ compatible
https://github.com/projectmallard/mallard-ducktype/pull/22
---
diff --git a/22.patch b/22.patch
new file mode 100644
index 0000000..0269c5b
--- /dev/null
+++ b/22.patch
@@ -0,0 +1,59 @@
+From c47bf4cf1380860d5d16b00b738d5d58f8bebbeb Mon Sep 17 00:00:00 2001
+From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
+Date: Wed, 15 Jul 2026 11:30:16 +0200
+Subject: [PATCH] Change way of using namespaces to be Python 3.14+ compatible
+
+Maybe use of older setuptools would be enough but why bother with when
+code can be altered to work.
+---
+ mallard/ducktype/extensions/__init__.py | 2 --
+ mallard/ducktype/extensions/_test.py | 2 +-
+ setup.py | 5 +++--
+ 3 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/mallard/ducktype/extensions/__init__.py b/mallard/ducktype/extensions/__init__.py
+index 1e3a4b5..f542594 100644
+--- a/mallard/ducktype/extensions/__init__.py
++++ b/mallard/ducktype/extensions/__init__.py
+@@ -17,5 +17,3 @@
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ # THE SOFTWARE.
+-
+-__import__('pkg_resources').declare_namespace(__name__)
+diff --git a/mallard/ducktype/extensions/_test.py b/mallard/ducktype/extensions/_test.py
+index 8cd8431..9c32e5c 100644
+--- a/mallard/ducktype/extensions/_test.py
++++ b/mallard/ducktype/extensions/_test.py
+@@ -30,7 +30,7 @@
+ # and tries to instantiate every ParserExtension subclass in it. It doesn't matter
+ # what you name your classes.
+
+-class TestExtension(mallard.ducktype.parser.ParserExtension):
++class DucktypeTestExtension(mallard.ducktype.parser.ParserExtension):
+ def __init__(self, parser, prefix, version):
+ # Usually you'd use this to specify a version to make sure this code is
+ # compatible with what the document expects. In this case, though, we're
+diff --git a/setup.py b/setup.py
+index 9294e9b..8be334f 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,10 +1,10 @@
+-from setuptools import setup
++from setuptools import setup, find_namespace_packages
+
+ setup(
+ name='mallard-ducktype',
+ version='1.0.2',
+ description='Parse Ducktype files and convert them to Mallard.',
+- packages=['mallard', 'mallard.ducktype', 'mallard.ducktype.extensions'],
++ packages=find_namespace_packages(include=['mallard*']),
+ scripts=['bin/ducktype'],
+ author='Shaun McCance',
+ author_email='shaunm@gnome.org',
+@@ -24,4 +24,5 @@
+ 'Topic :: Text Processing :: Markup :: XML',
+ 'License :: OSI Approved :: MIT License',
+ ],
++ python_requires='>=3.6',
+ )
diff --git a/python3-mallard-ducktype.spec b/python3-mallard-ducktype.spec
index d81328f..8a117c4 100644
--- a/python3-mallard-ducktype.spec
+++ b/python3-mallard-ducktype.spec
@@ -9,6 +9,8 @@ License: MIT
URL: https://pypi.python.org/pypi/%{srcname}
# The PyPI tarball does not have AUTHORS or COPYING.
Source0: https://github.com/projectmallard/%{srcname}/archive/%{version}/%{version}.tar.gz
+# Change way of using namespaces to be Python 3.14+ compatible
+Patch0: https://github.com/projectmallard/mallard-ducktype/pull/22.patch
BuildArch: noarch
BuildRequires: python3-devel
@@ -49,6 +51,7 @@ popd
%changelog
* Mon Jul 27 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.0.2-30
- Convert to pyproject macros
+- Change way of using namespaces to be Python 3.14+ compatible
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-28 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-28 11:30 [rpms/python3-mallard-ducktype] rawhide: Change way of using namespaces to be Python 3.14+ compatible Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox