diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4838438..869da7c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,14 +17,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.10' - uses: pre-commit/action@v3.0.1 tests: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.10', '3.13'] os: [ubuntu-latest, windows-latest] steps: @@ -48,10 +48,10 @@ jobs: # FYI: credentials are not configured. Turned off for now # - name: Upload to Codecov - # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 + # if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' # uses: codecov/codecov-action@v1 # with: - # name: pytests-py3.7 + # name: pytests-py'3.10' # flags: pytests # file: ./coverage.xml # fail_ci_if_error: true @@ -64,7 +64,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: '3.10' - name: Installation (deps and package) run: | @@ -83,13 +83,13 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v4 - - name: Set up Python 3.7 + - name: Set up Python '3.10' uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: '3.10' - name: install flit run: | - pip install flit~=3.0 + pip install flit~=3.12 - name: Build and publish run: | flit publish diff --git a/README.md b/README.md index 351969f..eba8454 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ tox and with test coverage: ```bash -tox -e py37-cov +tox -e py310-cov ``` The easiest way to write tests, is to edit tests/fixtures.md @@ -33,7 +33,7 @@ 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 py310-pre-commit ``` or directly @@ -46,7 +46,7 @@ pre-commit run --all To run the pre-commit hook test: ```bash -tox -e py37-hook +tox -e py310-hook ``` ## Publish to PyPi diff --git a/pyproject.toml b/pyproject.toml index fd7fcbd..428a40d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,14 +16,13 @@ classifiers = [ ] keywords = "mdformat,markdown,markdown-it" -requires-python=">=3.7" -requires=["mdformat >=0.7.0,<0.8.0", "mdit-py-plugins >=0.2.7"] +requires-python=">=3.10" +requires=["mdformat >=1.0.0", "mdit-py-plugins >=0.2.7"] [tool.flit.metadata.requires-extra] test = [ - "pytest~=6.0", - "coverage", - "pytest-cov", + "pytest>=8.0.0", + "pytest-cov>=7.0.0", ] dev = ["pre-commit"] diff --git a/tox.ini b/tox.ini index db6faa5..f2571d3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,23 +1,23 @@ [tox] -envlist = py38 +envlist = py310 isolated_build = True -[testenv:py{37,38,39}] +[testenv:py{310,313}] extras = test deps = black flake8 commands = pytest {posargs} -[testenv:py{37,38,39}-cov] +[testenv:py{310,313}-cov] extras = test commands = pytest --cov={envsitepackagesdir}/mdformat_deflist {posargs} -[testenv:py{37,38,39}-pre-commit] +[testenv:py{310,313}-pre-commit] extras = dev commands = pre-commit run {posargs:--all-files} -[testenv:py{37,38,39}-hook] +[testenv:py{310,313}-hook] extras = dev commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}