Skip to content

Commit

Permalink
Merge pull request #1067 from sirosen/support-313
Browse files Browse the repository at this point in the history
Begin testing on Python 3.13
  • Loading branch information
sirosen authored Jan 6, 2025
2 parents d2a8289 + 7ad6d69 commit 805c68c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
tox-post-environments:
- "py3.8-mindeps"
- "py3.8-sdkmain"
- "py3.12-sdkmain"
- "py3.13-sdkmain"
cache-key-prefix: "linux"
cache-key-hash-files:
- "setup.py"

- name: "macOS"
runner: "macos-latest"
cpythons:
- "3.12"
- "3.13"
tox-environments-from-pythons: true
cache-key-prefix: "macos"
cache-key-hash-files:
Expand All @@ -43,7 +44,7 @@ jobs:
- name: "Windows"
runner: "windows-latest"
cpythons:
- "3.12"
- "3.13"
tox-environments-from-pythons: true
cache-key-prefix: "windows"
cache-key-hash-files:
Expand All @@ -52,7 +53,7 @@ jobs:
- name: "Quality"
runner: "ubuntu-latest"
cpythons:
- "3.12"
- "3.13"
tox-environments:
- "mypy"
- "reference"
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/20250106_150212_sirosen_support_313.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Enhancements

* Add official support for Python 3.13.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dependencies = [
Expand Down
8 changes: 6 additions & 2 deletions tests/functional/test_cli_profile_list.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import uuid
from unittest import mock

import pytest
from globus_sdk.tokenstorage import SQLiteAdapter


def _add_namespace_to_test_storage(storage, namespace, token_data):
alt_storage = SQLiteAdapter(":memory:", namespace=namespace)
alt_storage._connection = storage._connection
alt_storage.store(token_data)
try:
with mock.patch.object(alt_storage, "_connection", storage._connection):
alt_storage.store(token_data)
finally:
alt_storage.close()


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
clean
py{3.12,3.11,3.10,3.9,3.8}
py{3.13,3.12,3.11,3.10,3.9,3.8}
py3.8-mindeps
cov-combine
cov-report
Expand Down

0 comments on commit 805c68c

Please sign in to comment.