-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for legacy Python 2.7 #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job! Thanks for this!
I'm not sure how to handle the merge however. It is after all a couple of months left before 2.7 is EOL.
@davehunt @rochacbruno
Co-Authored-By: Jim Brännlund <[email protected]>
Thanks for the review, updated!
To compare with pytest itself:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry that I didn't catch all those the previous round. 😞
Good job on the changes! Discovered some more, sorry about that.
Not a bad idea. I guess we can have a But I want someone else to chime in before I make it so. @davehunt @rochacbruno |
@BeyondEvil my opinion is that we should launch Pytest-HTML 2.0 with this patch and people who still need to use Python 2.7 during the remaining months until its dead should use Pytest-HTML 1.x |
I agree. I'm just not sure how to handle the practical aspects. |
@BeyondEvil I'm not sure which practical aspects you mean! Maybe launch Pytest 1.23.0 that includes a deprecation alert on the HTML file? (I don't think it is worthy) |
Well, if master is going to be 2.x, we'll need a 1.x-"master"-branch, and I'm not sure if either of us can create that or if only @davehunt can do it. And I agree, not worth releasing a 1.x version with just a deprecation warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a good idea to not allow a pytest
version that supports 2.7
Thanks for the new reviews! I'm travelling right now and can update these later this week. Or feel free to update this branch. The https://python3statement.org/practicalities/ has some other suggestions, but I think python_requires is the most important. |
@hugovk No worries, there's no stress! We're not fixing anything that is broken. Safe travels! |
Updated! |
I'd say let's release this as pytest-html 2.0 and create a 1.22-maintenance branch, following the same approach as pytest, and only uplifting bugfixes to that branch and releasing 1.22.x as needed. I don't expect there will be many (if any) patches that will require a 1.22.x release though, and we should strongly encourage users to upgrade to Python 3. |
Fixes #228.