Skip to content

Commit

Permalink
MAINT: test package on Python 3.12 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Nov 21, 2023
1 parent 7290c1e commit c167668
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ preview = true
target-version = [
"py310",
"py311",
"py312",
"py36",
"py37",
"py38",
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Typing :: Typed

[options]
Expand Down
2 changes: 1 addition & 1 deletion src/repoma/utilities/project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_supported_python_versions(
"""Extract supported Python versions from package classifiers.
>>> get_supported_python_versions()
['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
"""
project_info = get_project_info(pyproject)
if project_info.supported_python_versions is None:
Expand Down
4 changes: 4 additions & 0 deletions src/repoma/utilities/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def sort_case_insensitive(dct): # type: ignore[no-untyped-def]
sorting that is the same as `the one used by VS Code
<https://code.visualstudio.com/updates/v1_76#_jsonc-document-sorting>`_.
>>> import pytest, sys
>>> if sys.version_info >= (3, 12):
... pytest.skip()
...
>>> sort_case_insensitive(
... {
... "cSpell.enabled": True,
Expand Down

0 comments on commit c167668

Please sign in to comment.