diff --git a/.files b/.files
index 067d957..c3d493e 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index b40d643..b696274 100644
--- a/.rev
+++ b/.rev
@@ -70,4 +70,21 @@
1043076
+
+ 44ce60dda84989f5b289e3823b6e03d8
+ 3.4.1
+
+ anag+factory
+ - use pyproject_wheel to build
+- skip broken tests with python 3.12
+- Update to 3.4.1:
+ * This is just a minor bugfix release to fix CI.
+- 3.4.0:
+ * Mirror the message priority in the headers (eba336b)
+- 3.3.0:
+ * Add support for asyncio-based callbacks in the consumer. As a
+ consequence, the Twisted reactor used by the CLI is now asyncio.
+ (#282)
+ 1154722
+
diff --git a/fedora-messaging-3.4.1.tar.gz b/fedora-messaging-3.4.1.tar.gz
new file mode 120000
index 0000000..de8da16
--- /dev/null
+++ b/fedora-messaging-3.4.1.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafkreibjcavvlimmveg7juvpiuesu2kjzy7cojwopvl7g7wj2jxk67lway
\ No newline at end of file
diff --git a/fedora_messaging-3.2.0.tar.gz b/fedora_messaging-3.2.0.tar.gz
deleted file mode 120000
index 23e173b..0000000
--- a/fedora_messaging-3.2.0.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafkreihxpaumlnkhe265alhlh3c3fwjficidu56s6x5cul4ehej4zbr3fy
\ No newline at end of file
diff --git a/python-fedora-messaging.changes b/python-fedora-messaging.changes
index 47c71d4..406575b 100644
--- a/python-fedora-messaging.changes
+++ b/python-fedora-messaging.changes
@@ -1,4 +1,18 @@
-------------------------------------------------------------------
+Mon Mar 4 14:50:05 UTC 2024 - Daniel Garcia
+
+- use pyproject_wheel to build
+- skip broken tests with python 3.12
+- Update to 3.4.1:
+ * This is just a minor bugfix release to fix CI.
+- 3.4.0:
+ * Mirror the message priority in the headers (eba336b)
+- 3.3.0:
+ * Add support for asyncio-based callbacks in the consumer. As a
+ consequence, the Twisted reactor used by the CLI is now asyncio.
+ (#282)
+
+-------------------------------------------------------------------
Thu Dec 15 09:16:19 UTC 2022 - Daniel Garcia
- Remove python_module macro definition
diff --git a/python-fedora-messaging.spec b/python-fedora-messaging.spec
index 68c1607..c04d47c 100644
--- a/python-fedora-messaging.spec
+++ b/python-fedora-messaging.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-fedora-messaging
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,15 @@
Name: python-fedora-messaging
-Version: 3.2.0
+Version: 3.4.1
Release: 0
Summary: Python tools for Fedora's messaging infrastructure
License: GPL-2.0-or-later
URL: https://github.com/fedora-infra/fedora-messaging
-Source: https://files.pythonhosted.org/packages/source/f/fedora_messaging/fedora_messaging-%{version}.tar.gz
+Source: https://github.com/fedora-infra/fedora-messaging/archive/refs/tags/v%{version}.tar.gz#/fedora-messaging-%{version}.tar.gz
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Twisted
@@ -35,7 +37,8 @@ Requires: python-pika >= 1.0.1
Requires: python-pyOpenSSL
Requires: python-pytz
Requires: python-service_identity
-Requires: python-toml
+Requires: python-setuptools
+Requires: python-tomli
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Sphinx}
@@ -47,29 +50,31 @@ BuildRequires: %{python_module crochet}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module pika >= 1.0.1}
BuildRequires: %{python_module pyOpenSSL}
+BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-twisted}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module service_identity}
-BuildRequires: %{python_module toml}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module tomli}
BuildRequires: %{python_module towncrier}
BuildRequires: %{python_module treq}
# /SECTION
Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
%python_subpackages
%description
A set of Python tools for using Fedora's messaging infrastructure.
%prep
-%setup -q -n fedora_messaging-%{version}
+%autosetup -p1 -n fedora-messaging-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/fedora-messaging
%{python_expand rm -r %{buildroot}%{$python_sitelib}/fedora_messaging/tests/
%fdupes %{buildroot}%{$python_sitelib}
@@ -85,11 +90,21 @@ A set of Python tools for using Fedora's messaging infrastructure.
export PATH=$PATH:%{buildroot}%{_bindir}
export PYTHONDONTWRITEBYTECODE=1
export LANG=en_US.UTF-8
-# https://github.com/fedora-infra/fedora-messaging/issues/255
-sed -i 's:. Perhaps you forgot a comma?::' fedora_messaging/tests/unit/test_cli.py
-# test_consume_unexpected_crash or test_consume_successful_halt are intermittent
-# and only relevant for improved handling of an unexpected failure/halt
-%pytest -k 'not (test_consume_unexpected_crash or test_consume_successful_halt)'
+# to avoid import collision
+pushd fedora_messaging
+# Tests that fails on python 3.12 because unittest.mock
+donttest="test_bindings_dict"
+donttest+=" or test_bindings_list_of_dict"
+donttest+=" or test_defaults"
+donttest+=" or test_with_queues"
+donttest+=" or test_wrap_bindings"
+donttest+=" or test_app_name"
+donttest+=" or test_callable_getattr_failure"
+donttest+=" or test_cli_callable_import_failure_cli_opt"
+donttest+=" or test_cli_callable_wrong_format"
+donttest+=" or test_missing_cli_and_conf_callable"
+%pytest -k "not ($donttest)" tests/unit
+popd
%files %{python_files}
%doc README.rst