From 086e9483448b424129156c11a19f542e49c2b5dc Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Sun, 8 Dec 2024 17:55:13 +0100 Subject: [PATCH] MAINT: installing the minimal versions of the dependencies in the test pipeline, to ensure that they remain compatible --- .github/workflows/github-ci.yaml | 7 +++++++ pyproject.toml | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index d4cda99..2edb3b7 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -39,7 +39,14 @@ jobs: - name: Install requirements (Python 3) run: pip install -r requirements/ci.txt -r requirements/dev.txt - name: Install pdfly + if: matrix.python-version != '3.8' run: pip install . + - name: Install pdfly using the minimal versions of the dependencies + if: matrix.python-version == '3.8' + run: | + # We ensure that those minimal versions remain compatible: + sed -i '/dependencies = \[/,/\]/s/>=/==/' pyproject.toml + pip install . - name: Run tests run: pytest -vv diff --git a/pyproject.toml b/pyproject.toml index 91fe17a..01abb94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ description = "A pure-python CLI application to manipulate PDF files" readme = "README.md" dynamic = ["version"] license = { file = "LICENSE" } -requires-python = ">=3.6.1" +requires-python = ">=3.7.0" # https://pypi.org/pypi?%3Aaction=list_classifiers classifiers = [ @@ -22,6 +22,7 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", + # We do not test Python 3.7 in CI, so support is not guaranteed "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", @@ -31,7 +32,7 @@ classifiers = [ ] dependencies = [ - "pypdf>=3.8.2", + "pypdf>=5.0.1", "typer>=0.12.4", "pillow", "pydantic",