Skip to content

Commit e7ea36c

Browse files
authored
chore(deps): Update dependencies, test python 3.14, and fix cache bug in CI (#113)
* Bump dependencies to get rid of some vulnerabilities * Update test to account for new click version * python 3.14 support * fix uv cache overwriting
1 parent a427738 commit e7ea36c

5 files changed

Lines changed: 1002 additions & 597 deletions

File tree

.github/workflows/ci_tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
13+
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
@@ -28,9 +28,9 @@ jobs:
2828
name: Define a cache for the virtual environment based on the dependencies lock file
2929
with:
3030
path: ./.venv
31-
key: venv-${{ hashFiles('uv.lock') }}
31+
key: venv-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
3232
- name: Install the project dependencies
33-
run: uv sync --extra dev
33+
run: uv sync --extra dev --python ${{ matrix.python-version }}
3434
- name: Install pyright
3535
run: uv tool install pyright
3636
- name: Run type checking

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
# Released
1010

11+
## 5.3.0 - 27/06/2026
12+
13+
### Added
14+
15+
- Support for Python 3.14 (added to the CI tests).
16+
17+
### Security
18+
19+
- Bumped minimum versions of `pillow` (>=12.2.0) and `requests` (>=2.33.0) to pull in
20+
fixes for known CVEs, and upgraded all locked dependencies to non-vulnerable versions.
21+
1122
## 5.2.0 - 27/06/2026
1223

1324
### Fixed

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pylette"
3-
version = "5.2.0"
3+
version = "5.3.0"
44
description = "A Python library for extracting color palettes from images."
55
authors = [
66
{name = "Ivar Stangeby"}
@@ -17,13 +17,14 @@ classifiers = [
1717
"Programming Language :: Python :: 3.11",
1818
"Programming Language :: Python :: 3.12",
1919
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
2021
"Typing :: Typed"
2122
]
2223
dependencies = [
2324
"numpy>=1.26.4",
2425
"opencv-python>=4.11.0.86",
25-
"pillow>=9.3",
26-
"requests>=2.32.3",
26+
"pillow>=12.2.0",
27+
"requests>=2.33.0",
2728
"scikit-learn>=1.2",
2829
"typer>=0.12.5",
2930
"typing-extensions>=4.4.0",
@@ -45,7 +46,7 @@ packages = ["Pylette"]
4546
[project.optional-dependencies]
4647
dev = [
4748
"pre-commit>=3.7.1",
48-
"pytest>=8.2.2",
49+
"pytest>=9.0.3",
4950
"opencv-python>=4.10.0.84",
5051
"mkdocs[python]>=1.6.0",
5152
"mkdocs-material>=9.5.27",

tests/integration/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def test_cli_no_input_is_error():
1111
result = runner.invoke(pylette_app, [])
1212
assert result.exit_code == 2
13-
assert "Usage: " in result.stderr
13+
assert "Usage: " in result.output
1414

1515
result_help = runner.invoke(pylette_app, ["--help"])
1616
assert result_help.exit_code == 0

0 commit comments

Comments
 (0)