diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..223c637 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + test + + diff --git a/python-dbusmock-0.32.1.tar.gz b/python-dbusmock-0.32.1.tar.gz deleted file mode 100644 index 5bb361b..0000000 --- a/python-dbusmock-0.32.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f02c34493d420b3cf2d8d341b79a60841593b7b7615adc3ece17ff86f8275924 -size 104265 diff --git a/python-python-dbusmock.changes b/python-python-dbusmock.changes index 8985909..634f788 100644 --- a/python-python-dbusmock.changes +++ b/python-python-dbusmock.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Fri Jan 24 10:18:03 UTC 2025 - Joan Torres + +- Update to 0.34.2: + * spec: Adjust %autosetup to PEP-625 tarball top-level directory +- Update to 0.34.1: + * spec: Adjust Source URL to PEP-625 tarball name +- Update to 0.34.0: + * modemmanager: Add cell broadcast messages (thanks Guido Günther) + * Move release builds to pybuild for PEP-625 compatibility + +------------------------------------------------------------------- +Thu Jan 23 09:28:08 UTC 2025 - Joan Torres + +- Update to 0.33.0: + * templates: Add gsd-rfkill (thanks Guido Günther) + * Allow adding objects derived from DBusMockObject (thanks Sebastian Wick) + * Drop Python <= 3.7 support (thanks Tomasz Kłoczko) +- Update to 0.32.2: + * all templates: Drop wrong variant wrapping from all properties + * tests: Skip TestNetworkManager::test_one_wifi_with_accesspoints + with NM ≥ 1.49.3 + +------------------------------------------------------------------- +Thu Nov 14 13:49:18 UTC 2024 - Dominique Leuenberger + +- Split test suite off into a 2nd flavor (:test) to avoid + buildcycle polkit -> upower -> python-dbusmock + +------------------------------------------------------------------- +Mon Oct 28 08:44:27 UTC 2024 - Dominique Leuenberger + +- Replace dbus-1-x11 Requires with /usr/bin/dbus=daemon: this + matches what the code actully uses and ensures we do not rely on + legacy packages as good as possile. + ------------------------------------------------------------------- Sun Aug 18 17:06:33 UTC 2024 - Dirk Müller diff --git a/python-python-dbusmock.spec b/python-python-dbusmock.spec index 0b9c000..0044a74 100644 --- a/python-python-dbusmock.spec +++ b/python-python-dbusmock.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-dbusmock # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,25 +16,39 @@ # -Name: python-python-dbusmock -Version: 0.32.1 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-python-dbusmock%{psuffix} +Version: 0.34.2 Release: 0 Summary: Python library for creating mock D-Bus objects License: LGPL-3.0-or-later URL: https://github.com/martinpitt/python-dbusmock -Source: https://files.pythonhosted.org/packages/source/p/python-dbusmock/python-dbusmock-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/python-dbusmock/python_dbusmock-%{version}.tar.gz BuildRequires: %{python_module dbus-python} BuildRequires: %{python_module gobject} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: dbus-1-daemon BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRequires: upower BuildRequires: pkgconfig(gobject-introspection-1.0) -Requires: dbus-1-x11 +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dbusmock = %{version}} +BuildRequires: dbus-1-daemon +BuildRequires: upower +%endif +#/ SECTION +Requires: /usr/bin/dbus-daemon Requires: python-dbus-python Requires: python-gobject Provides: python-dbusmock = %{version} @@ -52,22 +66,28 @@ such as upower, systemd, logind, gnome-session or others, and it is hard to what one may expect in tests. %prep -%autosetup -p1 -n python-dbusmock-%{version} +%autosetup -p1 -n python_dbusmock-%{version} %build %pyproject_wheel %install +%if !%{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} %pytest +%endif +%if !%{with test} %files %{python_files} %license COPYING %doc NEWS README.md %{python_sitelib}/dbusmock %{python_sitelib}/python_dbusmock-%{version}*-info +%endif %changelog diff --git a/python_dbusmock-0.34.2.tar.gz b/python_dbusmock-0.34.2.tar.gz new file mode 100644 index 0000000..2743293 --- /dev/null +++ b/python_dbusmock-0.34.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69c3137f15d3397846fd4aeb2e7f41289aa4c7dc2a894502225186d1fcb396ec +size 111535