Title: [271540] trunk/Tools
Revision
271540
Author
[email protected]
Date
2021-01-15 15:32:35 -0800 (Fri, 15 Jan 2021)

Log Message

[webkitscmpy] Cache credentials from keychain
https://bugs.webkit.org/show_bug.cgi?id=220671
<rdar://problem/73262349>

Reviewed by Dewei Zhu.

* Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
(GitHub.credentials): Cache credentials from keychain even when not specified by the user.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (271539 => 271540)


--- trunk/Tools/ChangeLog	2021-01-15 23:22:33 UTC (rev 271539)
+++ trunk/Tools/ChangeLog	2021-01-15 23:32:35 UTC (rev 271540)
@@ -1,5 +1,18 @@
 2021-01-15  Jonathan Bedard  <[email protected]>
 
+        [webkitscmpy] Cache credentials from keychain
+        https://bugs.webkit.org/show_bug.cgi?id=220671
+        <rdar://problem/73262349>
+
+        Reviewed by Dewei Zhu.
+
+        * Scripts/libraries/webkitscmpy/setup.py: Bump version.
+        * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
+        * Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
+        (GitHub.credentials): Cache credentials from keychain even when not specified by the user.
+
+2021-01-15  Jonathan Bedard  <[email protected]>
+
         [webkitscmpy] Make UI parsing for parent commits more flexible
         https://bugs.webkit.org/show_bug.cgi?id=220661
         <rdar://problem/73256932>

Modified: trunk/Tools/Scripts/libraries/webkitscmpy/setup.py (271539 => 271540)


--- trunk/Tools/Scripts/libraries/webkitscmpy/setup.py	2021-01-15 23:22:33 UTC (rev 271539)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/setup.py	2021-01-15 23:32:35 UTC (rev 271540)
@@ -30,7 +30,7 @@
 
 setup(
     name='webkitscmpy',
-    version='0.9.1',
+    version='0.9.2',
     description='Library designed to interact with git and svn repositories.',
     long_description=readme(),
     classifiers=[

Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (271539 => 271540)


--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py	2021-01-15 23:22:33 UTC (rev 271539)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py	2021-01-15 23:32:35 UTC (rev 271540)
@@ -46,7 +46,7 @@
         "Please install webkitcorepy with `pip install webkitcorepy --extra-index-url <package index URL>`"
     )
 
-version = Version(0, 9, 1)
+version = Version(0, 9, 2)
 
 AutoInstall.register(Package('entrypoints', Version(0, 3, 0)))
 AutoInstall.register(Package('fasteners', Version(0, 15, 0)))

Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py (271539 => 271540)


--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py	2021-01-15 23:22:33 UTC (rev 271539)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py	2021-01-15 23:32:35 UTC (rev 271540)
@@ -94,8 +94,10 @@
                 access_token = getpass.getpass('API key: ')
                 password_prompted = True
 
+        if username and access_token:
+            self._cached_credentials = (username, access_token)
+
         if username_prompted or password_prompted:
-            self._cached_credentials = (username, access_token)
             sys.stderr.write('Store username and access token in system keyring for {}? (Y/N): '.format(self.api_url))
             response = (input if sys.version_info > (3, 0) else raw_input)()
             if response.lower() in ['y', 'yes', 'ok']:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to