[Python-modules-commits] [python-keyring] 01/07: Import python-keyring_9.1.orig.tar.gz

Dmitry Shachnev mitya57 at moszumanska.debian.org
Fri Jun 24 07:50:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository python-keyring.

commit f1be0f75396ac85fd3655c0e42b79cb0ce48ad30
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Fri Jun 24 10:38:43 2016 +0300

    Import python-keyring_9.1.orig.tar.gz
---
 .hgtags                                |   4 +
 .travis.yml                            |  11 ++
 CHANGES.rst                            | 118 ++++++--------------
 PKG-INFO                               |  41 ++++++-
 README.rst                             |  39 ++++++-
 docs/conf.py                           |  19 ++++
 docs/history.rst                       |   2 +-
 hook-keyring.backend.py                |   7 ++
 keyring.egg-info/PKG-INFO              |  41 ++++++-
 keyring.egg-info/SOURCES.txt           |   1 +
 keyring/backends/OS_X.py               | 144 +++---------------------
 keyring/backends/_OS_X_API.py          | 198 +++++++++++++++++++++++++++++++++
 keyring/backends/kwallet.py            |  47 +++++---
 keyring/core.py                        |  36 ------
 keyring/tests/backends/test_OS_X.py    |   5 -
 keyring/tests/backends/test_kwallet.py |  59 +++++++++-
 keyring/tests/test_backend.py          |  29 ++---
 pytest.ini                             |   2 +-
 setup.cfg                              |   4 +-
 setup.py                               |   2 +-
 20 files changed, 510 insertions(+), 299 deletions(-)

diff --git a/.hgtags b/.hgtags
index b29849d..654b254 100644
--- a/.hgtags
+++ b/.hgtags
@@ -107,3 +107,7 @@ f9004a4c72d1e41f473eef3fefa7b596b30d9259 8.4
 6ddcb034223246c4b67d9caea3f0deb18f462c59 8.4.1
 5f0cc53d698fcac4174bc54ae84b3478cb5cd06e 8.5
 e837337c9b9375a9db508a2bd4dfd0e1c3e2bcc2 8.5.1
+45a70dfe822cbdc889142e1d984a5074396ba711 8.6
+87d6d34cdea1b3b40bb60c3286b672c69ec49223 8.6.1
+d8633f6d4baf8abcffa80c456a89bf0ff09ff706 8.7
+a17bfebdf428e42ff31b71beee3e700b8329acdf 9.0
diff --git a/.travis.yml b/.travis.yml
index 1b6ec80..b93ae8c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,3 +28,14 @@ before_install:
 script:
   - pip install -U pytest
   - python setup.py test --addopts="-rs -v"
+
+deploy:
+  provider: pypi
+  on:
+    tags: true
+    all_branches: true
+  user: jaraco
+  password:
+    secure: aDqlVdm6FZ8pqLkoDRR2LH3TEz7pBvKH2HhOlSy7OEmopN/36ncql/KvfE0ccpaOES9Xm31a51bUfNjcwb1HVKjfW544C+IoSHctkG1rI5bp3q4rW+4RbQcBZVHUUKR9yQf9ZyikEmoYXi3g+JKcOf9rj+v/32PAfUDzSpFbWik=
+  distributions: release
+  python: 3.5
diff --git a/CHANGES.rst b/CHANGES.rst
index fd3afab..ac664b1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,8 +1,38 @@
-=======
 CHANGES
 =======
 
------
+9.1
+---
+
+* Issue #83 via #229: ``kwallet`` backend now stores
+  the service name as a folder name in the backend rather
+  than storing all passwords in a Python folder.
+
+9.0
+---
+
+* Issue #217: Once again, the OS X backend uses the
+  Framework API for invoking the Keychain service.
+  As a result, applications utilizing this API will be
+  authorized per application, rather than relying on the
+  authorization of the 'security' application. Consequently,
+  users will be prompted to authorize the system Python
+  executable and also new Python executables, such as
+  those created by virtualenv.
+
+8.7
+---
+
+* Changelog now links to issues and provides dates of
+  releases.
+
+8.6
+---
+
+* Issue #217: Add warning in OS Keyring when 'store'
+  is set to 'internet' to determine if this feature is
+  used in the wild.
+
 8.5.1
 -----
 
