Repository: scrapinghub/spidermon (language: python)

Issue:
Update supported python versions

- Add support for python3.11
- Drop support for python3.6 - security support finished on 23 Dec 2021 -
- Maybe drop support for python3.7 - security support will finish on 27 Jun 2023 -


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f3536ab8..d188a06c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -18,12 +18,11 @@ jobs:
     strategy:
       matrix:
         include:
-        - python-version: "3.6"
-          tox: min
-        - python-version: "3.7"
         - python-version: "3.8"
+          tox: min
         - python-version: "3.9"
         - python-version: "3.10"
+        - python-version: "3.11"
 
     steps:
       - uses: actions/checkout@v2
@@ -38,9 +37,9 @@ jobs:
       - name: Run tests
         run: tox -e ${{ matrix.tox || 'py' }}
       - name: Run docs and formatting tests
-        if: ${{ matrix.python-version == 3.10 }}
+        if: ${{ matrix.python-version == 3.11 }}
         run: |
           tox -e docs
       - name: Upload coverage.xml to codecov
-        if: ${{ matrix.python-version == 3.10 }}
+        if: ${{ matrix.python-version == 3.11 }}
         uses: codecov/codecov-action@v1
diff --git a/README.rst b/README.rst
index d9b80593..7a97ba3c 100644
--- a/README.rst
+++ b/README.rst
@@ -34,7 +34,7 @@ Spidermon is an extension for Scrapy spiders. The package provides useful tools
 Requirements
 ============
 
-* Python Version: 3.6, 3.7, 3.8, 3.9 or 3.10
+* Python Version: 3.8, 3.9, 3.10 or 3.11
 
 Install
 =======
diff --git a/setup.py b/setup.py
index e072050a..4f4a7ba5 100644
--- a/setup.py
+++ b/setup.py
@@ -56,13 +56,12 @@
         "Operating System :: OS Independent",
         "Programming Language :: Python",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
         "Topic :: Internet :: WWW/HTTP",
         "Topic :: System :: Monitoring",
     ],
-    python_requires=">=3.6",
+    python_requires=">=3.8",
 )
diff --git a/tox.ini b/tox.ini
index cf65c734..ea1883b2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = min,py37,py38,py39,py310
+envlist = min,py39,py310,py311
 skip_missing_interpreters = True
 
 [testenv]
@@ -9,7 +9,7 @@ extras =
 commands = pytest -s --cov=spidermon --cov-report= {posargs:tests}
 
 [testenv:min]
-basepython = python3.6
+basepython = python3.8
 deps =
     jsonschema[format]==3.2.0
 


Test patch:
diff --git a/tests/test_validators_jsonschema.py b/tests/test_validators_jsonschema.py
index db9671d5..341b42fb 100644
--- a/tests/test_validators_jsonschema.py
+++ b/tests/test_validators_jsonschema.py
@@ -744,7 +744,7 @@ class Format(SchemaTest):
         DataTest(name="regexes. valid", data={"regexes": ["[0-9]+"]}, valid=True),
         DataTest(
             name="regexes. invalid",
-            data={"regexes": ["[0-9]++"]},
+            data={"regexes": ["[0-9]+++"]},
             valid=False,
             expected_errors={"regexes.0": [messages.INVALID_REGEX]},
         ),