Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
strategy:
matrix:
env: ["py310", "py311", "py312", "py313", "py314"]
env: ["py311", "py312", "py313", "py314"]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed

- Support for Python 3.9 (EOL).
- **Breaking**: Support for Python 3.10, which reached [end of life](https://peps.python.org/pep-0619/#lifespan) on October 1, 2026. Python 3.11 or newer is required.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [

### Supported Python Versions

Python version 3.10 and above.
Python version 3.11 and above (below 4.0).

## Usage

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "todoist_api_python"
version = "4.0.0"
description = "Official Python SDK for the Todoist API."
authors = [{ name = "Doist Developers", email = "dev@doist.com" }]
requires-python = ">=3.10,<4"
requires-python = ">=3.11,<4"
readme = "README.md"
license = "MIT"
keywords = ["todoist", "rest", "sync", "api", "python"]
Expand Down Expand Up @@ -83,7 +83,7 @@ warn_required_dynamic_aliases = true
warn_untyped_fields = true

[tool.ruff]
target-version = "py310" # used by some linters like UP, FA, PERF
target-version = "py311" # used by some linters like UP, FA, PERF

[tool.ruff.lint]
select = [
Expand Down
8 changes: 1 addition & 7 deletions tests/test_api_completed_tasks.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
from __future__ import annotations

import sys
from datetime import datetime, timezone
from datetime import UTC, datetime
from typing import TYPE_CHECKING, Any

if sys.version_info >= (3, 11):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing workarounds 😌

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! This was mostly done now for security reasons, but this is nice. 😁

from datetime import UTC
else:
UTC = timezone.utc

import pytest

from tests.data.test_defaults import DEFAULT_API_URL, PaginatedItems
Expand Down
8 changes: 1 addition & 7 deletions tests/test_api_tasks.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
from __future__ import annotations

import json
import sys
from datetime import datetime, timezone
from datetime import UTC, datetime
from typing import TYPE_CHECKING, Any

if sys.version_info >= (3, 11):
from datetime import UTC
else:
UTC = timezone.utc

import pytest

from tests.data.test_defaults import DEFAULT_API_URL, PaginatedResults
Expand Down
8 changes: 1 addition & 7 deletions todoist_api_python/_core/utils.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
from __future__ import annotations

import sys
import uuid
from datetime import date, datetime, timezone
from datetime import UTC, date, datetime
from typing import TypeVar

if sys.version_info >= (3, 11):
from datetime import UTC
else:
UTC = timezone.utc


def format_date(d: date) -> str:
"""Format a date object as YYYY-MM-DD."""
Expand Down
8 changes: 1 addition & 7 deletions todoist_api_python/api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import annotations

import sys
from collections.abc import Callable, Iterator
from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeVar
from typing import TYPE_CHECKING, Annotated, Any, Literal, Self, TypeVar
from weakref import finalize

import httpx2
Expand Down Expand Up @@ -61,11 +60,6 @@

from todoist_api_python.types import ColorString, LanguageCode, ViewStyle

if sys.version_info >= (3, 11):
from typing import Self
else:
Self = TypeVar("Self", bound="TodoistAPI")


class TodoistAPI:
"""
Expand Down
8 changes: 1 addition & 7 deletions todoist_api_python/api_async.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from __future__ import annotations

import sys
import warnings
from collections.abc import AsyncIterator, Callable
from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeVar
from typing import TYPE_CHECKING, Annotated, Any, Literal, Self, TypeVar

import httpx2
from annotated_types import Ge, Le, MaxLen, MinLen
Expand Down Expand Up @@ -61,11 +60,6 @@

from todoist_api_python.types import ColorString, LanguageCode, ViewStyle

if sys.version_info >= (3, 11):
from typing import Self
else:
Self = TypeVar("Self", bound="TodoistAPIAsync")


class TodoistAPIAsync:
"""
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py310,py311,py312,py313,py314
envlist = py311,py312,py313,py314

[testenv]
runner = uv-venv-lock-runner
Expand Down
189 changes: 13 additions & 176 deletions uv.lock

Large diffs are not rendered by default.

Loading