Skip to content

Commit

Permalink
BUG: Update pyproject.toml with minimum Python version of 3.8.
Browse files Browse the repository at this point in the history
Closes py-pdf#2858.
  • Loading branch information
zmeves committed Sep 19, 2024
1 parent c4cdb5c commit 33cf6c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.7
py-version=3.8

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down
2 changes: 1 addition & 1 deletion docs/user/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ There are several ways to install pypdf. The most common option is to use pip.

## pip

pypdf requires Python 3.7+ to run.
pypdf requires Python 3.8+ to run.

Typically Python comes with `pip`, a package installer. Using it you can
install pypdf:
Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "A pure-python PDF library capable of splitting, merging, cropping
readme = "README.md"
dynamic = ["version"]
license = { file = "LICENSE" }
requires-python = ">=3.6"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand All @@ -30,7 +30,6 @@ classifiers = [

dependencies = [
"typing_extensions >= 4.0; python_version < '3.11'",
"dataclasses; python_version < '3.7'",
]

[project.urls]
Expand All @@ -41,13 +40,11 @@ Changelog = "https://pypdf.readthedocs.io/en/latest/meta/CHANGELOG.html"

[project.optional-dependencies]
full = [
"cryptography; python_version >= '3.7'",
"PyCryptodome; python_version == '3.6'",
"cryptography; python_version >= '3.8'",
"Pillow>=8.0.0",
]
crypto = [
"cryptography; python_version >= '3.7'",
"PyCryptodome; python_version == '3.6'",
"cryptography; python_version >= '3.8'",
]
image = ["Pillow>=8.0.0"]
dev = ["black", "pip-tools", "pre-commit<2.18.0", "pytest-cov", "pytest-socket", "pytest-timeout", "flit", "wheel", "pytest-xdist"]
Expand Down

0 comments on commit 33cf6c7

Please sign in to comment.