From 24bd9a42445cdb98c506b6d549d8dfbc69d55079a4dce6c1afa90bd4cf2f198b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 13 Jan 2023 00:35:03 +0000 Subject: [PATCH] Accepting request 1057951 from home:ojkastl_buildservice:ansible_for_SLES15SP4 - adjust patch remove_python_3_6_deprecation_warning.patch to version 39.0.0 OBS-URL: https://build.opensuse.org/request/show/1057951 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=170 --- python-cryptography.changes | 6 +++++ remove_python_3_6_deprecation_warning.patch | 28 +++++++++++++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/python-cryptography.changes b/python-cryptography.changes index c0881ad..edd29c9 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 12 10:14:50 UTC 2023 - Johannes Kastl + +- adjust patch remove_python_3_6_deprecation_warning.patch to version + 39.0.0 + ------------------------------------------------------------------- Mon Jan 2 19:38:58 UTC 2023 - Dirk Müller diff --git a/remove_python_3_6_deprecation_warning.patch b/remove_python_3_6_deprecation_warning.patch index 2ca106e..2c8832f 100644 --- a/remove_python_3_6_deprecation_warning.patch +++ b/remove_python_3_6_deprecation_warning.patch @@ -1,8 +1,18 @@ -Index: cryptography-37.0.2/src/cryptography/__init__.py -=================================================================== ---- cryptography-37.0.2.orig/src/cryptography/__init__.py 2022-06-09 18:07:46.169719315 +0200 -+++ cryptography-37.0.2/src/cryptography/__init__.py 2022-06-09 18:07:53.853613006 +0200 -@@ -18,12 +18,3 @@ __all__ = [ +From 172adcb524950666fa223ed325d87bf355bca50d Mon Sep 17 00:00:00 2001 +From: Johannes Kastl +Date: Thu, 12 Jan 2023 11:12:53 +0100 +Subject: [PATCH] remove python3.6 deprecation warning + +Signed-off-by: Johannes Kastl +--- + src/cryptography/__init__.py | 10 ---------- + 1 file changed, 10 deletions(-) + +diff --git a/src/cryptography/__init__.py b/src/cryptography/__init__.py +index 07c894ea3..91b624bf0 100644 +--- a/src/cryptography/__init__.py ++++ b/src/cryptography/__init__.py +@@ -13,13 +13,3 @@ __all__ = [ "__author__", "__copyright__", ] @@ -10,8 +20,12 @@ Index: cryptography-37.0.2/src/cryptography/__init__.py -if sys.version_info[:2] == (3, 6): - warnings.warn( - "Python 3.6 is no longer supported by the Python core team. " -- "Therefore, support for it is deprecated in cryptography and will be" -- " removed in a future release.", +- "Therefore, support for it is deprecated in cryptography. The next " +- "release of cryptography (40.0) will be the last to support Python " +- "3.6.", - CryptographyDeprecationWarning, - stacklevel=2, - ) +-- +2.39.0 +