From 33cf6c7934c2ce346e29cc5a52cf836de526c1d9 Mon Sep 17 00:00:00 2001 From: Zach Meves Date: Wed, 18 Sep 2024 20:00:28 -0700 Subject: [PATCH] BUG: Update pyproject.toml with minimum Python version of 3.8. Closes #2858. --- .pylintrc | 2 +- docs/user/installation.md | 2 +- pyproject.toml | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.pylintrc b/.pylintrc index 3ad613991..ddfc8a95a 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/docs/user/installation.md b/docs/user/installation.md index 6b9e0c8bc..56f86d089 100644 --- a/docs/user/installation.md +++ b/docs/user/installation.md @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 3da378ce9..bcf074244 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -30,7 +30,6 @@ classifiers = [ dependencies = [ "typing_extensions >= 4.0; python_version < '3.11'", - "dataclasses; python_version < '3.7'", ] [project.urls] @@ -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"]