-
Notifications
You must be signed in to change notification settings - Fork 93
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
Backport to Python 2.7 #165
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.
Please add python 2.7 back to the tests over here
python-version: [ '3.6', '3.7', '3.8', '3.9' ] |
and correct the problems found by the CI
I decided to stop supporting 2.7 back when it EoLed but if there's someone using it makes sense. |
Hello, thanks for the feedback. |
Looks like deepsource only gets triggered for changes and it was introduced after we wrote those docstrings. I'll fix that at some point. Don't pay too much attention to deepsource but to the Test and Publish workflow (https://github.com/jadolg/rocketchat_API/runs/7219372176?check_suite_focus=true). Please start by formatting the files you changed with black |
Hi @jadolg. I've enabled the actions on my fork so that I could try to get it passing by adding 2.7 to the test matrix, I've had to do a small tweak to the actions as black doesn't run on 2.7. However, the tests fail but they also fail using your master at the same stage: You're likely a lot more familiar with the RocketChat API than I am, maybe you know how to fix this one. |
Hi @herronelou |
If you are interested in following up, here's the ticket on rocket.chat. RocketChat/Rocket.Chat#26262 |
hey @herronelou 👋 EDIT: nevermind, GitHub allowed me to do it |
Kudos, SonarCloud Quality Gate passed! |
Codecov Report
@@ Coverage Diff @@
## master #165 +/- ##
=======================================
Coverage 97.66% 97.66%
=======================================
Files 37 37
Lines 1542 1542
Branches 127 127
=======================================
Hits 1506 1506
Misses 31 31
Partials 5 5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I'll be releasing this today |
Thanks! Sorry for the delay, I was away at a conference all week. |
Thanks for the update :)
…On Sat, 16 Jul 2022, 10:45 Jorge Alberto Díaz Orozco (Akiel), < ***@***.***> wrote:
If you are interested in following up, here's the ticket on rocket.chat.
RocketChat/Rocket.Chat#26262
<RocketChat/Rocket.Chat#26262>
—
Reply to this email directly, view it on GitHub
<#165 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJAV5GM7X4BT4DUHOWAKB3VULYMHANCNFSM52X3X7XA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Reading #3, it looks like at least at one point there was a desire to support python 2.7.
While it's meant to be dead and buried right now, I've had to add support for it today for usage along with some other libraries and compiled programs that haven't been updated yet.
Seeing as the changes required to make it work in python 2.7 were very minimal, maybe you would like to merge it.
All that was required was replacing the non-ascii apostrophe used in some docstrings with an ascii apostrophe, and replacing a few f-strings with str.format().