diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 946c2ba..49d48c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: git_commit_gpgsign: true git_committer_email: ${{ secrets.FYJ_GIT_COMMITTER_EMAIL }} git_committer_name: ${{ secrets.FYJ_GIT_COMMITTER_NAME }} - # Currently, signing commits leads to the CI hanging indefinitely. + # Currently, signing tags leads to the CI hanging indefinitely. # See https://github.com/semantic-release/semantic-release/issues/3065 git_tag_gpgsign: false git_user_signingkey: true diff --git a/pyproject.toml b/pyproject.toml index 047b02f..9cc0106 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,9 +42,7 @@ requires-python = ">=3.11" # Support Python 3.10+. [project.optional-dependencies] coveralls = ["coveralls~=4.0.1"] -dev = [ - "pre-commit~=4.0.1", -] +dev = ["pre-commit~=4.0.1"] docs = [ "furo==2024.8.6", @@ -289,9 +287,10 @@ where = ["src"] root = "." [tool.tox] -env_list = ["py31{1,2,3}", "coveralls", "docs", "package"] +env_list = ["3.11", "3.12", "3.13", "coveralls", "docs", "package"] isolated_build = true -requires = ["tox>=4.23.2", "tox-uv>=1.16.0"] +# requires = ["tox>=4.23.2", "tox-uv>=1.16.0"] +requires = ["tox>=4.23.2"] no_package = false skip_missing_interpreters = true @@ -310,16 +309,18 @@ description = "test and lint the project" download = true extras = ["test"] set_env = { PYTHONPATH = "{toxinidir}/src", PYRIGHT_PYTHON_FORCE_VERSION = "latest" } +uv_python_preference = "only-system" [tool.tox.env.coveralls] -# If running outside Github, ensure that the the `COVERALLS_REPO_TOKEN` +# If running outside GitHub, ensure that the `COVERALLS_REPO_TOKEN` # environment variable is set. # Also, this only works for Python = ">=3.8,<3.13". # See https://github.com/TheKevJames/coveralls-python/issues/523 base_python = ["py312"] -commands = [["coveralls", "--service=github"]] +commands = [["python", "--version"], ["coveralls", "--service=github"]] description = "submit coverage results to coverall.io" depends = ["env_run_base"] +deps = ["coveralls"] extras = ["coveralls"] pass_env = ["COVERALLS_REPO_TOKEN", "GITHUB_*"] skip_install = true @@ -345,7 +346,7 @@ skip_install = true [tool.tox.gh-actions] python = """ - 3.11: py311 - 3.12: py312, coveralls - 3.13: py313, docs, package -""" + 3.11: 3.11 + 3.12: 3.12, coveralls + 3.13: 3.13, docs, package + """