Skip to content

Commit

Permalink
feat: Support Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 9, 2024
1 parent f5d8570 commit b882761
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
- { script: "test:dependencies", python-version: "3.12" }
- { script: "typing:check", python-version: "3.12" }
Expand Down Expand Up @@ -83,6 +84,7 @@ jobs:
- name: Run tests
env:
HATCH_ENV: ${{ matrix.python-version }}
HATCH_VERBOSE: "1"
[%- for env in passenv %]
[[ env ]]: ${{ secrets.[[ env ]] }}
[%- endfor %]
Expand Down
15 changes: 15 additions & 0 deletions src/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
Expand Down Expand Up @@ -64,6 +65,16 @@ source = "vcs"
[tool.hatch.envs.default]
installer = "uv"

[tool.hatch.envs.default.overrides]
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
"true",
] }
matrix.python.env-vars = [
{ key = "PIP_PRE", value = "1", if = [
"3.13",
] },
]

[tool.hatch.envs.sync.scripts]
console = "[[ tap_package_command_line_name ]] {args}"
jsonl = "[[ tap_package_command_line_name ]] {args} > [[ tap_package_distribution_name ]].jsonl"
Expand All @@ -85,6 +96,7 @@ python = [
"3.10",
"3.11",
"3.12",
"3.13",
]

[tool.hatch.envs.typing]
Expand Down Expand Up @@ -138,6 +150,9 @@ DEP002 = [
"pytest",
]

[tool.pyproject-fmt]
max_supported_python = "3.13"

[tool.pytest.ini_options]
addopts = "-vvv"

Expand Down

0 comments on commit b882761

Please sign in to comment.