Skip to content

Conversation

@hugovk
Copy link
Contributor

@hugovk hugovk commented Aug 17, 2021

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
Copy link

kloczek commented Dec 31, 2021

Looks like this PR should be rediffed against current master.

@hugovk
Copy link
Contributor Author

hugovk commented Apr 3, 2022

Updated against master!

@hugovk
Copy link
Contributor Author

hugovk commented Apr 20, 2022

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

@hugovk
Copy link
Contributor Author

hugovk commented Jul 6, 2022

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
Copy link

@kloczek kloczek left a comment

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
Copy link
Contributor Author

hugovk commented Aug 18, 2022

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