Skip to content

Commit 875e530

Browse files
Remove explicit support for Python 3.4 and 3.5, adding tests for python 3.9 (pdfminer#522)
Closes pdfminer#503
1 parent ec223d1 commit 875e530

File tree

8 files changed

+21
-29
lines changed

8 files changed

+21
-29
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: python
22
python:
3-
- "3.4"
4-
- "3.5"
53
- "3.6"
64
- "3.7"
75
- "3.8"
6+
- "3.9-dev"
87
install:
98
- pip install tox==3.14.0 tox-travis flake8
109
script:

CHANGELOG.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8-
### Removed
8+
## Removed
9+
- Support for Python 3.4 and 3.5 ([#522](https://github.com/pdfminer/pdfminer.six/pull/522))
910
- Unused dependency on `sortedcontainers` package ([#525](https://github.com/pdfminer/pdfminer.six/pull/525))
1011

12+
1113
## [20201018]
1214

1315
### Deprecated
14-
- Support for Python 3.4 and 3.5 ([#503](https://github.com/pdfminer/pdfminer.six/pull/503))
16+
- Support for Python 3.4 and 3.5 ([#507](https://github.com/pdfminer/pdfminer.six/pull/507))
1517

1618
### Added
1719

1820
- Option to disable boxes flow layout analysis when using pdf2txt ([#479](https://github.com/pdfminer/pdfminer.six/pull/479))
19-
- Support for `pathlib.PurePath` in `open_filename` ([#491](https://github.com/pdfminer/pdfminer.six/issues/491))
21+
- Support for `pathlib.PurePath` in `open_filename` ([#492](https://github.com/pdfminer/pdfminer.six/pull/492))
2022

2123
### Fixed
2224
- Pass caching parameter to PDFResourceManager in `high_level` functions ([#475](https://github.com/pdfminer/pdfminer.six/pull/475))
23-
- Fix `.paint_path` logic for handling non-rect quadrilaterals and decomposing complex paths ([#473](https://github.com/pdfminer/pdfminer.six/pull/473))
25+
- Fix `.paint_path` logic for handling non-rect quadrilaterals and decomposing complex paths ([#512](https://github.com/pdfminer/pdfminer.six/pull/512))
2426
- Fix out-of-bound access on some PDFs ([#483](https://github.com/pdfminer/pdfminer.six/pull/483))
2527

2628
### Removed
@@ -43,31 +45,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4345

4446
### Changed
4547
- Hiding fallback xref by default from dumppdf.py output ([#431](https://github.com/pdfminer/pdfminer.six/pull/431))
46-
- Raise a warning instead of an error when extracting text from a non-extractable PDF ([#350](https://github.com/pdfminer/pdfminer.six/issues/350))
48+
- Raise a warning instead of an error when extracting text from a non-extractable PDF ([#453](https://github.com/pdfminer/pdfminer.six/pull/453))
4749
- Switched from pycryptodome to cryptography package for AES decryption ([#456](https://github.com/pdfminer/pdfminer.six/pull/456))
4850

4951
## [20200517]
5052

5153
### Added
52-
- Python3 shebang line to script in tools ([#408](https://github.com/pdfminer/pdfminer.six/pull/408)
54+
- Python3 shebang line to script in tools ([#408](https://github.com/pdfminer/pdfminer.six/pull/408))
5355

5456
### Fixed
55-
- Fix ordering of textlines within a textbox when `boxes_flow=None` ([#411](https://github.com/pdfminer/pdfminer.six/issues/411))
57+
- Fix ordering of textlines within a textbox when `boxes_flow=None` ([#412](https://github.com/pdfminer/pdfminer.six/pull/412))
5658

5759
## [20200402]
5860

5961
### Added
60-
- Allow boxes_flow LAParam to be passed as None, validate the input, and update documentation ([#395](https://github.com/pdfminer/pdfminer.six/pull/395))
61-
- Also accept file-like objects in high level functions `extract_text` and `extract_pages` ([#392](https://github.com/pdfminer/pdfminer.six/pull/392))
62+
- Allow boxes_flow LAParam to be passed as None, validate the input, and update documentation ([#396](https://github.com/pdfminer/pdfminer.six/pull/396))
63+
- Also accept file-like objects in high level functions `extract_text` and `extract_pages` ([#393](https://github.com/pdfminer/pdfminer.six/pull/393))
6264

6365
### Fixed
64-
- Text no longer comes in reverse order when advanced layout analysis is disabled ([#398](https://github.com/pdfminer/pdfminer.six/pull/398))
66+
- Text no longer comes in reverse order when advanced layout analysis is disabled ([#399](https://github.com/pdfminer/pdfminer.six/pull/399))
6567
- Updated misleading documentation for `word_margin` and `char_margin` ([#407](https://github.com/pdfminer/pdfminer.six/pull/407))
6668
- Ignore ValueError when converting font encoding differences ([#389](https://github.com/pdfminer/pdfminer.six/pull/389))
6769
- Grouping of text lines outside of parent container bounding box ([#386](https://github.com/pdfminer/pdfminer.six/pull/386))
6870

6971
### Changed
70-
- Group text lines if they are centered ([#382](https://github.com/pdfminer/pdfminer.six/pull/382))
72+
- Group text lines if they are centered ([#384](https://github.com/pdfminer/pdfminer.six/pull/384))
7173

7274
## [20200124] - 2020-01-24
7375

@@ -123,7 +125,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
123125
- Refactor `LTLayoutContainer.group_textboxes` for a significant speed up in layout analysis ([#315](https://github.com/pdfminer/pdfminer.six/pull/315))
124126

125127
### Removed
126-
- Files for external applications such as django, cgi and pyinstaller ([#314](https://github.com/pdfminer/pdfminer.six/issues/314))
128+
- Files for external applications such as django, cgi and pyinstaller ([#320](https://github.com/pdfminer/pdfminer.six/pull/320))
127129

128130
## [20191020] - 2019-10-20
129131

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Any contribution is appreciated! You might want to:
3030
* Pull requests should be merged to develop, not master. This ensures that master always equals the released version.
3131
* Include unit tests when possible. In case of bugs, this will help to prevent the same mistake in the future. In case
3232
of features, this will show that your code works correctly.
33-
* Code should work for Python 3.4+.
33+
* Code should work for Python 3.6+.
3434
* Code should conform to PEP8 coding style.
3535
* New features should be well documented using docstrings.
3636
* Check spelling and grammar.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Features
4040
How to use
4141
----------
4242

43-
* Install Python 3.6 or newer (3.4 and 3.5 are deprecated)
43+
* Install Python 3.6 or newer.
4444
* Install
4545

4646
`pip install pdfminer.six`

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Features
5959
Installation instructions
6060
=========================
6161

62-
Before using it, you must install it using Python 3.6 or newer (3.4 and 3.5 are deprecated).
62+
Before using it, you must install it using Python 3.6 or newer.
6363

6464
::
6565

pdfminer/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import sys
2-
import warnings
3-
4-
51
__version__ = '20201018'
62

7-
if sys.version_info < (3, 6):
8-
warnings.warn('Python 3.4 and 3.5 are deprecated. '
9-
'Please upgrade to Python 3.6 or newer.')
10-
113
if __name__ == '__main__':
124
print(__version__)

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@
3737
'layout analysis',
3838
'text mining',
3939
],
40-
python_requires='>=3.4',
40+
python_requires='>=3.6',
4141
classifiers=[
4242
'Programming Language :: Python',
43-
'Programming Language :: Python :: 3.4',
44-
'Programming Language :: Python :: 3.5',
4543
'Programming Language :: Python :: 3.6',
4644
'Programming Language :: Python :: 3.7',
4745
'Programming Language :: Python :: 3.8',
46+
'Programming Language :: Python :: 3.9',
4847
'Programming Language :: Python :: 3 :: Only',
4948
'Development Status :: 5 - Production/Stable',
5049
'Environment :: Console',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{34,35,36,37,38}
2+
envlist = py{36,37,38,3.9-dev}
33

44
[testenv]
55
extras =

0 commit comments

Comments
 (0)