From 768ad63375b3105b9976acf6da8fcffe23355934 Mon Sep 17 00:00:00 2001
From: rht <rhtbot@protonmail.com>
Date: Mon, 7 Aug 2023 07:23:55 -0400
Subject: [PATCH] Drop support for Python 3.8

---
 .github/workflows/build_lint.yml    | 2 --
 docs/tutorials/intro_tutorial.ipynb | 2 +-
 pyproject.toml                      | 2 +-
 setup.py                            | 4 ++--
 4 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml
index 898a37decf3..7e558d4576a 100644
--- a/.github/workflows/build_lint.yml
+++ b/.github/workflows/build_lint.yml
@@ -36,8 +36,6 @@ jobs:
             python-version: "3.10"
           - os: ubuntu
             python-version: "3.9"
-          - os: ubuntu
-            python-version: "3.8"
           # Disabled for now. See https://github.com/projectmesa/mesa/issues/1253
           #- os: ubuntu
           #  python-version: 'pypy-3.8'
diff --git a/docs/tutorials/intro_tutorial.ipynb b/docs/tutorials/intro_tutorial.ipynb
index 404ae8d25bf..67a1c7a7a28 100644
--- a/docs/tutorials/intro_tutorial.ipynb
+++ b/docs/tutorials/intro_tutorial.ipynb
@@ -60,7 +60,7 @@
    "source": [
     "### Tutorial Setup\n",
     "\n",
-    "Create and activate a [virtual environment](http://docs.python-guide.org/en/latest/dev/virtualenvs/). *Python version 3.8 or higher is required*.\n",
+    "Create and activate a [virtual environment](http://docs.python-guide.org/en/latest/dev/virtualenvs/). *Python version 3.9 or higher is required*.\n",
     "\n",
     "Install Mesa:\n",
     "\n",
diff --git a/pyproject.toml b/pyproject.toml
index 7b7b1d6d026..4ba779076a1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -48,4 +48,4 @@ extend-ignore = [
 extend-exclude = ["docs", "build"]
 # Hardcode to Python 3.8.
 # Reminder to update mesa-examples if the value below is changed.
-target-version = "py38"
+target-version = "py39"
diff --git a/setup.py b/setup.py
index b2c7a996783..6473a2c9e96 100644
--- a/setup.py
+++ b/setup.py
@@ -74,9 +74,9 @@
         "Topic :: Scientific/Engineering :: Artificial Intelligence",
         "Intended Audience :: Science/Research",
         "Programming Language :: Python :: 3 :: Only",
-        "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
         "License :: OSI Approved :: Apache Software License",
         "Operating System :: OS Independent",
         "Development Status :: 3 - Alpha",
@@ -86,5 +86,5 @@
         [console_scripts]
         mesa=mesa.main:cli
     """,
-    python_requires=">=3.8",
+    python_requires=">=3.9",
 )