Skip to content

Drop support for EOL Python 2.7, 3.5 and 3.6 - #536

Closed
hugovk wants to merge 11 commits into
html5lib:masterfrom
hugovk:rm-eol
Closed

hugovk wants to merge 11 commits into
html5lib:masterfrom
hugovk:rm-eol

Conversation

@hugovk

@hugovk hugovk commented Aug 17, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #541.

The readme says:

The goal is to support a (non-strict) superset of the versions that pip supports.

https://github.com/html5lib/html5lib-python#installation

pip supports:

CPython 3.6, 3.7, 3.8, 3.9 and latest PyPy3.

CPython 3.7, 3.8, 3.9, 3.10 and latest PyPy3.

https://pip.pypa.io/en/stable/installation/#compatibility

Therefore this PR drops support for EOL 2.7, 3.5 and 3.6 and upgrades to modern syntax using pyupgrade. There will be more cleanup possible, but I didn't want this PR to get too big.

Similarly, if you'd prefer a smaller PR, like dropping support and removing six, but keeping the older syntax for another PR, just let me know!

@kloczek

kloczek commented Dec 31, 2021

Copy link
Copy Markdown

Looks like this PR should be rediffed against current master.

@hugovk

hugovk commented Apr 3, 2022

Copy link
Copy Markdown
Contributor Author

Updated against master!

@hugovk

hugovk commented Apr 20, 2022

Copy link
Copy Markdown
Contributor Author

Updated to fix this pytest deprecation warning: #529 (comment).

@hugovk

hugovk commented Jul 6, 2022

Copy link
Copy Markdown
Contributor Author

Since this was opened 11 months ago, Python 3.6 has gone EOL and been dropped by pip, so dropping here too.

@hugovk hugovk changed the title Drop support for EOL Python 2.7 and 3.5 Drop support for EOL Python 2.7, 3.5 and 3.6 Jul 6, 2022

@kloczek kloczek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is possible to make new release?

@hugovk

hugovk commented Aug 18, 2022

Copy link
Copy Markdown
Contributor Author

Closing this year old PR, happy to re-open if any interest 👍

@hugovk hugovk closed this Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use unittest.mock instead of mock

2 participants