From c4bcfc45b812e6aa60430f0e7f3d55be0cc90aff Mon Sep 17 00:00:00 2001 From: Mathieu Dupuy Date: Wed, 28 Feb 2024 09:48:20 +0100 Subject: [PATCH] Revert "remove python 3.6" This reverts commit c2062da2441e8c6e4e4a4e6e5d90c9ca610c7987. --- .github/workflows/main.yml | 10 ++++++++++ pyproject.toml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2ee00978..756b6d24b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,7 @@ jobs: strategy: matrix: python-version: + - '3.6' - '3.7' - '3.8' - '3.9' @@ -36,9 +37,18 @@ jobs: - name: Install dependencies run: python -m pip install --upgrade codecov tox + - name: Install tox-py + if: ${{ matrix.python-version == '3.6' }} + run: python -m pip install --upgrade tox-py + - name: Run tox targets for ${{ matrix.python-version }} + if: ${{ matrix.python-version != '3.6' }} run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .) + - name: Run tox targets for ${{ matrix.python-version }} + if: ${{ matrix.python-version == '3.6' }} + run: tox --py current + - name: Run extra tox targets if: ${{ matrix.python-version == '3.9' }} run: | diff --git a/pyproject.toml b/pyproject.toml index 9dc68bfbb..538867dce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ classifiers = [ "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP", ] -requires-python = ">=3.7" +requires-python = ">=3.6" dependencies = [ "django>=3.0", 'backports.zoneinfo;python_version<"3.9"',