diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5f8c8b3..76b4b5d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -12,7 +12,7 @@ jobs: matrix: python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", - "pypy-2.7", "pypy-3.10" + "pypy-2.7", "pypy-3.11" ] os: [ubuntu-latest, macOS-latest, windows-latest] diff --git a/CHANGES.md b/CHANGES.md index d7d1a9a..4092e15 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## 1.7.2 + +* Add JXL to supported image types +* Update package classifier to support python 3.14 + ## 1.7.1 * Use only a GET request when no body, otherwise POST diff --git a/README.md b/README.md index 23944a7..eeb99c9 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ tinify.from_file("image.png").convert( ```python # Convert to smallest format converted = tinify.from_file("image.png").convert( - type=["image/webp", "image/webp"] + type=["image/webp", "image/avif", "image/jxl"] ) extension = converted.result().extension converted.to_file("image." + extension) diff --git a/setup.py b/setup.py index b843144..fd55554 100644 --- a/setup.py +++ b/setup.py @@ -52,5 +52,6 @@ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ), ) diff --git a/tinify/_typed.py b/tinify/_typed.py index 6e51a8a..fc1a6da 100644 --- a/tinify/_typed.py +++ b/tinify/_typed.py @@ -5,7 +5,7 @@ class ResizeOptions(TypedDict,total=False): width: Optional[int] height: Optional[int] -ConvertTypes = Literal['image/webp', 'image/jpeg', 'image/png', "image/avif", "*/*"] +ConvertTypes = Literal['image/webp', 'image/jpeg', 'image/png', "image/avif", "image/jxl", "*/*"] class ConvertOptions(TypedDict, total=False): type: Union[ConvertTypes, List[ConvertTypes]] diff --git a/tinify/version.py b/tinify/version.py index deb97f3..8adfee4 100644 --- a/tinify/version.py +++ b/tinify/version.py @@ -1 +1 @@ -__version__ = '1.7.1' \ No newline at end of file +__version__ = '1.7.2'