Hello community,

here is the log from the commit of package python-keyring for openSUSE:Factory 
checked in at 2018-07-18 22:54:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-keyring (Old)
 and      /work/SRC/openSUSE:Factory/.python-keyring.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-keyring"

Wed Jul 18 22:54:45 2018 rev:30 rq:623136 version:13.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-keyring/python-keyring.changes    
2018-07-09 13:27:23.182980100 +0200
+++ /work/SRC/openSUSE:Factory/.python-keyring.new/python-keyring.changes       
2018-07-18 22:55:44.518602337 +0200
@@ -1,0 +2,9 @@
+Mon Jul  9 13:37:36 UTC 2018 - [email protected]
+
+- Update to 13.2.1:
+  * #335: Fix regression in command line client.
+  * Keyring command-line interface now reads the password
+   directly from stdin if stdin is connected to a pipe.
+  * #329: Improve output of ``keyring --list-backends``.
+
+-------------------------------------------------------------------

Old:
----
  keyring-13.0.0.tar.gz

New:
----
  keyring-13.2.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-keyring.spec ++++++
--- /var/tmp/diff_new_pack.LG2UPY/_old  2018-07-18 22:55:45.342599604 +0200
+++ /var/tmp/diff_new_pack.LG2UPY/_new  2018-07-18 22:55:45.342599604 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-keyring
-Version:        13.0.0
+Version:        13.2.1
 Release:        0
 Summary:        Store and access your passwords safely
 License:        Python-2.0 AND MIT

++++++ keyring-13.0.0.tar.gz -> keyring-13.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/CHANGES.rst 
new/keyring-13.2.1/CHANGES.rst
--- old/keyring-13.0.0/CHANGES.rst      2018-06-17 19:04:41.000000000 +0200
+++ new/keyring-13.2.1/CHANGES.rst      2018-07-06 03:21:38.000000000 +0200
@@ -1,3 +1,19 @@
+13.2.1
+------
+
+* #335: Fix regression in command line client.
+
+13.2.0
+------
+
+* Keyring command-line interface now reads the password
+  directly from stdin if stdin is connected to a pipe.
+
+13.1.0
+------
+
+* #329: Improve output of ``keyring --list-backends``.
+
 13.0.0
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/PKG-INFO new/keyring-13.2.1/PKG-INFO
--- old/keyring-13.0.0/PKG-INFO 2018-06-17 19:05:09.000000000 +0200
+++ new/keyring-13.2.1/PKG-INFO 2018-07-06 03:22:06.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: keyring
-Version: 13.0.0
+Version: 13.2.1
 Summary: Store and access your passwords safely.
 Home-page: https://github.com/jaraco/keyring
 Author: Kang Zhang
@@ -383,6 +383,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Requires-Python: >=2.7
 Provides-Extra: testing
 Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/keyring/backend.py 
new/keyring-13.2.1/keyring/backend.py
--- old/keyring-13.0.0/keyring/backend.py       2018-06-17 19:04:41.000000000 
+0200
+++ new/keyring-13.2.1/keyring/backend.py       2018-07-06 03:21:38.000000000 
+0200
@@ -73,6 +73,12 @@
         mod_name = mod_name.replace('_', ' ')
         return ' '.join([mod_name, cls.__name__])
 
+    def __str__(self):
+        keyring_class = type(self)
+        return ("%s.%s (priority: %g)" % (keyring_class.__module__,
+                                          keyring_class.__name__,
+                                          keyring_class.priority))
+
     @abc.abstractmethod
     def get_password(self, service, username):
         """Get password of the username for the service
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/keyring/cli.py 
new/keyring-13.2.1/keyring/cli.py
--- old/keyring-13.0.0/keyring/cli.py   2018-06-17 19:04:41.000000000 +0200
+++ new/keyring-13.2.1/keyring/cli.py   2018-07-06 03:21:38.000000000 +0200
@@ -85,12 +85,21 @@
             pass
 
     def input_password(self, prompt):
-        """Ask for a password to the user.
+        """Retrieve password from input.
+        """
+        return self.pass_from_pipe() or getpass.getpass(prompt)
 
