-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
sopel: drop support for Python < 3.6 #2062
Conversation
This comment has been minimized.
This comment has been minimized.
This will have to drop CI for the older Pythons too. Not going to worry about it until 7.1 is done. LGTM's new alerts are interesting. Annoying, but interesting. I thought we were importing |
There are many other things to do, yes. In this PR, I focused only on removing/adapting the code, but I tried not to touch anything that would be used by the CI or the githook stuff.
Which is not necessary with Python 3 as the true division is now by default. I'm pretty sure it's because LGTM is configured with Py2.7. Also, It's funny to see that the CI fails on Py2.7 to 3.5, and is fine for 3.6+—just as planned! |
Leaving the CI stuff, at least, means this PR can never pass checks. Passing CI is required to merge. Dropping support for a Python version should include removing tests for that version, because we shouldn't waste resources testing something unsupported. And speaking of unsupported things, the githooks are
It's probably because we still have Python 2.7 in CI and/or requirements files. LGTM assumes Python 3 if it doesn't see any versions specified; see https://lgtm.com/help/lgtm/python-extraction#python_setup-step |
Yup yup, I agree with that. Which makes me realized that I should have opened that as a DRAFT and not a ready PR, my mistake! My reasoning about CI stuff was to give you the code first, and see what needed to be done exactly for the CI—something I know too little about at the moment—and to do that with you. So yeah, absolutely, the CI need to be modified. My guess is that you're probably too busy to look at that now, and I'm sure it's better to wait after 7.1 is released than right now. |
Dropped back to draft status. You're correct, I'd rather spend my time on 7.1 stuff now, and tackle this after it's released. 😸 |
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.
Surprisingly few line notes, considering the scope of this PR. Given that it's mostly deleting dead code and swapping imports, though, it's actually not that surprising after all.
Hopefully LGTM will figure out that we don't care about py2 any more now that CI and everything has been reworked to target only 3.6+, and stop giving irrelevant warnings.
This comment has been minimized.
This comment has been minimized.
This pull request introduces 2 alerts and fixes 1 when merging cfba6d7 into 56d84d1 - view on LGTM.com new alerts:
fixed alerts:
|
I'm baffled after studying LGTM's docs about Python version selection. It should default to Python 3, but isn't. Let's ignore the new alerts on this PR and look into it separately if they still appear on |
Depending on the scope of this PR...
To be done in future PR:
|
Indeed, more work to do! I've done what I could or think is important right now. I left aside the TODOs in |
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.
Some more stuff, mostly about requirements. Very close!
Here we go. I haven't rebased/squashed yet. Other than that, it's ready for final review: everything new should go in new PRs, I think. |
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.
Squash the fixups and let's ship it. "Don't sweat the little stuff," etc., there's plenty of time to catch the stragglers and handle the various TODOs.
Co-authored-by: dgw <dgw@technobabbl.es>
Cleaning old typo and comments. Co-authored-by: dgw <dgw@technobabbl.es>
Co-authored-by: dgw <dgw@technobabbl.es>
Description
Fix #1801 and hopefully nothing else so @dgw can have a good time removing deprecated stuffs himself. 😁
Checklist
make qa
(runsmake quality
andmake test
)