commit efaf0d32b6c6f0b697a99d16632944e196c09aea89f64722b030c0d150945bcc Author: Adrian Schröter Date: Fri May 3 22:35:02 2024 +0200 Sync from SUSE:SLFO:Main python-python-dbusmock revision 30d9f07fc943ce5c93022cf73bcfa350 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/python-dbusmock-0.24.1.tar.gz b/python-dbusmock-0.24.1.tar.gz new file mode 100644 index 0000000..4096743 --- /dev/null +++ b/python-dbusmock-0.24.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56d660bd5f5d0edfe8b0eedfbb9b0814a134eb94b46fca16c379dca68be5724f +size 85781 diff --git a/python-python-dbusmock.changes b/python-python-dbusmock.changes new file mode 100644 index 0000000..3b18efe --- /dev/null +++ b/python-python-dbusmock.changes @@ -0,0 +1,165 @@ +------------------------------------------------------------------- +Tue Apr 25 07:55:14 UTC 2023 - Daniel Garcia + +- Removed not needed sle15modernpython macro + +------------------------------------------------------------------- +Wed Apr 12 10:15:46 UTC 2023 - Matej Cepl + +- Switch to pyproject_* +- Add missing BR on python-gobject. + +------------------------------------------------------------------- +Mon Dec 13 04:35:29 UTC 2021 - Steve Kowalik + +- Update to 0.24.1: + * Do not register standard D-Bus service directories (Thanks Benjamin Berg) + * templates: Add IIO Sensors Proxy support (Thanks Marco Trevisan) + * Fix importlib module import (Thanks Marco Trevisan) + * Clean up code for most recent pylint version + * Add Add power-profiles-daemon template (Thanks Bastien Nocera) + * logind: Implement Inhibit and ListInhibitors (Thanks to Benjamin Berg) + * Fix new complaints from pylint 2.9 + * Fix tests for Python 3.10 + * DBusMockObject: Add UpdateProperties() method (Thanks to Jonas Ådahl) + * DBusTestCase: Add bus override argument to spawn_server_template, to use + templates on either system or session bus; add corresponding --session CLI + option + * bluez template: Implement Pair() method on the Device interface and the + AgentManager1 interface (Thanks to Bastien Nocera) + * polkit template: Implement RegisterAuthenticationAgent() (Thanks to + Jonas Ådahl) + * Add accountsservice template (Thanks to Marco Trevisan) + * NetworkManager template: Fix connecting to wifi + * NetworkManager template: Add Reload() method + * tests: Replace nose test runner with standard unittest + * setup.py: Drop deprecated `test_suite`, run tests through + `python3 -m unittest` directly + * Add type annotations to the whole API + * Drop obsolete ConsoleKit and bluez4 templates/tests + * upower template: Drop support for 0.9 API + * NetworkManager template: Handle NetworkingEnable + * NetworkManager template: AddConnectionUnsaved + * Drop support for Python 2 +- Add python-dataclasses to {Build,}Requires + +------------------------------------------------------------------- +Fri Mar 20 13:02:15 UTC 2020 - pgajdos@suse.com + +- version update to 0.19 + - NetworkManager template: Add "StateReason" property and active connection ID + - Add low-memory-monitor template + +------------------------------------------------------------------- +Thu Mar 12 08:08:21 UTC 2020 - Tomáš Chvátal + +- Do not pull in py2 on python3 subpkg + +------------------------------------------------------------------- +Tue Feb 4 08:18:20 UTC 2020 - Dominique Leuenberger + +- Require python-dbus-python: dbusmock can't work without this + module. + +------------------------------------------------------------------- +Mon Oct 21 09:50:55 UTC 2019 - Tomáš Chvátal + +- Update to 0.18.3: + - Fix timeouts for loaded machines and parallel tests + - Fix tests for Python 3.8 + +------------------------------------------------------------------- +Wed Jan 9 22:19:11 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. Trim description, it is not a manual. + +------------------------------------------------------------------- +Mon Jan 7 11:19:02 UTC 2019 - bjorn.lie@gmail.com + +- Update URL to new home: + * https://github.com/martinpitt/python-dbusmock + +------------------------------------------------------------------- +Mon Jan 7 10:42:02 UTC 2019 - Tomáš Chvátal + +- Remove test condition +- Use %license macro + +------------------------------------------------------------------- +Mon Jan 7 10:12:31 UTC 2019 - bjorn.lie@gmail.com + +- Update to version 0.18.1: + * test: Fix failures with systemd 239 in chroots +- Changes from version 0.18: + * logind template: Add support for suspend-then-hibernate + * NetworkManager template: Add GetConnectionByUuid method + * bluez template: Add PairDevice() 'class_' parameter + * Fix logging of unicode strings in Python 2 + * Adjust logind and timedated tests to systemd 239 +- Changes from version 0.17.2: + * NetworkManager template: Add GetDeviceByIpIface() + * Move release tarballs from Launchpad to + + remains as usual +- Changes from version 0.17.1: + * Fix NetworkManager tests due to name changes from + 802-11-wireless to wifi +- Changes from version 0.17: + * Call dbus-daemon directly instead of dbus-launch + * Fix DBusTestCase.stop_dbus() to actually enforce a timeout + + Fix test_timedated for changed timedatectl output format in + systemd 235. + +------------------------------------------------------------------- +Tue Nov 14 20:00:48 UTC 2017 - toddrme2178@gmail.com + +- Provide/obsolete python-dbusmock + +------------------------------------------------------------------- +Wed Oct 18 16:42:48 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Rename to python-python-dbusmock to conform to python package + naming rules +- Update to version 0.16.9 + * See changelog at https://github.com/martinpitt/python-dbusmock/blob/0.16.9/NEWS + +------------------------------------------------------------------- +Sat Mar 5 13:34:34 UTC 2016 - sor.alexei@meowr.ru + +- Update to 0.16.3 (changes since 0.16.1): + * NetworkManager template: Fix connection settings Updated signal + emitted by wrong object. + * NetworkManager template: Handle empty device at connection + activation. + * NetworkManager template: Implement secrets management in + settings. + * NetworkManager template test: Make the test run standalone. + +------------------------------------------------------------------- +Sat Oct 31 10:21:56 UTC 2015 - sor.alexei@meowr.ru + +- Update to 0.16.1 (changes since 0.15.2): + * NetworkManager template: Add missing properties to ethernet + device and active connection. + * Quiesce irrelevant PEP-8 errors with pep8 1.6. + * NetworkManager template: Generate a new unused name in + connection activation instead of just using the access point + name. + * Allow the passing of template parameters via the command-line + as JSON strings. + * NetworkManager template: Fix indexing bug in + SettingsAddConnection. + +------------------------------------------------------------------- +Wed Aug 5 05:22:32 UTC 2015 - sor.alexei@meowr.ru + +- Update to 0.15.2: + * test_ofono: Do not check "private" fields. + * timedated template: Add NTPSynchronized property and set it in + SetNTP(). + +------------------------------------------------------------------- +Sun Jun 7 12:12:45 UTC 2015 - sor.alexei@meowr.ru + +- Initial package. diff --git a/python-python-dbusmock.spec b/python-python-dbusmock.spec new file mode 100644 index 0000000..12ef0a8 --- /dev/null +++ b/python-python-dbusmock.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-python-dbusmock +# +# Copyright (c) 2023 SUSE LLC +# +# 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/ +# + + +Name: python-python-dbusmock +Version: 0.24.1 +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 +BuildRequires: %{python_module dbus-python} +BuildRequires: %{python_module gobject} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(gobject-introspection-1.0) +Requires: dbus-1-x11 +Requires: python-dbus-python +Requires: python-gobject +Provides: python-dbusmock = %{version} +BuildArch: noarch +%if %python_version_nodots < 37 +Requires: python-dataclasses +%endif +%python_subpackages + +%description +With this program/Python library, one can create mock objects on D-Bus. +This is useful for writing tests for software which talks to D-Bus services +such as upower, systemd, logind, gnome-session or others, and it is hard +(or impossible without root privileges) to set the state of the real services +to what one may expect in tests. + +%prep +%autosetup -p1 -n python-dbusmock-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license COPYING +%doc NEWS README.rst +%{python_sitelib}/dbusmock +%{python_sitelib}/python_dbusmock-%{version}*-info + +%changelog