Skip to content

Commit 5285a28

Browse files
committed
Bump requiered python version to 3.11
1 parent 7b84065 commit 5285a28

File tree

5 files changed

+9
-69
lines changed

5 files changed

+9
-69
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, macos-13, macos-latest]
19-
python-version: ["3.10", "3.11", "3.12"]
20-
exclude: # https://github.com/actions/setup-python/issues/875
21-
- os: macos-latest
22-
python-version: "3.10"
19+
python-version: ["3.11", "3.12", "3.13"]
2320
max-parallel: 3
2421
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
2522
steps:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ authors = [
2929
description = "ImplicitDict base class that turns a subclass into a dict indexing attributes, making [de]serialization easy for complex typing-annotated data types."
3030
readme = "README.md"
3131
license = "Apache-2.0"
32-
requires-python = ">=3.10"
32+
requires-python = ">=3.11"
3333
classifiers = [
3434
"Programming Language :: Python :: 3",
3535
"Operating System :: OS Independent",
@@ -56,7 +56,7 @@ dev = [
5656

5757

5858
[tool.ruff]
59-
target-version = "py310"
59+
target-version = "py311"
6060

6161
# Default + isort + pyupgrade
6262
lint.select = [

tests/test_string_based_date_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import datetime, timedelta, timezone
1+
from datetime import UTC, datetime, timedelta
22

33
import arrow
44
import pytest
@@ -74,6 +74,6 @@ def test_non_mutation():
7474
def test_zulu_default():
7575
"""When a non-string datetime is provided, expect the string representation to use Z as the UTC timezone."""
7676

77-
assert StringBasedDateTime(datetime.now(timezone.utc)).endswith("Z")
77+
assert StringBasedDateTime(datetime.now(UTC)).endswith("Z")
7878
assert StringBasedDateTime(arrow.utcnow().datetime).endswith("Z")
7979
assert StringBasedDateTime(arrow.utcnow()).endswith("Z")

tests/test_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file use old typing style on purpose to test compatibiliy (noqa
22
# comments)
33
import enum
4-
from datetime import datetime, timezone
4+
from datetime import UTC, datetime
55
from typing import List, Optional # noqa UP035
66

77
from implicitdict import ImplicitDict, StringBasedDateTime, StringBasedTimeDelta
@@ -189,7 +189,7 @@ class SpecialTypesData(ImplicitDict):
189189
@staticmethod
190190
def example_value():
191191
return ImplicitDict.parse(
192-
{"datetime": datetime.now(timezone.utc).isoformat(), "timedelta": "12h", "yesno": "Yes", "boolean": "true"},
192+
{"datetime": datetime.now(UTC).isoformat(), "timedelta": "12h", "yesno": "Yes", "boolean": "true"},
193193
SpecialTypesData,
194194
)
195195

@@ -202,7 +202,7 @@ def example_value():
202202
return ImplicitDict.parse(
203203
{
204204
"special_types": {
205-
"datetime": datetime.now(timezone.utc).isoformat(),
205+
"datetime": datetime.now(UTC).isoformat(),
206206
"timedelta": "12h",
207207
"yesno": "Yes",
208208
"boolean": "true",

0 commit comments

Comments
 (0)