Blame SOURCES/revert-require-py37.patch

e19c60
diff -Naur tpm2-pkcs11-1.3.2/ea5f1c078aff7fb09fb5fc78403d4f8c868c4ea6.patch tpm2-pkcs11-1.3.2a/ea5f1c078aff7fb09fb5fc78403d4f8c868c4ea6.patch
e19c60
--- tpm2-pkcs11-1.3.2/ea5f1c078aff7fb09fb5fc78403d4f8c868c4ea6.patch	1969-12-31 16:00:00.000000000 -0800
e19c60
+++ tpm2-pkcs11-1.3.2a/ea5f1c078aff7fb09fb5fc78403d4f8c868c4ea6.patch	2021-03-23 15:26:46.043878215 -0700
e19c60
@@ -0,0 +1,43 @@
e19c60
+From ea5f1c078aff7fb09fb5fc78403d4f8c868c4ea6 Mon Sep 17 00:00:00 2001
e19c60
+From: William Roberts <william.c.roberts@intel.com>
e19c60
+Date: Mon, 30 Dec 2019 14:10:14 -0600
e19c60
+Subject: [PATCH] tpm2_ptool: require python3.7 for db upgrade
e19c60
+
e19c60
+SQLite3 bindings for python don't have the backup API implemented until
e19c60
+Python 3.7. Make this the new minimum requirement for tpm2_ptool so
e19c60
+we can use this feature.
e19c60
+
e19c60
+Signed-off-by: William Roberts <william.c.roberts@intel.com>
e19c60
+---
e19c60
+ tools/setup.py                | 1 +
e19c60
+ tools/tpm2_pkcs11/__init__.py | 6 +++---
e19c60
+ 2 files changed, 4 insertions(+), 3 deletions(-)
e19c60
+
e19c60
+diff --git a/tools/setup.py b/tools/setup.py
e19c60
+index 494f9edd..4490dc61 100644
e19c60
+--- a/tools/setup.py
e19c60
++++ b/tools/setup.py
e19c60
+@@ -9,6 +9,7 @@
e19c60
+ 
e19c60
+ setup(
e19c60
+     name='tpm2-pkcs11-tools',
e19c60
++    python_requires='>=3.7',
e19c60
+     long_description=long_description,
e19c60
+     long_description_content_type='text/markdown',
e19c60
+     version='1.33.7',
e19c60
+diff --git a/tools/tpm2_pkcs11/__init__.py b/tools/tpm2_pkcs11/__init__.py
e19c60
+index ed83ef52..1ed8b3af 100644
e19c60
+--- a/tools/tpm2_pkcs11/__init__.py
e19c60
++++ b/tools/tpm2_pkcs11/__init__.py
e19c60
+@@ -2,6 +2,6 @@
e19c60
+ 
e19c60
+ import sys
e19c60
+ 
e19c60
+-# Sunset python < 3 support
e19c60
+-if sys.version_info[0] < 3:
e19c60
+-    sys.exit("Python 3 or a more recent version is required.")
e19c60
+\ No newline at end of file
e19c60
++# Requires python 3.7 or greater
e19c60
++if (sys.version_info[0], sys.version_info[1]) < (3, 7):
e19c60
++    sys.exit("Python 3.7 or a more recent version is required.")
e19c60
+\ No newline at end of file
e19c60
diff -Naur tpm2-pkcs11-1.3.2/tools/setup.py tpm2-pkcs11-1.3.2a/tools/setup.py
e19c60
--- tpm2-pkcs11-1.3.2/tools/setup.py	2020-08-10 07:31:22.000000000 -0700
e19c60
+++ tpm2-pkcs11-1.3.2a/tools/setup.py	2021-03-23 15:27:01.160008742 -0700
e19c60
@@ -9,7 +9,6 @@
e19c60
 
e19c60
 setup(
e19c60
     name='tpm2-pkcs11-tools',
e19c60
-    python_requires='>=3.7',
e19c60
     long_description=long_description,
e19c60
     long_description_content_type='text/markdown',
e19c60
     version='1.33.7',
e19c60
diff -Naur tpm2-pkcs11-1.3.2/tools/tpm2_pkcs11/__init__.py tpm2-pkcs11-1.3.2a/tools/tpm2_pkcs11/__init__.py
e19c60
--- tpm2-pkcs11-1.3.2/tools/tpm2_pkcs11/__init__.py	2020-08-09 06:46:13.000000000 -0700
e19c60
+++ tpm2-pkcs11-1.3.2a/tools/tpm2_pkcs11/__init__.py	2021-03-23 15:27:01.161008751 -0700
e19c60
@@ -2,6 +2,6 @@
e19c60
 
e19c60
 import sys
e19c60
 
e19c60
-# Requires python 3.7 or greater
e19c60
-if (sys.version_info[0], sys.version_info[1]) < (3, 7):
e19c60
-    sys.exit("Python 3.7 or a more recent version is required.")
e19c60
\ No newline at end of file
e19c60
+# Sunset python < 3 support
e19c60
+if sys.version_info[0] < 3:
e19c60
+    sys.exit("Python 3 or a more recent version is required.")
e19c60
\ No newline at end of file
e19c60