Title: [287264] trunk/Tools
Revision
287264
Author
[email protected]
Date
2021-12-20 09:45:19 -0800 (Mon, 20 Dec 2021)

Log Message

[webkitcorepy] Require cryptography while on Linux with Py3
https://bugs.webkit.org/show_bug.cgi?id=234499

Reviewed by Philippe Normand.

cryptography is required by secretstorage.util. When not installed,
the import fails and the keyring backend initialization fails silently,
just removing the SecretService keyring backend from the list of
viable backends. This can happen when running the scripts from a fresh
virtualenv, for example.

* Scripts/libraries/webkitcorepy/setup.py:
* Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (287263 => 287264)


--- trunk/Tools/ChangeLog	2021-12-20 16:56:35 UTC (rev 287263)
+++ trunk/Tools/ChangeLog	2021-12-20 17:45:19 UTC (rev 287264)
@@ -1,3 +1,19 @@
+2021-12-20  Lauro Moura  <[email protected]>
+
+        [webkitcorepy] Require cryptography while on Linux with Py3
+        https://bugs.webkit.org/show_bug.cgi?id=234499
+
+        Reviewed by Philippe Normand.
+
+        cryptography is required by secretstorage.util. When not installed,
+        the import fails and the keyring backend initialization fails silently,
+        just removing the SecretService keyring backend from the list of
+        viable backends. This can happen when running the scripts from a fresh
+        virtualenv, for example.
+
+        * Scripts/libraries/webkitcorepy/setup.py:
+        * Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py:
+
 2021-12-20  Tim Nguyen  <[email protected]>
 
         Fix Tools/Scripts/webkitpy/w3c/test_importer.py

Modified: trunk/Tools/Scripts/libraries/webkitcorepy/setup.py (287263 => 287264)


--- trunk/Tools/Scripts/libraries/webkitcorepy/setup.py	2021-12-20 16:56:35 UTC (rev 287263)
+++ trunk/Tools/Scripts/libraries/webkitcorepy/setup.py	2021-12-20 17:45:19 UTC (rev 287264)
@@ -30,7 +30,7 @@
 
 setup(
     name='webkitcorepy',
-    version='0.12.3',
+    version='0.12.4',
     description='Library containing various Python support classes and functions.',
     long_description=readme(),
     classifiers=[

Modified: trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py (287263 => 287264)


--- trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py	2021-12-20 16:56:35 UTC (rev 287263)
+++ trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py	2021-12-20 17:45:19 UTC (rev 287264)
@@ -44,7 +44,7 @@
 from webkitcorepy.editor import Editor
 from webkitcorepy.file_lock import FileLock
 
-version = Version(0, 12, 3)
+version = Version(0, 12, 4)
 
 from webkitcorepy.autoinstall import Package, AutoInstall
 if sys.version_info > (3, 0):
@@ -76,6 +76,8 @@
 if sys.version_info >= (3, 6):
     if sys.platform == 'linux':
         AutoInstall.register(Package('jeepney', Version(0, 7, 1)))
+        AutoInstall.register(Package('cffi', Version(1, 15, 0)))
+        AutoInstall.register(Package('cryptography', Version(36, 0, 1), wheel=True, implicit_deps=['cffi']))
         AutoInstall.register(Package('secretstorage', Version(3, 3, 1)))
     AutoInstall.register(Package('keyring', Version(23, 2, 1)))
 else:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to