Skip to content

Commit

Permalink
feat: drop Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Jan 10, 2024
1 parent 88d126c commit 9f847a4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.11]
python-version: [3.8, 3.11]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python 3.10.5 3.8.4 3.9.4 3.7.12
python 3.10.5 3.8.4 3.9.4
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ tox
and with test coverage:

```bash
tox -e py37-cov
tox -e py38-cov
```

The easiest way to write tests, is to edit `tests/fixtures.md`

To run the code formatting and style checks:

```bash
tox -e py37-pre-commit
tox -e py38-pre-commit
```

or directly
Expand All @@ -38,7 +38,7 @@ pre-commit run --all
To run the pre-commit hook test:

```bash
tox -e py37-hook
tox -e py38-hook
```

## `ptw` testing
Expand Down
28 changes: 14 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["mdformat", "markdown", "markdown-it"]
requires-python = ">=3.7.2"
requires-python = ">=3.8.4"
dependencies = [
"mdformat >= 0.7.16",
"mdformat-gfm >= 0.3.5",
Expand All @@ -26,22 +26,22 @@ dynamic = ["version", "description"]
[project.optional-dependencies]
recommended = [
# Keep in-sync with README
"mdformat-admon",
"mdformat-beautysh",
"mdformat-black",
"mdformat-config",
"mdformat-footnote",
"mdformat-frontmatter",
"mdformat-simple-breaks",
"mdformat-tables",
"mdformat-toc",
"mdformat-web",
"mdformat-admon >= 1.1.1",
"mdformat-beautysh >= 0.1.1",
"mdformat-black >= 0.1.1",
"mdformat-config >= 0.1.3",
"mdformat-footnote >= 0.1.1",
"mdformat-frontmatter", # FIXME: pinning to >=2.0.8, is blocked by mdformat-gfm pinning <0.4
"mdformat-simple-breaks >= 0.0.1",
"mdformat-tables >= 0.4.1",
"mdformat-toc >= 0.3.0",
"mdformat-web >= 0.1.0",
# Patches https://github.com/lovesegfault/beautysh/issues/248 for Python 3.12
"setuptools",
]
test = [
"pytest >= 7.0",
"pytest-cov",
"pytest >= 7.4.4",
"pytest-cov >= 4.1.0",
]
dev = ["pre-commit"]

Expand Down Expand Up @@ -70,6 +70,6 @@ profile = "black"
[tool.pytest-watcher]
now = true
runner = "tox"
runner_args = ["-e", "py37-recommended"]
runner_args = ["-e", "py38-recommended"]
patterns = ["*.py"]
ignore_patterns = []
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[tox]
envlist =
py{310}-cov
py{37}-recommended
py{38}-recommended
py{310}-pre-commit
py{37}-hook
py{38}-hook
isolated_build = True
skip_missing_interpreters = False

[testenv:py{37}]
[testenv:py{38}]
extras = test
commands = pytest {posargs} --ff --nf -vv

[testenv:py{310}-cov]
extras = test
commands = pytest --cov=mdformat_mkdocs {posargs}

[testenv:py{37}-recommended]
[testenv:py{38}-recommended]
extras = recommended,test
commands = pytest {posargs} --ff --nf -vv --exitfirst

[testenv:py{310}-pre-commit]
extras = dev
commands = pre-commit run {posargs:--all-files}

[testenv:py{37}-hook]
[testenv:py{38}-hook]
extras = dev
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}

Expand Down

0 comments on commit 9f847a4

Please sign in to comment.