-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add Pyramid 2.0 compatibility #33
Conversation
fixes Pylons#28
Pyramid 2.0 is strictly Python 3, replacing |
@bertjwregeer should we drop EOLed Pythons and add supported versions, as well as move this to GitHub Actions? |
Yes, this extension needs a lot of love as it has received none over the years, but just dropping Py2 support and matching Pyramid 2.0 would be a good start. |
@bertjwregeer how should we proceed? We could do it all in one swoop—fixing bugs, dropping EOLed Pythons, moving to GHA, and adding Pyramid 2.0 compat—or do it in baby steps to cut two or more releases. I can do the work, just need advice and direction. |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Pyramid 2.0 compatibility does not mean that you need to drop Pyramid 1.x compatibility (which supports Python 2). |
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.
Thank you for the docstring changes!
Thank you for you review. However, PEP8 is failing again due to these changes:
Don't we need double backslashes here? |
Flake8 gives a false positive. This is a reStructuredText inline literal, but Flake8 does not interpret it as such. See screenshot for how it renders to HTML with the changes I requested and which you applied. I could not find in PEP8 that it covers this edge case. To avoid the Flake8 warning, change the last line of the docstring to ignore this warning:
Also I missed a couple of changes in
To avoid the warning, pass tests, and not obscure the original intent of the test, append a similar comment: inst.authenticate('BAD\login', 'password') # noqa: W605
#...
inst.authenticate('login', 'bad\*()password') # noqa: W605 |
Thank you for your explanation. https://www.flake8rules.com/rules/W605.html Also the tests are correct and finally pass with the double backslash. The documentation is also rendered the same. |
OK, thank you for explaining. I misunderstood. I apologize for my mistake. We have two failed build jobs, one of which is an allowed failure for Python 3.7 and the other for a false positive that coverage is below 100%. We can skip the Python 3.7 failure for now, but we need to resolve the coverage issue. I've seen this issue in other repos. I'll look for how we fixed it. It was working just prior to this PR. |
When I run |
Tests are passing now. @bertjwregeer in setup.py, there is a comment |
I see no instances of |
Please take a look at |
I missed this... so then yes, keep the requirement for |
@bertjwregeer I think this is OK to merge, unless you have any further review. I can work on bringing it to Pylons Project standards and parity with Pyramid 2.0 for Python support and GHA later this week. |
fixes #32, #26 and #28