Repository: matrix-org/python-canonicaljson (language: python)

Issue:
Pin black (and other dev tools)
`tox.ini` is probably the easiest way to do this, rather than declaring a `dev` extra in setuptools config.


Discussion / hints:

Fix patch:
diff --git a/README.rst b/README.rst
index 9311e6c..af0c212 100644
--- a/README.rst
+++ b/README.rst
@@ -17,7 +17,7 @@ Features
 * Encodes the JSON as UTF-8.
 * Can encode ``frozendict`` immutable dictionaries.
 
-Supports Python versions 3.5 and newer.
+Supports Python versions 3.7 and newer.
 
 .. _`RFC 7159`: https://tools.ietf.org/html/rfc7159
 
diff --git a/setup.py b/setup.py
index 1c2cc94..49b16cb 100755
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ def exec_file(path_segments, name):
     author_email="team@matrix.org",
     url="https://github.com/matrix-org/python-canonicaljson",
     license="Apache License, Version 2.0",
-    python_requires="~=3.5",
+    python_requires="~=3.7",
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Intended Audience :: Developers",
diff --git a/tox.ini b/tox.ini
index 768a346..2895be7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = packaging, pep8, py35, py36, py37, py38, py39, py310, pypy3
+envlist = packaging, pep8, py37, py38, py39, py310, pypy3
 
 [testenv]
 deps =
@@ -16,13 +16,13 @@ deps =
 commands = check-manifest
 
 [testenv:pep8]
-basepython = python3.6
+basepython = python3.7
 deps =
     flake8
 commands = flake8 .
 
 [testenv:black]
-basepython = python3.6
+basepython = python3.7
 deps =
-    black
+    black==21.9b0
 commands = python -m black --check --diff .


Test patch:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 3c8180b..00de968 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -14,7 +14,7 @@ jobs:
       - uses: actions/checkout@v2
       - uses: actions/setup-python@v2
         with:
-          python-version: '3.6'
+          python-version: '3.7'
       - run: pip install tox
       - run: tox -e ${{ matrix.toxenv }}
 
@@ -22,7 +22,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10', 'pypy3']
+        python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
 
     steps:
       - uses: actions/checkout@v2