From 214982c7251389986d91b7108a45f37ea261a78e Mon Sep 17 00:00:00 2001
From: Florian Spreckelsen <f.spreckelsen@indiscale.com>
Date: Sun, 14 Apr 2024 11:01:17 +0200
Subject: [PATCH] MAINT: Remove support for Python 3.7

---
 .gitlab-ci.yml | 12 +++---------
 CHANGELOG.md   |  1 +
 setup.py       |  2 +-
 tox.ini        |  2 +-
 4 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d2abdcd6..817f0819 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -134,22 +134,16 @@ unittest_py39:
     - python3 -c "import linkahead; print('LinkAhead Version:', linkahead.__version__)"
     - tox
 
-unittest_py37:
+unittest_py38:
   tags: [docker]
   stage: unittest
-  image: python:3.7
+  image: python:3.8
   script: &python_test_script
-    - pip install nose pandas pytest pytest-cov gitignore-parser openpyxl>=3.0.7 xlrd==1.2 h5py
+    - pip install pynose pandas pytest pytest-cov gitignore-parser openpyxl>=3.0.7 xlrd==1.2 h5py
     - pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
     - pip install .
     - pytest --cov=caosadvancedtools unittests
 
-unittest_py38:
-  tags: [docker]
-  stage: unittest
-  image: python:3.8
-  script: *python_test_script
-
 unittest_py310:
   tags: [docker]
   stage: unittest
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8eb33876..da90043e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 * The deprecated `parent` keyword from the YAML datamodel specification. Use
   `inherit_from_{obligatory|recommended|suggested}` instead.
+* Support for Python 3.7
 
 ### Fixed ###
 
diff --git a/setup.py b/setup.py
index a35bcad4..686dae58 100755
--- a/setup.py
+++ b/setup.py
@@ -154,7 +154,7 @@ def setup_package():
         long_description_content_type="text/markdown",
         author='Henrik tom Wörden',
         author_email='h.tomwoerden@indiscale.com',
-        python_requires='>=3.7',
+        python_requires='>=3.8',
         install_requires=["linkahead>=0.13.1",
                           "jsonref",
                           "jsonschema[format]>=4.4.0",
diff --git a/tox.ini b/tox.ini
index 00548dea..15a968f4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py37, py38, py39, py310, py311
+envlist=py38, py39, py310, py311
 skip_missing_interpreters = true
 
 [testenv]
-- 
GitLab