Repository: pyccel/pyccel (language: python)

Issue:
Python 3.7 End of Life
Python 3.7 reaches end of life today. We can now drop official support for 3.7 and update our CI workflows.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a7a782146..0ac87ca61b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,18 @@
 # Change Log
 All notable changes to this project will be documented in this file.
 
+## \[Unreleased\]
+
+### Added
+
+### Fixed
+
+### Changed
+
+### Deprecated
+
+-   Drop official support for Python 3.7 due to End of Life.
+
 ## \[1.9.2\] - 2023-10-13
 
 ### Added
diff --git a/ci_tools/bot_tools/bot_funcs.py b/ci_tools/bot_tools/bot_funcs.py
index 0ace60af31..f31010233e 100644
--- a/ci_tools/bot_tools/bot_funcs.py
+++ b/ci_tools/bot_tools/bot_funcs.py
@@ -12,12 +12,12 @@
 default_python_versions = {
         'anaconda_linux': '3.10',
         'anaconda_windows': '3.10',
-        'coverage': '3.7',
+        'coverage': '3.8',
         'docs': '3.8',
         'intel': '3.9',
-        'linux': '3.7',
-        'macosx': '3.10',
-        'pickle_wheel': '3.7',
+        'linux': '3.8',
+        'macosx': '3.11',
+        'pickle_wheel': '3.8',
         'pickle': '3.8',
         'editable_pickle': '3.8',
         'pyccel_lint': '3.8',
diff --git a/setup.cfg b/setup.cfg
index 89c57c51e2..ff7043c4e5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,7 +18,7 @@ install_requires =
     termcolor >= 1.0.0
     textx >= 2.2
     filelock >= 3.4.0
-python_requires = >= 3.7
+python_requires = >= 3.8
 zip_safe = False
 include_package_data = True
 


Test patch:
diff --git a/ci_tools/devel_branch_tests.py b/ci_tools/devel_branch_tests.py
index a8679f661a..1102ef9e92 100644
--- a/ci_tools/devel_branch_tests.py
+++ b/ci_tools/devel_branch_tests.py
@@ -5,13 +5,13 @@
 
 if __name__ == '__main__':
     bot = Bot(pr_id = 0, commit = os.environ['GITHUB_REF'])
-    for python_version in ('3.7', '3.8', '3.9', '3.10', '3.11'):
+    for python_version in ('3.8', '3.9', '3.10', '3.11'):
         bot.run_tests(['linux'], python_version, force_run = True)
-    bot.run_tests(['windows'], '3.7', force_run = True)
+    bot.run_tests(['windows'], '3.8', force_run = True)
     bot.run_tests(['macosx'], '3.9', force_run = True)
     bot.run_tests(['pickle'], '3.8', force_run = True)
     bot.run_tests(['editable_pickle'], '3.8', force_run = True)
-    bot.run_tests(['pickle_wheel'], '3.7', force_run = True)
+    bot.run_tests(['pickle_wheel'], '3.8', force_run = True)
     bot.run_tests(['anaconda_linux'], '3.10', force_run = True)
     bot.run_tests(['anaconda_windows'], '3.10', force_run = True)
     bot.run_tests(['intel'], '3.9', force_run = True)