Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Drop support for EOL Python 3.7 and 3.8 #25

Merged
merged 2 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.11]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
KyleKing marked this conversation as resolved.
Show resolved Hide resolved
os: [ubuntu-latest, windows-latest]

steps:
Expand All @@ -48,10 +48,10 @@ jobs:

# FYI: Requires token to continue usage
# - name: Upload to Codecov
# if: matrix.python-version == 3.7
# if: matrix.python-version == 3.9
# uses: codecov/codecov-action@v1
# with:
# name: pytests-py3.7
# name: pytests-py3.9
# flags: pytests
# file: ./coverage.xml
# fail_ci_if_error: true
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: '3.9'

- name: Installation (deps and package)
run: |
Expand All @@ -83,10 +83,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.9'
- name: install flit
run: |
pip install flit~=3.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tox
To run the code formatting and style checks:

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

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

```bash
tox -e py37-hook
tox -e py311-hook
```

## Publish to PyPi
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
]
keywords = "mdformat,markdown,markdown-it"

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

[tool.flit.metadata.requires-extra]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tox]
envlist = py{37,311},py{37,311}-hook
envlist = py{39,310,311,312,313}
isolated_build = True

[testenv:py{37,311}]
[testenv:py{39,310,311,312,313}]
extras = test
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs} --ff --nf -vv
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs}
KyleKing marked this conversation as resolved.
Show resolved Hide resolved

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

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

Expand Down
Loading