Skip to content

Commit 71c730d

Browse files
committed
Drop support for EOL Python 3.10
1 parent 1a04966 commit 71c730d

5 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- "3.13"
2424
- "3.12"
2525
- "3.11"
26-
- "3.10"
2726
os: [windows-latest, macos-latest, ubuntu-latest]
2827

2928
steps:

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ license = "MIT"
1616
license-files = [ "LICENCE" ]
1717
maintainers = [ { name = "Hugo van Kemenade" } ]
1818
authors = [ { name = "Jason Moiron", email = "jmoiron@jmoiron.net" } ]
19-
requires-python = ">=3.10"
19+
requires-python = ">=3.11"
2020
classifiers = [
2121
"Development Status :: 5 - Production/Stable",
2222
"Intended Audience :: Developers",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
2827
"Programming Language :: Python :: 3.12",
2928
"Programming Language :: Python :: 3.13",

‎tests/test_i18n.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
LOCALE_DIR = Path(humanize.i18n.__file__).parent / "locale"
1818

1919
with freeze_time("2020-02-02"):
20-
NOW = dt.datetime.now(tz=dt.timezone.utc)
20+
NOW = dt.datetime.now(tz=dt.UTC)
2121

2222

2323
@pytest.mark.parametrize("locale, one", [("de_DE", "eins"), ("fr_FR", "un")])

‎tests/test_time.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
with freeze_time(FROZEN_DATE):
2929
NOW = dt.datetime.now()
30-
NOW_UTC = dt.datetime.now(tz=dt.timezone.utc)
30+
NOW_UTC = dt.datetime.now(tz=dt.UTC)
3131
NOW_UTC_PLUS_01_00 = dt.datetime.now(tz=dt.timezone(offset=dt.timedelta(hours=1)))
3232
TODAY = dt.date.today()
3333
TOMORROW = TODAY + ONE_DAY_DELTA
@@ -327,12 +327,11 @@ def test_naturaldate(test_input: dt.date, expected: str) -> None:
327327
@freeze_time("2023-10-15 23:00:00+00:00")
328328
def test_naturaldate_tz_aware() -> None:
329329
"""naturaldate should compare dates in the timezone of the given value."""
330-
utc = dt.timezone.utc
331330
aedt = dt.timezone(dt.timedelta(hours=11))
332331
cest = dt.timezone(dt.timedelta(hours=2))
333332
edt = dt.timezone(dt.timedelta(hours=-4))
334333
pdt = dt.timezone(dt.timedelta(hours=-7))
335-
future = dt.datetime(2023, 10, 16, hour=6, tzinfo=utc)
334+
future = dt.datetime(2023, 10, 16, hour=6, tzinfo=dt.UTC)
336335

337336
# UTC: now is Oct 15, future is Oct 16 => tomorrow
338337
assert humanize.naturaldate(future) == "tomorrow"

‎tox.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env_list =
66
lint
77
mypy
88
py{py3}
9-
py{310-315}
9+
py{311-315}
1010
py{314-315}t
1111

1212
[testenv]

0 commit comments

Comments
 (0)