Blame SOURCES/revert-require-py37.patch

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