-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Testing client #1562
Testing client #1562
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.
Looks like request-async only supports Python 3.6+.
We'll have to drop Py3.5 support if merging this.
Yeah, I saw that last night after I saw the first test fail. I was thinking of taking a look at it and then hoping that (1) it was a simple fix like F strings and (2) @tomchristie would accept a PR to make it 3.5. If not, then we @huge-success/sanic-core-devs have a decision to make. |
Great work @ahopkins! The biggest 3.5 blocker will be async generators syntax. https://www.python.org/dev/peps/pep-0525/
It looks to me like sanic doens't yet use this syntax in any of it's API, since I can't see any (older style). It'd be a bit of a pain to backport to 3.5 for those. It's feasible, but it'd likely be something that I'd still want to drop as soon as possible. Personally I'd probably advocate for this being a good time to consider a version with 3.6+ support, but that's for you folks to take a call on. |
I'm fine with dropping py3.5 support, but probably should announce that first or shows deprecation time. |
I too would be in favor of dropping 3.5, but it does seem to account for a decent portion of downloads. This is based off stats from 2019-01-01 thru today.
|
Are you able to limit the results to only include downloads against the current sanic release? That'd be more indicative of what Python versions are typically being used by new projects (rather than including deployments that may be pinned to older versions anyways). |
(I'm arguing backwards there, because I think it'd be a good version jump time anyways, but hey. 😆) |
When I filter for
|
See further discussion about dropping 3.5 support here: https://community.sanicframework.org/t/should-we-bump-the-minimum-python-required-version-to-3-6/238/6?u=ahopkins |
Debian stable don't have py3.6+ yet, so I think this is not a good idea to drop py3.5 |
@andreymal The current direction we are leaning towards is to drop 3.5 going forward, but extending our 18.12LTS support thru the 3.5 end of life in September 2020. |
Codecov Report
@@ Coverage Diff @@
## master #1562 +/- ##
==========================================
- Coverage 91.4% 91.31% -0.09%
==========================================
Files 18 18
Lines 1804 1820 +16
Branches 344 347 +3
==========================================
+ Hits 1649 1662 +13
- Misses 131 132 +1
- Partials 24 26 +2
Continue to review full report at Codecov.
|
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.
LGTM, but let’s squash commits and add concrete commit msg, so that it helps generate changelog.
Agree with @yunstanford, let's squash these commits then it's a LGTM for me as well. |
Will do. But there are a few more changes I want to make. Some tests use aiohttp directly and need to be refactored or else we will need both libraries, which seems bloated to me. Still WIP for current moment. I'll finish shortly. |
…op Python 3.5 Update all tests to be compatible with requests-async Cleanup testing client changes with black and isort Remove Python 3.5 and other meta doc cleanup rename pyproject and fix pep517 error Add black config to tox.ini Cleanup tests and remove aiohttp tox.ini change for easier development commands Remove aiohttp from changelog and requirements Cleanup imports and Makefile
84c8344
to
ccd4c96
Compare
@yunstanford and @seemethere This should be ready to roll assuming all of the tests pass. 🤞 |
FYI - To help you in your review since everything is squashed now... The files that changed since the last time are |
New
test_client
based uponrequest-async
for usage with #1475