Blame 0001-Remove-maximum-Python-version-limit.patch

7771b77
From 4ad14e2911329832c3fa9025a2fadc921f5bedd8 Mon Sep 17 00:00:00 2001
7771b77
From: Andre Masella <andre@masella.name>
7771b77
Date: Tue, 14 Mar 2023 14:55:40 -0400
7771b77
Subject: [PATCH] Remove maximum Python version limit
7771b77
7771b77
Allow any new version of Python for llvmlite. Closes #912
7771b77
---
7771b77
 azure-pipelines.yml | 4 ++++
7771b77
 setup.py            | 8 +++-----
7771b77
 2 files changed, 7 insertions(+), 5 deletions(-)
7771b77
7771b77
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
7771b77
index 0b14f97..759187a 100644
7771b77
--- a/azure-pipelines.yml
7771b77
+++ b/azure-pipelines.yml
7771b77
@@ -38,6 +38,10 @@ jobs:
7771b77
         PYTHON: '3.10'
7771b77
         CONDA_ENV: cienv
7771b77
         RUN_FLAKE8: yes
7771b77
+      py311:
7771b77
+        PYTHON: '3.11'
7771b77
+        CONDA_ENV: cienv
7771b77
+        RUN_FLAKE8: yes
7771b77
         RUN_CLANG_FORMAT: yes
7771b77
 # temporarily disabled
7771b77
 #       pypy:
7771b77
diff --git a/setup.py b/setup.py
7771b77
index 02b1604..2a546e6 100644
7771b77
--- a/setup.py
7771b77
+++ b/setup.py
7771b77
@@ -33,7 +33,6 @@ except ImportError:
7771b77
 
7771b77
 
7771b77
 min_python_version = "3.7"
7771b77
-max_python_version = "3.11"  # exclusive
7771b77
 
7771b77
 
7771b77
 def _guard_py_ver():
7771b77
@@ -43,13 +42,12 @@ def _guard_py_ver():
7771b77
     parse = _version_module.parse
7771b77
 
7771b77
     min_py = parse(min_python_version)
7771b77
-    max_py = parse(max_python_version)
7771b77
     cur_py = parse('.'.join(map(str, sys.version_info[:3])))
7771b77
 
7771b77
-    if not min_py <= cur_py < max_py:
7771b77
-        msg = ('Cannot install on Python version {}; only versions >={},<{} '
7771b77
+    if not min_py <= cur_py:
7771b77
+        msg = ('Cannot install on Python version {}; only versions >={} '
7771b77
                'are supported.')
7771b77
-        raise RuntimeError(msg.format(cur_py, min_py, max_py))
7771b77
+        raise RuntimeError(msg.format(cur_py, min_py))
7771b77
 
7771b77
 
7771b77
 _guard_py_ver()
7771b77
-- 
7771b77
2.39.2
7771b77