-        This mostly exists to ease the testing process.
+    @classmethod
+    def pass_from_pipe(cls):
+        """Return password from pipe if not on TTY, else False.
         """
+        is_pipe = not sys.stdin.isatty()
+        return is_pipe and cls.strip_last_newline(sys.stdin.read())
 
-        return getpass.getpass(prompt)
+    @staticmethod
+    def strip_last_newline(str):
+        """Strip one last newline, if present."""
+        return str[:-str.endswith('\n')]
 
     def output_password(self, password):
         """Output the password to the user.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/keyring.egg-info/PKG-INFO 
new/keyring-13.2.1/keyring.egg-info/PKG-INFO
--- old/keyring-13.0.0/keyring.egg-info/PKG-INFO        2018-06-17 
19:05:09.000000000 +0200
+++ new/keyring-13.2.1/keyring.egg-info/PKG-INFO        2018-07-06 
03:22:05.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: keyring
-Version: 13.0.0
+Version: 13.2.1
 Summary: Store and access your passwords safely.
 Home-page: https://github.com/jaraco/keyring
 Author: Kang Zhang
@@ -383,6 +383,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Requires-Python: >=2.7
 Provides-Extra: testing
 Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/pyproject.toml 
new/keyring-13.2.1/pyproject.toml
--- old/keyring-13.0.0/pyproject.toml   2018-06-17 19:04:41.000000000 +0200
+++ new/keyring-13.2.1/pyproject.toml   2018-07-06 03:21:38.000000000 +0200
@@ -1,2 +1,2 @@
 [build-system]
-requires = ["setuptools", "wheel", "setuptools_scm>=1.15"]
+requires = ["setuptools>=30.3", "wheel", "setuptools_scm>=1.15"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/setup.cfg new/keyring-13.2.1/setup.cfg
--- old/keyring-13.0.0/setup.cfg        2018-06-17 19:05:09.000000000 +0200
+++ new/keyring-13.2.1/setup.cfg        2018-07-06 03:22:06.000000000 +0200
@@ -7,6 +7,7 @@
 
 [metadata]
 license_file = LICENSE
+long_description = file:README.rst
 
 [egg_info]
 tag_build = 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/setup.py new/keyring-13.2.1/setup.py
--- old/keyring-13.0.0/setup.py 2018-06-17 19:04:41.000000000 +0200
+++ new/keyring-13.2.1/setup.py 2018-07-06 03:21:38.000000000 +0200
@@ -2,13 +2,8 @@
 
 # Project skeleton maintained at https://github.com/jaraco/skeleton
 
-import io
-
 import setuptools
 
-with io.open('README.rst', encoding='utf-8') as readme:
-    long_description = readme.read()
-
 name = 'keyring'
 description = 'Store and access your passwords safely.'
 nspkg_technique = 'native'
@@ -25,7 +20,6 @@
     maintainer='Jason R. Coombs',
     maintainer_email='[email protected]',
     description=description or name,
-    long_description=long_description,
     url="https://github.com/jaraco/"; + name,
     packages=setuptools.find_packages(),
     include_package_data=True,
@@ -79,6 +73,7 @@
         "Programming Language :: Python :: 3.4",
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
+        "Programming Language :: Python :: 3.7",
     ],
     entry_points={
         'console_scripts': [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/keyring-13.0.0/tox.ini new/keyring-13.2.1/tox.ini
--- old/keyring-13.0.0/tox.ini  2018-06-17 19:04:41.000000000 +0200
+++ new/keyring-13.2.1/tox.ini  2018-07-06 03:21:38.000000000 +0200
@@ -6,7 +6,7 @@
 deps =
        setuptools>=31.0.1
        # workaround for yaml/pyyaml#126
-       # 
git+https://github.com/yaml/pyyaml@master#egg=pyyaml;python_version=="3.7";
+       # pyyaml>=4.2b2;python_version=="3.7"
 commands =
        pytest {posargs}
        python setup.py checkdocs


Reply via email to