public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David King <amigadave@amigadave.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dbus-python] f45: Update to 1.5.0
Date: Tue, 20 Oct 2026 11:19:42 GMT	[thread overview]
Message-ID: <179249518299.1.16468803152580860176.rpms-dbus-python-2ef0710c088e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/dbus-python
            Branch : f45
            Commit : 2ef0710c088e8f732146ae781fac83856d746d0e
            Author : David King <amigadave@amigadave.com>
            Date   : 2026-10-20T12:08:47+01:00
            Stats  : +16/-139 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/dbus-python/c/2ef0710c088e8f732146ae781fac83856d746d0e?branch=f45

            Log:
            Update to 1.5.0

Reinstate gpg signature verification, with an updated key.

---
diff --git a/.gitignore b/.gitignore
index a73499f..ac7d27f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,5 @@
 /dbus-python-1.3.2.tar.gz
 /dbus-python-1.3.2.tar.gz.asc
 /dbus-python-1.4.0.tar.xz
+/dbus_python-1.5.0.tar.gz
+/dbus_python-1.5.0.tar.gz.asc

diff --git a/Revert-using-Py_TPFLAGS_MANAGED_WEAKREF.patch b/Revert-using-Py_TPFLAGS_MANAGED_WEAKREF.patch
deleted file mode 100644
index 0c039fa..0000000
--- a/Revert-using-Py_TPFLAGS_MANAGED_WEAKREF.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-From 32191526f73fa4ac6f760848c354b1353920755e Mon Sep 17 00:00:00 2001
-From: Karolina Surma <ksurma@redhat.com>
-Date: Wed, 14 Jan 2026 21:45:55 +0100
-Subject: [PATCH] Revert using Py_TPFLAGS_MANAGED_WEAKREF
-
-Added in https://gitlab.freedesktop.org/dbus/dbus-python/-/merge_requests/35
-The feature is incomplete and doesn't work.
----
- dbus_bindings/conn-internal.h |  2 --
- dbus_bindings/conn.c          | 11 -----------
- dbus_bindings/server.c        | 13 -------------
- 3 files changed, 26 deletions(-)
-
-diff --git a/dbus_bindings/conn-internal.h b/dbus_bindings/conn-internal.h
-index ae47816..d333d27 100644
---- a/dbus_bindings/conn-internal.h
-+++ b/dbus_bindings/conn-internal.h
-@@ -42,10 +42,8 @@ typedef struct {
-      */
-     PyObject *object_paths;
- 
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     /* Weak-references list to make Connections weakly referenceable */
-     PyObject *weaklist;
--#endif
- 
-     dbus_bool_t has_mainloop;
- } Connection;
-diff --git a/dbus_bindings/conn.c b/dbus_bindings/conn.c
-index 54efc49..5dd4b5e 100644
---- a/dbus_bindings/conn.c
-+++ b/dbus_bindings/conn.c
-@@ -238,9 +238,7 @@ DBusPyConnection_NewConsumingDBusConnection(PyTypeObject *cls,
-     self->has_mainloop = (mainloop != Py_None);
-     self->conn = NULL;
-     self->filters = PyList_New(0);
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     self->weaklist = NULL;
--#endif
-     if (!self->filters) goto err;
-     self->object_paths = PyDict_New();
-     if (!self->object_paths) goto err;
-@@ -394,9 +392,7 @@ static void Connection_tp_dealloc(Connection *self)
-     /* avoid clobbering any pending exception */
-     PyErr_Fetch(&et, &ev, &etb);
- 
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     if (self->weaklist)
--#endif
-     {
-         PyObject_ClearWeakRefs((PyObject *)self);
-     }
-@@ -460,19 +456,12 @@ PyTypeObject DBusPyConnection_Type = {
-     0,                      /*tp_getattro*/
-     0,                      /*tp_setattro*/
-     0,                      /*tp_as_buffer*/
--#if DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
--    Py_TPFLAGS_MANAGED_WEAKREF |
--#endif
-     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
-     Connection_tp_doc,      /*tp_doc*/
-     0,                      /*tp_traverse*/
-     0,                      /*tp_clear*/
-     0,                      /*tp_richcompare*/
--#if DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
--    0,                      /*tp_weaklistoffset*/
--#else
-     offsetof(Connection, weaklist),   /*tp_weaklistoffset*/
--#endif
-     0,                      /*tp_iter*/
-     0,                      /*tp_iternext*/
-     DBusPyConnection_tp_methods,  /*tp_methods*/
-diff --git a/dbus_bindings/server.c b/dbus_bindings/server.c
-index d250a1d..9382fe6 100644
---- a/dbus_bindings/server.c
-+++ b/dbus_bindings/server.c
-@@ -38,10 +38,8 @@ typedef struct {
-     /* The Connection subtype for which this Server is a factory */
-     PyObject *conn_class;
- 
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     /* Weak-references list to make server weakly referenceable */
-     PyObject *weaklist;
--#endif
- 
-     PyObject *mainloop;
- } Server;
-@@ -425,9 +423,7 @@ Server_tp_new(PyTypeObject *cls, PyObject *args, PyObject *kwargs)
-         return NULL;
-     }
- 
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     ((Server *)self)->weaklist = NULL;
--#endif
-     TRACE(self);
- 
-     return self;
-@@ -442,9 +438,7 @@ static void Server_tp_dealloc(Server *self)
-     /* avoid clobbering any pending exception */
-     PyErr_Fetch(&et, &ev, &etb);
- 
--#if !DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
-     if (self->weaklist)
--#endif
-     {
-         PyObject_ClearWeakRefs((PyObject *)self);
-     }
-@@ -577,19 +571,12 @@ PyTypeObject DBusPyServer_Type = {
-     0,                      /*tp_getattro*/
-     0,                      /*tp_setattro*/
-     0,                      /*tp_as_buffer*/
--#if DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
--    Py_TPFLAGS_MANAGED_WEAKREF |
--#endif
-     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
-     Server_tp_doc,          /*tp_doc*/
-     0,                      /*tp_traverse*/
-     0,                      /*tp_clear*/
-     0,                      /*tp_richcompare*/
--#if DBUSPY_PY_VERSION_AT_LEAST(3, 12, 0, 0)
--    0,                      /*tp_weaklistoffset*/
--#else
-     offsetof(Server, weaklist),   /*tp_weaklistoffset*/
--#endif
-     0,                      /*tp_iter*/
-     0,                      /*tp_iternext*/
-     DBusPyServer_tp_methods,/*tp_methods*/
--- 
-2.52.0
-

diff --git a/dbus-python.spec b/dbus-python.spec
index 43303d0..8c238a5 100644
--- a/dbus-python.spec
+++ b/dbus-python.spec
@@ -1,16 +1,19 @@
+%define srcname dbus_python
+
 Name:    dbus-python
-Version: 1.4.0
+Version: 1.5.0
 Release: %autorelease
 Summary: D-Bus Python Bindings
 
 License: MIT
 URL:     http://www.freedesktop.org/wiki/Software/DBusBindings/
-Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.xz
-
-# Compatibility with Python 3.15
-# https://gitlab.freedesktop.org/dbus/dbus-python/-/work_items/59
-Patch:   Revert-using-Py_TPFLAGS_MANAGED_WEAKREF.patch
+Source0: http://dbus.freedesktop.org/releases/dbus-python/%{srcname}-%{version}.tar.gz
+Source1: http://dbus.freedesktop.org/releases/dbus-python/%{srcname}-%{version}.tar.gz.asc
+# gpg --keyserver keyring.debian.org --recv-keys 7A073AD1AE694FA25BFF62E5235C099D3EB33076
+# gpg --export --export-options export-minimal > gpgkey-7A073AD1AE694FA25BFF62E5235C099D3EB33076.gpg
+Source2: gpgkey-7A073AD1AE694FA25BFF62E5235C099D3EB33076.gpg
 
+BuildRequires: gnupg2
 BuildRequires: pkgconfig(dbus-1)
 BuildRequires: pkgconfig(glib-2.0)
 # for %%check
@@ -47,7 +50,8 @@ Headers and static libraries for hooking up custom mainloops to the dbus python
 bindings.
 
 %prep
-%autosetup -p1
+%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%autosetup -p1 -n %{srcname}-%{version}
 
 %build
 %meson
@@ -68,7 +72,7 @@ bindings.
 %{python3_sitearch}/dbus_python*egg-info
 
 %files devel
-%doc README ChangeLog doc/API_CHANGES.txt doc/tutorial.txt
+%doc README doc/API_CHANGES.txt doc/tutorial.txt
 %{_includedir}/dbus-1.0/dbus/dbus-python.h
 %{_libdir}/pkgconfig/dbus-python.pc
 

diff --git a/gpgkey-36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F.gpg b/gpgkey-36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F.gpg
deleted file mode 100644
index eb3bc76..0000000
Binary files a/gpgkey-36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F.gpg and /dev/null differ

diff --git a/gpgkey-7A073AD1AE694FA25BFF62E5235C099D3EB33076.gpg b/gpgkey-7A073AD1AE694FA25BFF62E5235C099D3EB33076.gpg
new file mode 100644
index 0000000..331ab48
Binary files /dev/null and b/gpgkey-7A073AD1AE694FA25BFF62E5235C099D3EB33076.gpg differ

diff --git a/sources b/sources
index 0ce94e9..fe0070e 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (dbus-python-1.4.0.tar.xz) = defd5fba8348635ce52654b7e93e6cacf52966f6facfb7bb04fc77f2f82129e0b7673d4f3d483ef3321985172987d8c3265b27b9200c68c39c729567ffa21456
+SHA512 (dbus_python-1.5.0.tar.gz) = f2de006030df74490df808ed5fe3041a1a0a97ff3ee3d38ecf9e8bd271487d7eca6c1dcd134c646aad0dd4bab7329d7b308ed3045d7e7d8fb3a5e36e1c5507ce
+SHA512 (dbus_python-1.5.0.tar.gz.asc) = 590be0e88520252ca4cdf6312a104c1e8414f6f829021b760a5a04ecefc131d5757779bb5c2006515d546686117d84e83269d73de213e89e3d6cba6e91e38bfe

                 reply	other threads:[~2026-10-20 11:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179249518299.1.16468803152580860176.rpms-dbus-python-2ef0710c088e@fedoraproject.org \
    --to=amigadave@amigadave.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox