Hello community, here is the log from the commit of package python-SecretStorage for openSUSE:Factory checked in at 2020-11-29 12:19:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-SecretStorage (Old) and /work/SRC/openSUSE:Factory/.python-SecretStorage.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SecretStorage" Sun Nov 29 12:19:22 2020 rev:9 rq:850937 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-SecretStorage/python-SecretStorage.changes 2020-04-19 21:49:39.988104445 +0200 +++ /work/SRC/openSUSE:Factory/.python-SecretStorage.new.5913/python-SecretStorage.changes 2020-11-29 12:19:26.709457032 +0100 @@ -1,0 +2,7 @@ +Thu Nov 26 09:15:35 UTC 2020 - Dirk Mueller <dmuel...@suse.com> + +- update to 3.2.0: + * Added helper function ``check_service_availability`` for checking if the + Secret Service daemon is available without using it. + +------------------------------------------------------------------- Old: ---- SecretStorage-3.1.2.tar.gz New: ---- SecretStorage-3.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-SecretStorage.spec ++++++ --- /var/tmp/diff_new_pack.eLDYgK/_old 2020-11-29 12:19:27.209457538 +0100 +++ /var/tmp/diff_new_pack.eLDYgK/_new 2020-11-29 12:19:27.209457538 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-SecretStorage -Version: 3.1.2 +Version: 3.2.0 Release: 0 Summary: Python bindings to FreeDesktoporg Secret Service API License: BSD-3-Clause ++++++ SecretStorage-3.1.2.tar.gz -> SecretStorage-3.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/PKG-INFO new/SecretStorage-3.2.0/PKG-INFO --- old/SecretStorage-3.1.2/PKG-INFO 2020-01-08 17:47:57.000000000 +0100 +++ new/SecretStorage-3.2.0/PKG-INFO 2020-11-07 18:45:07.085436800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: SecretStorage -Version: 3.1.2 +Version: 3.2.0 Summary: Python bindings to FreeDesktop.org Secret Service API Home-page: https://github.com/mitya57/secretstorage Author: Dmitry Shachnev @@ -104,6 +104,7 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Security Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/SecretStorage.egg-info/PKG-INFO new/SecretStorage-3.2.0/SecretStorage.egg-info/PKG-INFO --- old/SecretStorage-3.1.2/SecretStorage.egg-info/PKG-INFO 2020-01-08 17:47:57.000000000 +0100 +++ new/SecretStorage-3.2.0/SecretStorage.egg-info/PKG-INFO 2020-11-07 18:45:06.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: SecretStorage -Version: 3.1.2 +Version: 3.2.0 Summary: Python bindings to FreeDesktop.org Secret Service API Home-page: https://github.com/mitya57/secretstorage Author: Dmitry Shachnev @@ -104,6 +104,7 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Security Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/SecretStorage.egg-info/requires.txt new/SecretStorage-3.2.0/SecretStorage.egg-info/requires.txt --- old/SecretStorage-3.1.2/SecretStorage.egg-info/requires.txt 2020-01-08 17:47:57.000000000 +0100 +++ new/SecretStorage-3.2.0/SecretStorage.egg-info/requires.txt 2020-11-07 18:45:06.000000000 +0100 @@ -1,2 +1,2 @@ -cryptography +cryptography>=2.0 jeepney>=0.4.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/changelog new/SecretStorage-3.2.0/changelog --- old/SecretStorage-3.1.2/changelog 2020-01-08 17:27:21.000000000 +0100 +++ new/SecretStorage-3.2.0/changelog 2020-11-07 18:35:56.000000000 +0100 @@ -1,3 +1,9 @@ +SecretStorage 3.2.0, 2020-11-07 +=============================== + +* Added helper function ``check_service_availability`` for checking if the + Secret Service daemon is available without using it. + SecretStorage 3.1.2, 2020-01-08 =============================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/docs/conf.py new/SecretStorage-3.2.0/docs/conf.py --- old/SecretStorage-3.1.2/docs/conf.py 2020-01-08 17:36:16.000000000 +0100 +++ new/SecretStorage-3.2.0/docs/conf.py 2020-11-07 18:36:26.000000000 +0100 @@ -24,16 +24,16 @@ # General information about the project. project = 'SecretStorage' -copyright = '2018, Dmitry Shachnev' +copyright = '2020, Dmitry Shachnev' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '3.1' +version = '3.2' # The full version, including alpha/beta/rc tags. -release = '3.1.2' +release = '3.2.0' # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/docs/index.rst new/SecretStorage-3.2.0/docs/index.rst --- old/SecretStorage-3.1.2/docs/index.rst 2020-01-04 13:18:28.000000000 +0100 +++ new/SecretStorage-3.2.0/docs/index.rst 2020-11-07 18:22:20.000000000 +0100 @@ -36,6 +36,14 @@ .. autofunction:: secretstorage.dbus_init +If you need to quickly check whether the Secret Service daemon is available +(either running or `activatable via D-Bus`_) without trying to call any its +methods, you can use the following function: + +.. autofunction:: secretstorage.check_service_availability + +.. _`activatable via D-Bus`: https://www.freedesktop.org/wiki/IntroductionToDBus/#activation + Examples of using SecretStorage =============================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/secretstorage/__init__.py new/SecretStorage-3.2.0/secretstorage/__init__.py --- old/SecretStorage-3.1.2/secretstorage/__init__.py 2020-01-08 17:16:19.000000000 +0100 +++ new/SecretStorage-3.2.0/secretstorage/__init__.py 2020-11-07 18:36:34.000000000 +0100 @@ -1,13 +1,16 @@ # SecretStorage module for Python # Access passwords using the SecretService DBus API -# Author: Dmitry Shachnev, 2013-2018 +# Author: Dmitry Shachnev, 2013-2020 # License: 3-clause BSD, see LICENSE file """This file provides quick access to all SecretStorage API. Please refer to documentation of individual modules for API details. """ -from jeepney.integrate.blocking import DBusConnection, connect_and_authenticate +from jeepney.bus_messages import message_bus +from jeepney.integrate.blocking import DBusConnection, Proxy, \ + connect_and_authenticate + from secretstorage.collection import Collection, create_collection, \ get_all_collections, get_default_collection, get_any_collection, \ get_collection_by_alias, search_items @@ -17,7 +20,7 @@ ItemNotFoundException, PromptDismissedException from secretstorage.util import add_match_rules -__version_tuple__ = (3, 1, 0) +__version_tuple__ = (3, 2, 0) __version__ = '.'.join(map(str, __version_tuple__)) __all__ = [ @@ -28,6 +31,7 @@ 'PromptDismissedException', 'SecretServiceNotAvailableException', 'SecretStorageException', + 'check_service_availability', 'create_collection', 'dbus_init', 'get_all_collections', @@ -75,3 +79,15 @@ raise SecretServiceNotAvailableException(reason) from ex except (ConnectionError, ValueError) as ex: raise SecretServiceNotAvailableException(str(ex)) from ex + + +def check_service_availability(connection: DBusConnection) -> bool: + """Returns True if the Security Service daemon is either running or + available for activation via D-Bus, False otherwise. + + .. versionadded:: 3.2 + """ + from secretstorage.util import BUS_NAME + proxy = Proxy(message_bus, connection) + return (proxy.NameHasOwner(BUS_NAME)[0] == 1 + or BUS_NAME in proxy.ListActivatableNames()[0]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/setup.cfg new/SecretStorage-3.2.0/setup.cfg --- old/SecretStorage-3.1.2/setup.cfg 2020-01-08 17:47:57.000000000 +0100 +++ new/SecretStorage-3.2.0/setup.cfg 2020-11-07 18:45:07.085436800 +0100 @@ -1,6 +1,6 @@ [metadata] name = SecretStorage -version = 3.1.2 +version = 3.2.0 description = Python bindings to FreeDesktop.org Secret Service API long_description = file: README.rst long_description_content_type = text/x-rst @@ -18,6 +18,7 @@ Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 Topic :: Security Topic :: Software Development :: Libraries :: Python Modules platforms = Linux @@ -25,7 +26,7 @@ [options] packages = secretstorage python_requires = >=3.5 -install_requires = cryptography; jeepney>=0.4.2 +install_requires = cryptography>=2.0; jeepney>=0.4.2 [egg_info] tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/tests/run_tests.py new/SecretStorage-3.2.0/tests/run_tests.py --- old/SecretStorage-3.1.2/tests/run_tests.py 2020-01-04 13:39:14.000000000 +0100 +++ new/SecretStorage-3.2.0/tests/run_tests.py 2020-06-07 10:42:11.000000000 +0200 @@ -19,6 +19,7 @@ mock = subprocess.Popen(('/usr/bin/python3', sys.argv[1],), stdout=subprocess.PIPE, universal_newlines=True) + assert mock.stdout is not None # for mypy bus_name = mock.stdout.readline().rstrip() secretstorage.util.BUS_NAME = bus_name print('Bus name set to %r' % secretstorage.util.BUS_NAME) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SecretStorage-3.1.2/tests/test_context_manager.py new/SecretStorage-3.2.0/tests/test_context_manager.py --- old/SecretStorage-3.1.2/tests/test_context_manager.py 2020-01-08 17:16:19.000000000 +0100 +++ new/SecretStorage-3.2.0/tests/test_context_manager.py 2020-11-07 18:26:49.000000000 +0100 @@ -7,7 +7,8 @@ from contextlib import closing import unittest -from secretstorage import dbus_init, get_any_collection +from secretstorage import check_service_availability, dbus_init +from secretstorage.collection import get_any_collection class ContextManagerTest(unittest.TestCase): @@ -16,6 +17,7 @@ def test_closing_context_manager(self) -> None: with closing(dbus_init()) as connection: + self.assertTrue(check_service_availability(connection)) collection = get_any_collection(connection) self.assertIsNotNone(collection) label = collection.get_label() _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org