Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 102924b

Browse files
authored
🔧 Drop support for EOL Python 3.7 and 3.8 (#25)
1 parent 01dbde1 commit 102924b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
python-version: [3.7, 3.11]
27+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
2828
os: [ubuntu-latest, windows-latest]
2929

3030
steps:
@@ -48,10 +48,10 @@ jobs:
4848
4949
# FYI: Requires token to continue usage
5050
# - name: Upload to Codecov
51-
# if: matrix.python-version == 3.7
51+
# if: matrix.python-version == 3.9
5252
# uses: codecov/codecov-action@v1
5353
# with:
54-
# name: pytests-py3.7
54+
# name: pytests-py3.9
5555
# flags: pytests
5656
# file: ./coverage.xml
5757
# fail_ci_if_error: true
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set up Python
6565
uses: actions/setup-python@v2
6666
with:
67-
python-version: 3.7
67+
python-version: '3.9'
6868

6969
- name: Installation (deps and package)
7070
run: |
@@ -83,10 +83,10 @@ jobs:
8383
steps:
8484
- name: Checkout source
8585
uses: actions/checkout@v4
86-
- name: Set up Python 3.7
86+
- name: Set up Python 3.9
8787
uses: actions/setup-python@v5
8888
with:
89-
python-version: 3.7
89+
python-version: '3.9'
9090
- name: install flit
9191
run: |
9292
pip install flit~=3.0

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tox
4545
To run the code formatting and style checks:
4646

4747
```bash
48-
tox -e py37-pre-commit
48+
tox -e py311-pre-commit
4949
```
5050

5151
or directly
@@ -58,7 +58,7 @@ pre-commit run --all
5858
To run the pre-commit hook test:
5959

6060
```bash
61-
tox -e py37-hook
61+
tox -e py311-hook
6262
```
6363

6464
## Publish to PyPi

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616
]
1717
keywords = "mdformat,markdown,markdown-it"
1818

19-
requires-python=">=3.7.0"
19+
requires-python=">=3.9"
2020
requires=["mdformat>=0.7.5,<0.8.0", "wcwidth>=0.2.13"]
2121

2222
[tool.flit.metadata.requires-extra]

‎tox.ini‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[tox]
2-
envlist = py{37,311},py{37,311}-hook
2+
envlist = py{39,310,311,312,313}
33
isolated_build = True
44

5-
[testenv:py{37,311}]
5+
[testenv:py{39,310,311,312,313}]
66
extras = test
7-
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs} --ff --nf -vv
7+
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs}
88

9-
[testenv:pre-commit]
9+
[testenv:py{39,310,311,312,313}-pre-commit]
1010
deps = pre-commit
1111
commands = pre-commit run {posargs}
1212

13-
[testenv:py{37,311}-hook]
13+
[testenv:py{39,310,311,312,313}-hook]
1414
deps = pre-commit
1515
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
1616

0 commit comments

Comments
 (0)