Skip to content
Open
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/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
name: Run tests
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "python-ulid"
description = "Universally unique lexicographically sortable identifier"
dynamic = ["version", "readme"]
license = "MIT"
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [
{ name = "Martin Domke", email = "mail@martindomke.net" },
]
Expand All @@ -19,11 +19,11 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
]

Expand Down Expand Up @@ -53,7 +53,7 @@ packages = [

[tool.ruff]
extend = ".ruff_defaults.toml"
target-version = "py39"
target-version = "py310"
line-length = 100

[tool.ruff.format]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_ulid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from typing import Optional
from typing import Union

import pytest
from freezegun import freeze_time
Expand Down Expand Up @@ -172,7 +170,7 @@ def test_ulid_from_timestamp_overflow() -> None:
ULID.from_timestamp(constants.MAX_TIMESTAMP + 1)


Params = Union[bytes, str, int, float]
Params = bytes | str | int | float


@pytest.mark.parametrize(
Expand Down Expand Up @@ -233,7 +231,7 @@ def test_pydantic_protocol() -> None:
ulid = ULID()

class Model(BaseModel):
ulid: Optional[ULID] = None # noqa: FA100
ulid: ULID | None = None

model: Model | None = None
for value in [ulid, str(ulid), int(ulid), bytes(ulid)]:
Expand Down
Loading