diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 709a535..9643a4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.10' - uses: pre-commit/action@v3.0.1 @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} @@ -39,7 +39,7 @@ jobs: # we install with flit --pth-file, # so that coverage will be recorded for the module run: | - pip install flit>=3.12.0 + pip install flit>=4.0.2 flit install --deps=production --extras=test --pth-file - name: Run pytest @@ -61,7 +61,7 @@ jobs: steps: - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.10' @@ -80,7 +80,7 @@ jobs: steps: - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: "3.x" - name: Install build tooling diff --git a/pyproject.toml b/pyproject.toml index 1e371c7..4ce065b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,15 @@ [build-system] -requires = ["flit_core >=2,<4"] +requires = ["flit_core >=4.0.2,<5"] build-backend = "flit_core.buildapi" -[tool.flit.metadata] -module = "mdformat_footnote" -author = "Gaige B. Paulsen" -author-email = "gaige@cluetrust.com" -description-file = "README.md" -home-page = "https://github.com/gaige/mdformat-footnote" +[project] +name = "mdformat_footnote" +authors = [ + {name = "Gaige B. Paulsen", email = "gaige@cluetrust.com"}, +] +dynamic = ["version", "description"] +readme = "README.md" +requires-python = ">=3.10" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", @@ -16,21 +18,23 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ] -keywords = "mdformat,markdown,markdown-it" +keywords = ["mdformat", "markdown", "markdown-it"] +dependencies = [ + "mdformat >=0.7.0", + "mdit-py-plugins >=0.4.0", +] -requires-python=">=3.10" -requires=["mdformat >=0.7.0", - "mdit-py-plugins >=0.4.0", - ] +[project.urls] +Home = "https://github.com/gaige/mdformat-footnote" -[tool.flit.metadata.requires-extra] +[project.optional-dependencies] test = [ "pytest>=8.0.0", "pytest-cov>=7.0.0", ] dev = ["pre-commit"] -[tool.flit.entrypoints."mdformat.parser_extension"] +[project.entry-points."mdformat.parser_extension"] footnote = "mdformat_footnote" [tool.flit.sdist] diff --git a/requirements.txt b/requirements.txt index 028c1ac..9946531 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -flit>=3.12.0 -tox>=4.56.1 +flit>=4.0.2 +tox>=4.61.1 pytest>=9.1.1 mdformat >=0.7.0 mdit_py_plugins >=0.4.0