Skip to content

Commit 30f7ace

Browse files
committed
chore: drop Python 3.10 support
1 parent bc598c0 commit 30f7ace

6 files changed

Lines changed: 26 additions & 261 deletions

File tree

‎.github/workflows/tests.yaml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
python:
27+
- '3.14'
2728
- '3.13'
2829
- '3.12'
2930
- '3.11'
30-
- '3.10'
31-
- '3.9'
3231
steps:
3332
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3433
- name: Install uv

‎.pre-commit-config.yaml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@ repos:
2626
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
2727
hooks:
2828
- id: codespell
29-
language: python
30-
additional_dependencies:
31-
- tomli==2.4.1
3229
args: [--write-changes]

‎doc/changelog.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
[Unreleased]
5+
------------
6+
7+
Changed
8+
^^^^^^^
9+
- Python 3.11 is now the minimum supported version.
10+
411
[0.3.0] - 2026-09-20
512
--------------------
613

‎pyproject.toml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ keywords = ["scim", "scim2", "provisioning", "rfc7643", "rfc7644"]
1313
classifiers = [
1414
"Intended Audience :: Developers",
1515
"Development Status :: 3 - Alpha",
16-
"Programming Language :: Python :: 3.10",
1716
"Programming Language :: Python :: 3.11",
1817
"Programming Language :: Python :: 3.12",
1918
"Programming Language :: Python :: 3.13",
@@ -25,7 +24,7 @@ classifiers = [
2524
"Operating System :: OS Independent",
2625
]
2726

28-
requires-python = ">= 3.10"
27+
requires-python = ">= 3.11"
2928
dependencies = [
3029
"click>=8.1.7",
3130
"scim2-client[httpx2]>=0.8.0",
@@ -137,7 +136,6 @@ testpaths = ["tests"]
137136
requires = ["tox>=4.19"]
138137
env_list = [
139138
"style",
140-
"py310",
141139
"py311",
142140
"py312",
143141
"py313",

‎scim2_cli/utils.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
2-
import sys
3-
from enum import Enum
2+
from enum import StrEnum
43

54
import click
65
from scim2_client import SCIMClientException
@@ -18,7 +17,7 @@ class HeaderType(click.ParamType):
1817
name = "HEADER"
1918

2019

21-
class Color(str, Enum):
20+
class Color(StrEnum):
2221
black = "black"
2322
red = "red"
2423
green = "green"
@@ -115,8 +114,6 @@ def unacceptable_fields(context, model):
115114

116115
def exception_to_click_error(exception):
117116
message = str(exception)
118-
if sys.version_info >= (3, 11) and hasattr(
119-
exception, "__notes__"
120-
): # pragma: no cover
117+
if hasattr(exception, "__notes__"):
121118
message += "\n" + "\n".join(exception.__notes__)
122119
return click.ClickException(message)

0 commit comments

Comments
 (0)