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
🌐 Remove translation docs references to aiofiles as it's no longer needed since AnyIO #3594
Conversation
PR #3372 also updates starlette, however it seems to take a long time to merge as it includes many other changes. I hope we can merge this smaller branch quicker to resolve #3589 . I copied the test fix from #3372 to prevent conflicts later If its easier for any reason - the same can be achieved by updating to 0.15.0 |
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.
The docs about aiofiles will need removing
@graingert - Removed aiofiles and tested it still works for |
what do you think about the contextlib2 backport changes? Starlette depends on it on python3.6 so FastAPI doesn't need the async_generator or async_exit_stack deps anymore |
@graingert - Not to familiar with these, aren't these more related to the trio/anyio change? can we remove the backports without changes from #3372 ? |
@alonme not directly related to anyio/trio no |
@graingert - Thanks, backported these changes from the other PR. |
Can anyone enable tests? |
@tiangolo is the only person with merge and test run access unfortunately |
+1 |
resolves #3674 |
@graingert, me neither - it just seemed to me that it wasn't getting merge quickly at the time. |
I was considering adding wait_all to starlette at |
@tiangolo - Can we proceed with one of the PR's? |
It would be good to get a release with a new Starlette that supports py3.6-py3.10 before the December EOL of Python 3.6 |
@tiangolo - can we please go forward with this? or at least get a comment? thanks |
any update on this? |
I have to say this is not a good look for the project. Not only this PR but many others are stalled with no comments from the maintainer. Actually it seems like the project is unmaintained. |
@stephan-hesselmann-by you are correct unfortunately, this project is effectively abandoned |
💯 I'm considering dropping down to starlette directly esp considering all the shims and overrides I'm putting into place to get everything how I want it (custom error responses, finer grained transaction control, singleton dependencies, #1359, etc...). API doc is nice I suppose? |
The project is not abandoned at all. In fact, one of the main things wanted in the existing PRs and issues was a way to improve how models are defined for databases and Pydantic, and support for the latest versions of SQLAlchemy, so I spent months building https://github.com/tiangolo/sqlmodel, which is made for FastAPI. 🚀 I have a lot of pending PRs to review and a lot of things in the backlog, and I'm covering them all gradually and with the minimum disruption possible. This also applies to all my Docker images, that for example, now support Python 3.9, all of them. I'm carefully reviewing each PR and issue myself, and I have been changing my whole work-life in the last months, including dealing with visas and German bureaucracy to be able to dedicate much more time to all my open source projects. Also, the comments claiming that it is abandoned were made 2 hours ago, when the last commit improving the HTTPS guide was done 3 hours ago. 🤦 😞 The improved HTTPS guide is part of an effort into improving the information about deployments and how (and when) to use which Docker images, etc. So that will come soon too. 🎉 |
Thank you for the response @tiangolo! I'm very glad this project is alive 😄 First off, I think it is amazing the amount and quality of work you are able to do as one person. That said, I do think it might be best for the health of the projects to build teams by giving repeat contributors that have shown to produce high quality work more privileges, that way they can get PRs into a good state (by providing feedback to PR authors) before you even have to look at them, even if you are still the one giving the final ✅ . This can also be codified, e.g. w/ |
Awesome to hear from you @tiangolo . I am using fastapi for almsot a year now. And the popularity keep rising. That would make FastAPI grow bigger and FastAPI is really the web framework python deserves. |
@alonme I think you need to rebase, mainly because a similar PR was merged and contains a few updates |
Does this PR add anything compared to the merged one? |
@brnosouza - thanks, will get to that a bit later so my update also accounts for the aiofiles documentation @tiangolo described here #2899 (comment) |
60982db
to
750e245
Compare
rebased |
eb28fc7
to
6e32a7f
Compare
ok, now i see @tiangolo created his own PR to update to 0.16.0 So this only includes docs fix |
Codecov Report
@@ Coverage Diff @@
## master #3594 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 531 531
Lines 13629 13629
=========================================
Hits 13629 13629 Continue to review full report at Codecov.
|
📝 Docs preview for commit 6232e44 at: https://6279ba36fab0da14c006f463--fastapi.netlify.app |
Thanks for the discussion everyone, this was solved a while ago in another PR and has been available for a while in recent releases. Given that, I reduced the scope of this particular PR to remove the docs/translations references to |
…eded since AnyIO (tiangolo#3594) Co-authored-by: AlonMenczer <alonm@spotnix.io> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-05-09 Edit (by @tiangolo): the scope of this PR was changed to remove docs/translations references to
aiofiles
as the other intended changes were covered in other PRs.Original description
Related to #3589
This Starlette PR (https://github.com/encode/starlette/pull/1158/files#) solves the issue from #3589.
Updating starlette to solve this issue in FastAPI