diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 16ee5bb..5dab43e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Tests on: push: branches: [ master ] - tags: [ '*.*.*' ] + tags: [ '[0-9]+.[0-9]+.[0-9]+*' ] pull_request: branches: [ master ] @@ -24,8 +24,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.7, 3.11] - os: [ubuntu-latest, windows-latest] + python-version: ['3.9', '3.13', '3.14-dev'] + os: [ubuntu-latest, macos-latest, windows-latest] + continue-on-error: ${{ matrix.python-version == '3.14-dev' }} steps: - uses: actions/checkout@v4 @@ -48,7 +49,7 @@ jobs: # FYI: Requires token to continue usage # - name: Upload to Codecov - # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 + # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 # uses: codecov/codecov-action@v1 # with: # name: pytests @@ -64,7 +65,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Installation (deps and package) run: | @@ -86,7 +87,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: install flit run: | pip install flit~=3.0 diff --git a/mdformat_myst/py.typed b/mdformat_myst/py.typed new file mode 100644 index 0000000..7632ecf --- /dev/null +++ b/mdformat_myst/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561 diff --git a/pyproject.toml b/pyproject.toml index 940fee1..4260c7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,6 @@ requires = ["flit_core >=2,<4"] build-backend = "flit_core.buildapi" - [tool.flit.metadata] module = "mdformat_myst" author = "Taneli Hukkinen" @@ -19,9 +18,9 @@ classifiers = [ ] keywords = "mdformat,markdown,formatter,gfm" -requires-python=">=3.7" +requires-python=">=3.9" requires=[ - "mdformat >=0.7.0,<0.8.0", + "mdformat >=0.7.0", "mdit-py-plugins >=0.3.0", "mdformat-tables >=0.4.0", "mdformat-frontmatter >=0.3.2", diff --git a/tox.ini b/tox.ini index ae526c6..3f8959b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,15 +1,15 @@ [tox] -envlist = py38 +envlist = py39 isolated_build = True -[testenv:py{37,38,39}] +[testenv:py{39,311,313}] extras = test deps = black flake8 commands = pytest {posargs} -[testenv:py{37,38,39}-hook] +[testenv:py{39,311,313}-hook] commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure} [flake8]