Skip to content

Commit

Permalink
Bump required Python version to 3.8 in remaining places. (#969)
Browse files Browse the repository at this point in the history
Co-authored-by: Pieter Marsman <[email protected]>
  • Loading branch information
felixxm and pietermarsman committed Jul 6, 2024
1 parent a6aa329 commit c9ffd01
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed

- Updated Python 3.7 syntax to 3.8 ([#956](https://github.com/pdfminer/pdfminer.six/pull/956))
- Updated all Python version specifications to a minimum of 3.8 ([#969](https://github.com/pdfminer/pdfminer.six/pull/969))

## [20231228]

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Any contribution is appreciated! You might want to:
* Pull requests should be merged to master.
* Include unit tests when possible. In case of bugs, this will help to prevent the same mistake in the future. In case
of features, this will show that your code works correctly.
* Code should work for Python 3.6+.
* Code should work for Python 3.8+.
* Test your code by using nox (see below).
* New features should be well documented using docstrings.
* Check if the [README.md](../README.md) or [readthedocs](../docs/source) documentation needs to be updated.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Features
Installation instructions
=========================

* Install Python 3.6 or newer.
* Install Python 3.8 or newer.
* Install pdfminer.six.

::
Expand Down
2 changes: 1 addition & 1 deletion pdfminer/pdftypes.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import io
import logging
import zlib
from typing import Protocol
from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterable,
Optional,
Protocol,
Union,
List,
Tuple,
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
install_requires=[
"charset-normalizer >= 2.0.0",
"cryptography >= 36.0.0",
'typing_extensions; python_version < "3.8"',
'importlib_metadata; python_version < "3.8"',
],
extras_require=extras_require,
description="PDF parser and analyzer",
Expand All @@ -49,7 +47,7 @@
"layout analysis",
"text mining",
],
python_requires=">=3.6",
python_requires=">=3.8",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
Expand Down

0 comments on commit c9ffd01

Please sign in to comment.