Skip to content

Commit 656ef84

Browse files
committed
MAINT: installing the minimal versions of the dependencies in the test pipeline, to ensure that they remain compatible
1 parent 860dbe3 commit 656ef84

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/github-ci.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
- name: Install requirements (Python 3)
4040
run: pip install -r requirements/ci.txt -r requirements/dev.txt
4141
- name: Install pdfly
42-
run: pip install .
42+
run: |
43+
# We want to install the minimal versions of the dependencies,
44+
# to ensure that they remain compatible:
45+
sed -i '/dependencies = \[/,/\]/s/>=/==/' pyproject.toml
46+
pip install .
4347
4448
- name: Run tests
4549
run: pytest -vv

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "A pure-python CLI application to manipulate PDF files"
1010
readme = "README.md"
1111
dynamic = ["version"]
1212
license = { file = "LICENSE" }
13-
requires-python = ">=3.6.1"
13+
requires-python = ">=3.7.0"
1414

1515
# https://pypi.org/pypi?%3Aaction=list_classifiers
1616
classifiers = [
@@ -22,6 +22,7 @@ classifiers = [
2222
"Operating System :: OS Independent",
2323
"Programming Language :: Python :: 3",
2424
"Programming Language :: Python :: 3 :: Only",
25+
# We do not test Python 3.7 in CI, so support is not guaranteed
2526
"Programming Language :: Python :: 3.7",
2627
"Programming Language :: Python :: 3.8",
2728
"Programming Language :: Python :: 3.9",
@@ -31,7 +32,7 @@ classifiers = [
3132
]
3233

3334
dependencies = [
34-
"pypdf>=3.8.2",
35+
"pypdf>=5.1.0",
3536
"typer>=0.12.4",
3637
"pillow",
3738
"pydantic",

0 commit comments

Comments
 (0)