@@ -10,14 +40,12 @@ CHANGES
   priority than the preferred SecretService backend,
   now that the desktop check is no longer in place.
 
----
 8.5
 ---
 
 * Issue #168: Now prefer KF5 Kwallet to KF4. Users relying
   on KF4 must use prior releases.
 
----
 8.4
 ---
 
@@ -26,7 +54,6 @@ CHANGES
 * Pull Request #208: Fix pywin32-ctypes package name in
   requirements.
 
----
 8.3
 ---
 
@@ -36,20 +63,17 @@ CHANGES
 * Actually removed QtKwallet, which was meant to be dropped in
   8.0 but somehow remained.
 
----
 8.2
 ---
 
 * Update readme to include how-to use with Linux
   non-graphical environments.
 
----
 8.1
 ---
 
 * Issue #197: Add ``__version__`` attribute to keyring module.
 
----
 8.0
 ---
 
@@ -76,7 +100,6 @@ CHANGES
   example, "keyring.backends.file.PlaintextKeyring"
   becomes "keyrings.alt.file.PlaintextKeyring".
 
------
 7.3.1
 -----
 
@@ -85,7 +108,6 @@ CHANGES
   want to follow the `direct link
   <https://pythonhosted.org/keyring/history.html>`_.
 
----
 7.3
 ---
 
@@ -95,7 +117,6 @@ CHANGES
 
     keyring.core.init_backend(limit=keyring.core.recommended)
 
----
 7.2
 ---
 
@@ -108,7 +129,6 @@ CHANGES
     keyring.get_keyring().keychain = '/path/to/login.keychain'
     pw = keyring.get_password(...)
 
----
 7.1
 ---
 
@@ -117,7 +137,6 @@ CHANGES
   to be a reliable indicator of which keyring implementation
   might be preferable.
 
------
 7.0.2
 -----
 
@@ -125,7 +144,6 @@ CHANGES
   Users of keyring 6.1 or later should prefer an explicit reference
   to DBusKeyring or QtKeyring instead.
 
------
 7.0.1
 -----
 
@@ -133,7 +151,6 @@ CHANGES
   on environment variables, but instead relies on the GnomeKeyring
   library to determine viability.
 
----
 7.0
 ---
 
@@ -147,14 +164,12 @@ CHANGES
 * Replaced Pull Request #182 with a conditional SessionBus
   construction, based on subsequent discussion.
 
------
 6.1.1
 -----
 
 * Pull Request #182: Prevent DBus from indicating as a viable
   backend when no viable X DISPLAY variable is present.
 
----
 6.1
 ---
 
@@ -162,13 +177,11 @@ CHANGES
   backend. Theoretically, it should be auto-detected based on
   available libraries and interchangeable with the Qt backend.
 
----
 6.0
 ---
 
 * Drop support for Python 2.6.
 
------
 5.7.1
 -----
 
@@ -176,7 +189,6 @@ CHANGES
   generally refreshed the metadata structure to match
   practices with other projects.
 
----
 5.7
 ---
 
@@ -185,53 +197,45 @@ CHANGES
   process status for most passwords containing simple
   characters.
 
----
 5.6
 ---
 
 * Allow keyring to be invoked from command-line with
   ``python -m keyring``.
 
------
 5.5.1
 -----
 
 * Issue #156: Fixed test failures in ``pyfs`` keyring related to
   0.5 release.
 
----
 5.5
 ---
 
 * Pull Request #176: Use recommended mechanism for checking
   GnomeKeyring version.
 
----
 5.4
 ---
 
 * Prefer setuptools_scm to hgtools.
 
----
 5.3
 ---
 
 * Prefer hgtools to setuptools_scm due to `setuptools_scm #21
   <https://bitbucket.org/pypa/setuptools_scm/issue/21>`_.
 
