Repository: grahamgower/demesdraw (language: python)

Issue:
Support of python 3.6
Hi @grahamgower,

I noticed that since new version of `demesdraw v0.1.1` Python3.6 is no longer supported. Maybe it is possible to include it back? Some of my projects still use version 3.6 and I would like to use `demesdraw` there.


Discussion / hints:
Ah, sorry. I realised I hadn't actually tested 3.6 (not even in CI), so I just assumed it was broken. I'll add 3.6 to the CI tests and make another release ASAP.

Fix patch:
diff --git a/requirements/minimal.txt b/requirements/minimal.txt
index 6d27ba6b..7a73579b 100644
--- a/requirements/minimal.txt
+++ b/requirements/minimal.txt
@@ -1,5 +1,8 @@
 # Core dependencies.
 demes==0.1.2
-matplotlib==3.4.2
-numpy==1.20.3
-scipy==1.6.3
+matplotlib==3.3.4; python_version=='3.6'
+matplotlib==3.4.2; python_version>='3.7'
+numpy==1.19.5; python_version=='3.6'
+numpy==1.20.3; python_version>='3.7'
+scipy==1.5.4; python_version=='3.6'
+scipy==1.6.3; python_version>='3.7'
diff --git a/setup.cfg b/setup.cfg
index 5abf8f78..050c9ad1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -12,6 +12,7 @@ classifiers =
     Operating System :: OS Independent
     Intended Audience :: Science/Research
     Programming Language :: Python :: 3
+    Programming Language :: Python :: 3.6
     Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
@@ -20,7 +21,7 @@ classifiers =
 [options]
 packages = demesdraw
 include_package_data = True
-python_requires = >= 3.7
+python_requires = >= 3.6
 install_requires =
     demes >= 0.1.2
     numpy


Test patch:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index a81b3c9a..4efa97b3 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -24,7 +24,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-18.04, windows-2019, macos-10.15]
-        python-version: [3.7, 3.9]
+        python-version: [3.6, 3.9]
     env:
       OS: ${{ matrix.os }}
       PYTHON: ${{ matrix.python-version }}