From d10219eef313698262410ad657d80103bfe13f75 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 | 6 +++++- pyproject.toml | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index d4cda99..81e9434 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -39,7 +39,11 @@ jobs: - name: Install requirements (Python 3) run: pip install -r requirements/ci.txt -r requirements/dev.txt - name: Install pdfly - run: pip install . + run: | + # We want to install the minimal versions of the dependencies, + # to ensure that they 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..af24784 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>=3.16.0", "typer>=0.12.4", "pillow", "pydantic",