----
 5.2
 ---
 
 * Prefer setuptools_scm to hgtools.
 
----
 5.1
 ---
 
 * Host project at Github (`repo <https://github.com/jaraco/keyring>`_).
 
----
 5.0
 ---
 
@@ -239,21 +243,18 @@ CHANGES
   <https://pypi.python.org/pypi/hgtools>`_.
 * Build and install now requires setuptools.
 
------
 4.1.1
 -----
 
 * The entry point group must look like a module name, so the group is now
   "keyring.backends".
 
----
 4.1
 ---
 
 * Added preliminary support for loading keyring backends through ``setuptools
   entry points``, specifically "keyring backends".
 
----
 4.0
 ---
 
@@ -263,7 +264,6 @@ CHANGES
   directory. The config file must now be located in the platform-specific
   config location.
 
----
 3.8
 ---
 
@@ -272,7 +272,6 @@ CHANGES
 * Issue #131: Keyring now will prefer `pywin32-ctypes
   <https://pypi.python.org/pypi/pywin32-ctypes>`_ to pywin32 if available.
 
----
 3.7
 ---
 
@@ -280,7 +279,6 @@ CHANGES
   variable.
 * Issue #140: Restore compatibility for older versions of PyWin32.
 
----
 3.6
 ---
 
@@ -288,7 +286,6 @@ CHANGES
   Add support for packages that wish to bundle keyring by using relative
   imports throughout.
 
----
 3.5
 ---
 
@@ -299,7 +296,6 @@ CHANGES
   Prepared the code base to treat the two differently on Unix-based systems.
   For now, the behavior is unchanged.
 
----
 3.4
 ---
 
@@ -309,14 +305,12 @@ CHANGES
 * SecretService backend: correctly handle cases when user dismissed
   the collection creation or unlock prompt.
 
----
 3.3
 ---
 
 * Pull request #40: KWallet backend will now honor the ``KDE_FULL_SESSION``
   environment variable as found on openSUSE.
 
------
 3.2.1
 -----
 
@@ -328,7 +322,6 @@ CHANGES
 
   Resolves https://bugs.launchpad.net/bugs/1242412.
 
----
 3.2
 ---
 
@@ -348,7 +341,6 @@ CHANGES
   `keyring.core._load_library_extensions` for information on supplying
   a third-party backend.
 
----
 3.1
 ---
 
@@ -356,19 +348,16 @@ CHANGES
   is required.
 * Testsuite: clean up, and make more use of unittest2 methods.
 
------
 3.0.5
 -----
 
 * Issue #114: Fix logic in pyfs detection.
 
------
 3.0.4
 -----
 
 * Issue #114: Fix detection of pyfs under Mercurial Demand Import.
 
------
 3.0.3
 -----
 
@@ -380,7 +369,6 @@ CHANGES
   Issue #113 in which the explicit module loading of keyring modules was
   breaking package-relative imports.
 
------
 3.0.2
 -----
 
@@ -393,14 +381,12 @@ CHANGES
   in place to fix this issue upstream, but to support older Mercurial
   versions, this patch will remain for some time.
 
------
 3.0.1
 -----
 
 * Ensure that modules are actually imported even in Mercurial's Demand Import
   environment.
 
----
 3.0
 ---
 
@@ -408,13 +394,11 @@ CHANGES
 * Removed names in ``keyring.backend`` moved in 1.1 and previously retained
   for compatibilty.
 
------
 2.1.1
 -----
 
 * Restored Python 2.5 compatibility (lost in 2.0).
 
----
 2.1
 ---
 
@@ -436,7 +420,6 @@ CHANGES
 
 *  Fixes to GnomeKeyring and SecretService tests.
 
------
 2.0.3
 -----
 
@@ -444,19 +427,16 @@ CHANGES
    module presence checking, requesting ``__name__`` from imported modules to
    force the demand importer to actually attempt the import.
 
------
 2.0.2
 -----
 
 *  Issue #111: Windows backend isn't viable on non-Windows platforms.
 
