Repository: MarketSquare/robotframework-robocop (language: python)

Issue:
Remove Python 3.7 support 
It is no longer supported https://endoflife.date/python


Discussion / hints:
Wow, the time's running so fast 😲 
Foundation started to be a lot more strict after having Python 2.7 alive for so long ;) But I'm still not fully switched to Python 3.8 and and we have 3.11 for 10 months already.. .

Fix patch:
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index c935fb712..7bc8c316a 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -7,7 +7,7 @@ sphinx:
 build:
   os: ubuntu-22.04
   tools:
-    python: "3.7"
+    python: "3.8"
 
 python:
   install:
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index e08b8a656..07f248510 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -103,7 +103,7 @@ comments are generally not needed.
 
 All code, including test code, must be compatible with all supported Python
 interpreters and versions. Most importantly this means that the code must
-support Python 3.7+ and Robot Framework 3.2.2+.
+support Python 3.8+ and Robot Framework 3.2.2+.
 
 To ensure high quality of the code we use `pylama
 <https://github.com/klen/pylama>`_ static code analysis tool to check
diff --git a/README.md b/README.md
index 6d2343a82..2d6f6e561 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ Most common questions with answers can be found at the bottom ⬇ of this README
 Requirements
 ------------
 
-Python 3.7+ :snake: and Robot Framework 3.2.2+ :robot:.
+Python 3.8+ :snake: and Robot Framework 3.2.2+ :robot:.
 
 Installation
 ------------
diff --git a/docs/overview.rst b/docs/overview.rst
index f0d2eb570..cc13d7bb1 100644
--- a/docs/overview.rst
+++ b/docs/overview.rst
@@ -14,7 +14,7 @@ looking for potential errors or violations to code quality standards (commonly r
 Requirements
 ============
 
-Python 3.7+ |:snake:| and Robot Framework 3.2.2+ |:robot:|.
+Python 3.8+ |:snake:| and Robot Framework 3.2.2+ |:robot:|.
 
 Installation
 ============
diff --git a/docs/releasenotes/unreleased/other.1.rst b/docs/releasenotes/unreleased/other.1.rst
new file mode 100644
index 000000000..fbadcbe2f
--- /dev/null
+++ b/docs/releasenotes/unreleased/other.1.rst
@@ -0,0 +1,5 @@
+Drop Python 3.7 support (#942)
+-------------------------------
+
+Robocop dropped support for Python 3.7 as it is no longer officially supported. See more details at
+https://endoflife.date/python .
diff --git a/noxfile.py b/noxfile.py
index 6b011c351..f3236c338 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -1,6 +1,6 @@
 import nox
 
-UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
+UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
 nox.options.sessions = [
     "unit",
 ]
diff --git a/setup.py b/setup.py
index 782d056b7..31d8150bb 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,6 @@
 License :: OSI Approved :: Apache Software License
 Operating System :: OS Independent
 Programming Language :: Python
-Programming Language :: Python :: 3.7
 Programming Language :: Python :: 3.8
 Programming Language :: Python :: 3.9
 Programming Language :: Python :: 3.10
@@ -48,7 +47,7 @@
     keywords=KEYWORDS,
     packages=["robocop"],
     project_urls=PROJECT_URLS,
-    python_requires=">=3.7",
+    python_requires=">=3.8",
     include_package_data=True,
     install_requires=[
         "jinja2>=3.0,<4.0",


Test patch:
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index e07642ab8..710e17402 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -17,10 +17,10 @@ jobs:
       matrix:
         include:
           - os: 'ubuntu-latest'
-            python-version: '3.7'
+            python-version: '3.8'
             rf-version: 'rf3'
           - os: 'ubuntu-latest'
-            python-version: '3.7'
+            python-version: '3.8'
             rf-version: 'rf4'
           - os: 'ubuntu-latest'
             python-version: '3.8'