Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: test package on Python 3.12 #220

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading