From 689ba3d2fea1e04a53b12f934462d66af65ca470 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Mon, 7 Feb 2022 16:26:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20MAINTAIN:=20Drop=20support=20for?= =?UTF-8?q?=20EOL=20Python=203.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 2 +- mdformat_footnote/plugin.py | 4 +++- pyproject.toml | 2 +- tox.ini | 10 +++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74ade9d..4885702 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9.0-rc.1] + python-version: [3.7, 3.8, 3.9, '3.10'] os: [ubuntu-latest, windows-latest] steps: diff --git a/mdformat_footnote/plugin.py b/mdformat_footnote/plugin.py index 385f731..d30259c 100644 --- a/mdformat_footnote/plugin.py +++ b/mdformat_footnote/plugin.py @@ -1,4 +1,6 @@ -from typing import Mapping +from __future__ import annotations + +from collections.abc import Mapping from markdown_it import MarkdownIt from mdformat.renderer import RenderContext, RenderTreeNode diff --git a/pyproject.toml b/pyproject.toml index 4bfc1d6..61477a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ ] keywords = "mdformat,markdown,markdown-it" -requires-python=">=3.6" +requires-python=">=3.7" requires=["mdformat >=0.7.0,<0.8.0", "mdit-py-plugins", ] diff --git a/tox.ini b/tox.ini index da12282..46434e8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,20 +1,20 @@ [tox] -envlist = py{36,37,38,39} +envlist = py{37,38,39,310} isolated_build = True -[testenv:py{36,37,38,39}] +[testenv:py{37,38,39,310}] extras = test commands = pytest {posargs} -[testenv:py{36,37,38,39}-cov] +[testenv:py{37,38,39,310}-cov] extras = test commands = pytest --cov={envsitepackagesdir}/mdformat_footnote {posargs} -[testenv:py{36,37,38,39}-pre-commit] +[testenv:py{37,38,39,310}-pre-commit] extras = dev commands = pre-commit run {posargs} -[testenv:py{36,37,38,39}-hook] +[testenv:py{37,38,39,310}-hook] extras = dev commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}