------
 2.0.1
 -----
 
 *  Issue #110: Fix issues with ``Windows.RegistryKeyring``.
 
----
 2.0
 ---
 
@@ -468,14 +448,12 @@ CHANGES
    backend in configuration, but the default behavior should now be to select
    the most appropriate backend by default.
 
------
 1.6.1
 -----
 
 * Only include pytest-runner in 'setup requirements' when ptr invocation is
   indicated in the command-line (Issue #105).
 
----
 1.6
 ---
 
@@ -491,7 +469,6 @@ CHANGES
 
    - Use a better label for passwords, the same as GNOME Keyring backend uses.
 
----
 1.5
 ---
 
@@ -509,14 +486,12 @@ CHANGES
 
 *  Improvements for tests, including fix for Issue #102.
 
----
 1.4
 ---
 
 * Switch GnomeKeyring backend to use native libgnome-keyring via
   GObject Introspection, not the obsolete python-gnomekeyring module.
 
----
 1.3
 ---
 
@@ -528,21 +503,18 @@ CHANGES
   <https://bugs.launchpad.net/python-novaclient/+bug/1116302>`_.
 * Issue #92 Added support for delete_password on Mac OS X Keychain.
 
------
 1.2.3
 -----
 
 * Fix for Encrypted File backend on Python 3.
 * Issue #97 Improved support for PyPy.
 
------
 1.2.2
 -----
 
 * Fixed handling situations when user cancels kwallet dialog or denies access
   for the app.
 
------
 1.2.1
 -----
 
@@ -551,26 +523,22 @@ CHANGES
 * Issue #84: Fix for Google backend on Python 3 (use of raw_input not caught
   by 2to3).
 
----
 1.2
 ---
 
 * Implemented delete_password on most keyrings. Keyring 2.0 will require
   delete_password to implement a Keyring. Fixes #79.
 
------
 1.1.2
 -----
 
 * Issue #78: pyfilesystem backend now works on Windows.
 
------
 1.1.1
 -----
 
 * Fixed MANIFEST.in so .rst files are included.
 
----
 1.1
 ---
 
@@ -623,7 +591,6 @@ and updated module structure.
 * Officially require Python 2.5 or greater (although unofficially, this
   requirement has been in place since 0.10).
 
----
 1.0
 ---
 
@@ -641,13 +608,11 @@ codebase that's accumulated over the versions.
 * File System backends now create files without group and world permissions.
   Fixes #67.
 
-------
 0.10.1
 ------
 
 * Merged 0.9.3 to include fix for #75.
 
-----
 0.10
 ----
 
@@ -665,14 +630,12 @@ codebase that's accumulated over the versions.
 * Unencrypted keyring file will be saved with user read/write (and not group
   or world read/write).
 
------
 0.9.3
 -----
 
 * Ensure migration is run when get_password is called. Fixes #75. Thanks to
   Marc Deslauriers for reporting the bug and supplying the patch.
 
------
 0.9.2
 -----
 
@@ -684,7 +647,6 @@ codebase that's accumulated over the versions.
   keyring to implement a whole-file encrypted version. Fixes #64.
 * The CryptedFileKeyring now requires simplejson for Python 2.5 clients.
 
------
 0.9.1
 -----
 
@@ -698,21 +660,18 @@ codebase that's accumulated over the versions.
   compatible with 0.9 and earlier). The user's password is no longer limited
   to 32 characters. PyCrypto 2.5 or greater is now required for this keyring.
 
----
 0.9
 ---
 
 * Add support for GTK 3 and secret service D-Bus. Fixes #52.
 * Issue #60 - Use correct method for decoding.
 
------
 0.8.1
 -----
 
 * Fix regression in keyring lib on Windows XP where the LOCALAPPDATA
   environment variable is not present.
 
----
 0.8
 ---
 
@@ -738,14 +697,12 @@ it is not possible to downgrade to 0.7 without manually moving
 configuration files. In 1.0, the backward compatibilty
 will be removed.
 
