From cdbfbbf02f7ba6164928e78fbf565bf871aa60c9 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 18 May 2023 15:27:34 +0200
Subject: [PATCH] Drop Python v3.7 support (#193)

---
 .gitlab-ci.yml          | 5 -----
 .pre-commit-config.yaml | 2 +-
 README.md               | 2 +-
 docs/index.rst          | 2 +-
 pyproject.toml          | 2 +-
 5 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9791a0c..ac60b91 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,11 +88,6 @@ type:
     - poetry install
     - poetry run pytest
 
-tests:3.7:
-  extends: .tests
-  variables:
-    PYTHON_VERSION: "3.7"
-
 tests:3.8:
   extends: .tests
   variables:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fa1254d..bfb85b3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
     rev: v3.3.1
     hooks:
     - id: pyupgrade
-      args: [--py37-plus]
+      args: [--py38-plus]
 -   repo: https://github.com/Lucas-C/pre-commit-hooks
     rev: v1.3.1
     hooks:
diff --git a/README.md b/README.md
index 285d896..9f87982 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ It is currently used by following programs:
 - Sign/verify and encrypt/decrypt messages with Duniter credentials
 
 ## Requirements
-- Python >= 3.7.0
+- Python >= 3.8.0
 - [websocket-client](https://pypi.org/project/websocket-client)
 - [jsonschema](https://pypi.org/project/jsonschema)
 - [pyPEG2](https://pypi.org/project/pyPEG2)
diff --git a/docs/index.rst b/docs/index.rst
index b335451..2468ca1 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -16,7 +16,7 @@ DuniterPy helps to handle the following problem:
 Requirements
 ------------
 
-DuniterPy requires Python 3.7.0 minimum.
+DuniterPy requires Python 3.8.0 minimum.
 
 Installation
 ------------
diff --git a/pyproject.toml b/pyproject.toml
index 15b7f7e..df8e863 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,7 +26,7 @@ requires = ["poetry-core>=1.0.0"]
 build-backend = "poetry.core.masonry.api"
 
 [tool.poetry.dependencies]
-python = "^3.7.0"
+python = "^3.8.0"
 graphql-core = "^3.1.2"
 websocket-client = "^1.1.0"
 jsonschema = "^4.5.0"
-- 
GitLab