Repository: larq/zoo (language: python)

Issue:
Drop Python 3.6 support
Pytest 7.1.0 (March 2022) has dropped support for Python 3.6, causing our [CI to fail](https://github.com/larq/zoo/pull/385). As a result, we haven't updated Pytest since. Perhaps we should also drop Python 3.6 support in general or in CI only?

Any thoughts, @lgeiger?


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 2376f3e..ae90729 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -23,7 +23,7 @@ jobs:
       - name: Run Flake8
         run: flake8
       - name: Black code style
-        run: black . --check --target-version py36
+        run: black . --check --target-version py37
       - name: Check import order with isort
         run: isort . --check --diff
       - name: Type check with PyType
diff --git a/README.md b/README.md
index 85bb196..a71b92e 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ For more information, see [larq.dev/zoo](https://docs.larq.dev/zoo/).
 
 Before installing Larq Zoo, please install:
 
-- [Python](https://python.org) version `3.6`, `3.7`, `3.8`, or `3.9`
+- [Python](https://python.org) version `3.7`, `3.8`, `3.9`, or `3.10`
 - [Tensorflow](https://www.tensorflow.org/install) version `1.15`, `2.0`, `2.1`, `2.2`, `2.3`, `2.4`, `2.5`, `2.6`, 2.7`, or `2.8`
 
 ## Installation
diff --git a/setup.py b/setup.py
index 08786a4..c0d5b64 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
 
 
 def readme():
-    with open("README.md", "r") as f:
+    with open("README.md") as f:
         return f.read()
 
 
@@ -52,10 +52,10 @@ def readme():
         "License :: OSI Approved :: Apache Software License",
         "Programming Language :: Python :: 3",
         "Programming Language :: Python :: 3 :: Only",
-        "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",
         "Topic :: Scientific/Engineering",
         "Topic :: Scientific/Engineering :: Mathematics",
         "Topic :: Scientific/Engineering :: Artificial Intelligence",


Test patch:
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
index 4778f18..90c608a 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -14,8 +14,6 @@ jobs:
         tf-version: [1.15.5, 2.0.4, 2.1.4, 2.2.3, 2.3.4, 2.4.4, 2.5.3, 2.6.5, 2.7.3, 2.8.2, 2.9.1, 2.10.0-rc1]
         python-version: [3.7]
         include:
-          - tf-version: 2.4.4
-            python-version: 3.6
           - tf-version: 2.4.4
             python-version: 3.8
           - tf-version: 2.5.3