Skip to content

Commit 988d269

Browse files
python version bump (#44)
* Drop python 3.9 * Add support up through 3.15. * update to support through 3.14. Typing fixes for doc linting. * drop python 3.15. * bump setup tools version * Pull semgrep test dependencies into a different subpackage. It does not seem to install cleanly from pip under python 3.14, and this is breaking unrelated test pipelines.
1 parent ac1c459 commit 988d269

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
strategy:
3535
matrix:
36-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
36+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
3737
steps:
3838
- name: Checkout code
3939
uses: actions/checkout@v4

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.2.0 - 2025-10-02
4+
- Update supported python versions.
5+
Support for 3.9 dropped. Support through 3.14 added.
6+
37
## 2.1.1 - 2025-08-11
48
- Add py.typed to all top level packages
59

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222

2323
_DEFAULT_PYTHON = "3.13"
24-
_ALL_PYTHON = ["3.9", "3.10", "3.11", "3.12", "3.13"]
24+
_ALL_PYTHON = ["3.10", "3.11", "3.12", "3.13", "3.14"]
2525

2626

2727
@nox.session(python=_ALL_PYTHON)
@@ -40,7 +40,7 @@ def pytest(session):
4040
@nox.session(python=_DEFAULT_PYTHON)
4141
def semgrep_src(session):
4242
"""Scan the code for security problems with semgrep"""
43-
session.install("-e", ".[test]")
43+
session.install("-e", ".[testsecurity]")
4444
# session.run("semgrep", "scan", "--strict", "--verbose", "--error", "--junit-xml", "--junit-xml-output=semgrep-src.xml", "src")
4545
session.run("semgrep", "scan", "--strict", "--verbose", "--error", "src")
4646

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## ###########################################################################
44
[project]
55
name = "planet-auth"
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
dynamic = ["version"]
88
# version = "X.X.X"
99
description = "Planet Auth Utility Code"
@@ -69,9 +69,11 @@ test = [
6969
"pytest",
7070
"pytest-cov",
7171
"pytest-xdist",
72-
"semgrep",
7372
"validators",
7473
]
74+
testsecurity = [
75+
"semgrep",
76+
]
7577
dev = [
7678
"planet-auth[test, docs, build]",
7779
]
@@ -85,7 +87,7 @@ internal = [
8587
plauth = "planet_auth_utils.commands.cli.main:cmd_plauth"
8688

8789
[build-system]
88-
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"]
90+
requires = ["setuptools >= 77.0.3", "setuptools_scm >= 8"]
8991
build-backend = "setuptools.build_meta"
9092

9193
[tool.setuptools.dynamic]

src/planet_auth/logging/auth_logger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import importlib.metadata
1919

2020
from contextlib import suppress
21-
from typing import Dict
21+
from typing import Dict, Optional
2222

2323
from .events import AuthEvent
2424
from planet_auth.auth_exception import AuthException, InvalidTokenException
@@ -234,14 +234,14 @@ def setPyLoggerForAuthLogger(py_logger: logging.Logger):
234234
_lib_global_py_logger = py_logger
235235

236236

237-
def setStructuredLogging(nested_key=DEFAULT_NESTED_KEY):
237+
def setStructuredLogging(nested_key: Optional[str] = DEFAULT_NESTED_KEY):
238238
"""
239239
Configure the library to emit structured log messages. When this
240240
mode is set, logs will be emitted specifying information using the logger's
241241
`extra` field.
242242
243243
Parameters:
244-
nested_key : dict key in which to wrap the library's data logged under
244+
nested_key: dict key in which to wrap the library's data logged under
245245
the `extra` field. The default is to include all library logged
246246
extra fields encapsulated inside a dictionary with the single key
247247
`props`. This default was chosen to comform to the expectations of

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.1
1+
2.2.0

0 commit comments

Comments
 (0)