------
 0.7.1
 -----
 
 * Removed non-ASCII characters from README and CHANGES docs (required by
   distutils if we're to include them in the long_description). Fixes #55.
 
----
 0.7
 ---
 
@@ -762,28 +719,21 @@ will be removed.
 * `keyring.util.escape` now accepts only unicode strings. Don't try to encode
   strings passed to it.
 
------
 0.6.2
 -----
 
 * fix compiling on OSX with XCode 4.0
 
------
 0.6.1
 -----
 
 * Gnome keyring should not be used if there is no DISPLAY or if the dbus is
   not around (https://bugs.launchpad.net/launchpadlib/+bug/752282).
 
----
-0.6
----
-
 * Added `keyring.http` for facilitating HTTP Auth using keyring.
 
 * Add a utility to access the keyring from the command line.
 
------
 0.5.1
 -----
 
@@ -792,7 +742,6 @@ will be removed.
 * Fix a bug that caused an exception if the user canceled the KWallet dialog
   (https://bitbucket.org/kang/python-keyring-lib/issue/37/user-canceling-of-kde-wallet-dialogs).
 
----
 0.5
 ---
 
@@ -801,13 +750,11 @@ will be removed.
 
 * Using the getpass module instead of custom code
 
----
 0.4
 ---
 
 * Fixed the setup script (some subdirs were not included in the release.)
 
----
 0.3
 ---
 
@@ -816,7 +763,6 @@ will be removed.
 
 * Fixed escaping issues for usernames with non-ascii characters
 
----
 0.2
 ---
 
diff --git a/PKG-INFO b/PKG-INFO
index bcb8371..9b22325 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: keyring
-Version: 8.5.1
+Version: 9.1
 Summary: Store and access your passwords safely.
 Home-page: https://github.com/jaraco/keyring
 Author: Jason R. Coombs
@@ -26,8 +26,9 @@ Description: =======================================
         
         * Mac OS X `Keychain
           <https://en.wikipedia.org/wiki/Keychain_%28software%29>`_
-        * Linux Secret Service (requires `secretstorage
-          <https://pypi.python.org/pypi/secretstorage>`_)
+        * Freedesktop `Secret Service
+          <http://standards.freedesktop.org/secret-service/>`_ (requires
+          `secretstorage <https://pypi.python.org/pypi/secretstorage>`_)
         * `KWallet <https://en.wikipedia.org/wiki/KWallet>`_
           (requires `dbus <https://pypi.python.org/pypi/dbus-python>`_)
         * `Windows Credential Vault
@@ -48,6 +49,16 @@ Description: =======================================
             $ easy_install keyring
             $ pip install keyring
         
+        
+        On Linux (Ubuntu 16.04 and Fedora), keyring uses secretstorage, which
+        in turn uses dbus.  The following steps are likely required to enable
+        the default secretstorage backend.  (See below for details on Ubuntu
+        16.04 installation.)::
+        
+            $ sudo apt install libdbus-glib-1-dev
+            $ pip install secretstorage dbus-python
+        
+        
         Source installation
         ===================
         
@@ -187,6 +198,30 @@ Description: =======================================
                 print("failed to store password")
             print("password", keyring.get_password("demo-service", "tarek"))
         
+        
+        Using Keyring on Ubuntu 16.04
+        =============================
+        
+        The following is a complete transcript for installing keyring in a
+        virtual environment on Ubuntu 16.04.  No config file was used.::
+        
+          $ sudo apt install python3-venv libdbus-glib-1-dev
+          $ cd /tmp
+          $ pyvenv py3
+          $ source py3/bin/activate
+          $ pip install -U pip
+          $ pip install secretstorage dbus-python
+          $ pip install keyring
+          $ python
+          >>> import keyring
+          >>> keyring.get_keyring()
+          <keyring.backends.SecretService.Keyring object at 0x7f9b9c971ba8>
+          >>> keyring.set_password("system", "username", "password")
+          >>> keyring.get_password("system", "username")
+          'password'
+        
+        
+        
         Using Keyring on headless Linux systems
         =======================================
         
diff --git a/README.rst b/README.rst
index 19bbd98..e12f642 100644
--- a/README.rst
+++ b/README.rst
@@ -18,8 +18,9 @@ These recommended keyring backends are supported by the Python keyring lib:
 
 * Mac OS X `Keychain
   <https://en.wikipedia.org/wiki/Keychain_%28software%29>`_
-* Linux Secret Service (requires `secretstorage
-  <https://pypi.python.org/pypi/secretstorage>`_)
+* Freedesktop `Secret Service
+  <http://standards.freedesktop.org/secret-service/>`_ (requires
+  `secretstorage <https://pypi.python.org/pypi/secretstorage>`_)
 * `KWallet <https://en.wikipedia.org/wiki/KWallet>`_
   (requires `dbus <https://pypi.python.org/pypi/dbus-python>`_)
 * `Windows Credential Vault
@@ -40,6 +41,16 @@ Run easy_install or pip::
     $ easy_install keyring
     $ pip install keyring
 
+
+On Linux (Ubuntu 16.04 and Fedora), keyring uses secretstorage, which
+in turn uses dbus.  The following steps are likely required to enable
+the default secretstorage backend.  (See below for details on Ubuntu
+16.04 installation.)::
+
+    $ sudo apt install libdbus-glib-1-dev
+    $ pip install secretstorage dbus-python
+
+
 Source installation
 ===================
 
@@ -179,6 +190,30 @@ Here's an example demonstrating how to invoke ``set_keyring``::
         print("failed to store password")
     print("password", keyring.get_password("demo-service", "tarek"))
 
+
+Using Keyring on Ubuntu 16.04
+=============================
+
+The following is a complete transcript for installing keyring in a
+virtual environment on Ubuntu 16.04.  No config file was used.::
+
+  $ sudo apt install python3-venv libdbus-glib-1-dev
+  $ cd /tmp
+  $ pyvenv py3
+  $ source py3/bin/activate
+  $ pip install -U pip
+  $ pip install secretstorage dbus-python
+  $ pip install keyring
+  $ python
+  >>> import keyring
+  >>> keyring.get_keyring()
+  <keyring.backends.SecretService.Keyring object at 0x7f9b9c971ba8>
+  >>> keyring.set_password("system", "username", "password")
+  >>> keyring.get_password("system", "username")
+  'password'
+
+
+
 Using Keyring on headless Linux systems
 =======================================
 
diff --git a/docs/conf.py b/docs/conf.py
index a433086..a74d115 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -5,6 +5,7 @@ import setuptools_scm
 
 extensions = [
     'sphinx.ext.autodoc',
+    'rst.linker',
 ]
 
 # General information about the project.
@@ -17,3 +18,21 @@ version = setuptools_scm.get_version(root='..', relative_to=__file__)
 release = version
 
 master_doc = 'index'
+
+link_files = {
+	'CHANGES.rst': dict(
+		using=dict(
+			GH='https://github.com',
+		),
+		replace=[
+			dict(
+				pattern=r"(Issue )?#(?P<issue>\d+)",
+				url='{GH}/jaraco/keyring/issues/{issue}',
+			),
+			dict(
+				pattern=r"^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n",
+				with_scm="{text}\n{rev[timestamp]:%d %b %Y}\n",
+			),
+		],
+	),
+}
diff --git a/docs/history.rst b/docs/history.rst
index 907000b..8e21750 100644
--- a/docs/history.rst
+++ b/docs/history.rst
@@ -5,4 +5,4 @@
 History
 *******
 
-.. include:: ../CHANGES.rst
+.. include:: ../CHANGES (links).rst
diff --git a/hook-keyring.backend.py b/hook-keyring.backend.py
index fe68ca0..5ba5949 100644
--- a/hook-keyring.backend.py
+++ b/hook-keyring.backend.py
@@ -7,3 +7,10 @@ hiddenimports = [
     'keyring.backends.' + mod_name
     for mod_name in _backend_mod_names
 ]
+
+import pkg_resources
+
+hiddenimports.extend(
+	ep.module_name
+	for ep in pkg_resources.iter_entry_points('keyring.backends')
+)
diff --git a/keyring.egg-info/PKG-INFO b/keyring.egg-info/PKG-INFO
index bcb8371..9b22325 100644
--- a/keyring.egg-info/PKG-INFO
+++ b/keyring.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: keyring
-Version: 8.5.1
+Version: 9.1
 Summary: Store and access your passwords safely.
 Home-page: https://github.com/jaraco/keyring
 Author: Jason R. Coombs
@@ -26,8 +26,9 @@ Description: =======================================
         
         * Mac OS X `Keychain
           <https://en.wikipedia.org/wiki/Keychain_%28software%29>`_
-        * Linux Secret Service (requires `secretstorage
-          <https://pypi.python.org/pypi/secretstorage>`_)
+        * Freedesktop `Secret Service
+          <http://standards.freedesktop.org/secret-service/>`_ (requires
+          `secretstorage <https://pypi.python.org/pypi/secretstorage>`_)
         * `KWallet <https://en.wikipedia.org/wiki/KWallet>`_
           (requires `dbus <https://pypi.python.org/pypi/dbus-python>`_)
         * `Windows Credential Vault
@@ -48,6 +49,16 @@ Description: =======================================
             $ easy_install keyring
             $ pip install keyring
         
+        
+        On Linux (Ubuntu 16.04 and Fedora), keyring uses secretstorage, which
+        in turn uses dbus.  The following steps are likely required to enable
+        the default secretstorage backend.  (See below for details on Ubuntu
+        16.04 installation.)::
+        
+            $ sudo apt install libdbus-glib-1-dev
+            $ pip install secretstorage dbus-python
+        
+        
         Source installation
         ===================
         
@@ -187,6 +198,30 @@ Description: =======================================
                 print("failed to store password")
             print("password", keyring.get_password("demo-service", "tarek"))
         
+        
+        Using Keyring on Ubuntu 16.04
+        =============================
+        
+        The following is a complete transcript for installing keyring in a
+        virtual environment on Ubuntu 16.04.  No config file was used.::
+        
+          $ sudo apt install python3-venv libdbus-glib-1-dev
+          $ cd /tmp
+          $ pyvenv py3
+          $ source py3/bin/activate
+          $ pip install -U pip
+          $ pip install secretstorage dbus-python
+          $ pip install keyring
+          $ python
+          >>> import keyring
+          >>> keyring.get_keyring()
+          <keyring.backends.SecretService.Keyring object at 0x7f9b9c971ba8>
+          >>> keyring.set_password("system", "username", "password")
+          >>> keyring.get_password("system", "username")
+          'password'
+        
+        
+        
         Using Keyring on headless Linux systems
         =======================================
         
diff --git a/keyring.egg-info/SOURCES.txt b/keyring.egg-info/SOURCES.txt
index b0874c4..b048d22 100644
--- a/keyring.egg-info/SOURCES.txt
+++ b/keyring.egg-info/SOURCES.txt
@@ -32,6 +32,7 @@ keyring.egg-info/top_level.txt
 keyring/backends/OS_X.py
 keyring/backends/SecretService.py
 keyring/backends/Windows.py
+keyring/backends/_OS_X_API.py
 keyring/backends/__init__.py
 keyring/backends/fail.py
 keyring/backends/kwallet.py
diff --git a/keyring/backends/OS_X.py b/keyring/backends/OS_X.py
index 729a125..cd042a8 100644
--- a/keyring/backends/OS_X.py
+++ b/keyring/backends/OS_X.py
@@ -1,34 +1,19 @@
 import platform
-import subprocess
-import re
-import binascii
-import functools
 
 from ..backend import KeyringBackend
 from ..errors import PasswordSetError
 from ..errors import PasswordDeleteError
 from ..util import properties
-from ..py27compat import unicode_str
 
-
-class SecurityCommand(unicode_str):
-    """
... 706 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-keyring.git



More information about the Python-modules-commits mailing list