Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

🌐 Remove translation docs references to aiofiles as it's no longer needed since AnyIO#3594

Merged
tiangolo merged 5 commits intofastapi:masterfrom
alonme:update-starlette-version
May 10, 2022
Merged

🌐 Remove translation docs references to aiofiles as it's no longer needed since AnyIO#3594
tiangolo merged 5 commits intofastapi:masterfrom
alonme:update-starlette-version

Conversation

@alonme
Copy link
Contributor

@alonmealonme commentedJul 23, 2021
edited by tiangolo
Loading

2022-05-09 Edit (by@tiangolo): the scope of this PR was changed to remove docs/translations references toaiofiles 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

adriangb, hidaris, old-syniex, graingert, stephan-hesselmann-by, rushton, ciscorn, Skeen, B4rtware, mcous, and 5 more reacted with rocket emoji
@alonmealonme changed the titleUpdate starlette versionUpdate starlette version - solves #3589Jul 23, 2021
@alonme
Copy link
ContributorAuthor

alonme commentedJul 23, 2021
edited
Loading

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

Copy link
Contributor

@graingertgraingert left a 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

@alonme
Copy link
ContributorAuthor

@graingert - Removed aiofiles and tested it still works forFileResponse andStaticFiles

@graingert
Copy link
Contributor

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

adriangb and hidaris reacted with thumbs up emoji

@alonme
Copy link
ContributorAuthor

@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 ?

@graingert
Copy link
Contributor

@alonme not directly related to anyio/trio no

@alonme
Copy link
ContributorAuthor

@graingert - Thanks, backported these changes from the other PR.

@alonme
Copy link
ContributorAuthor

Can anyone enable tests?

@Mause
Copy link
Contributor

@tiangolo is the only person with merge and test run access unfortunately

stephan-hesselmann-by, alonme, poqoid, graingert, adriangb, kkirsche, and AlrasheedA reacted with confused emoji

@GuySpotnix
Copy link

+1
Please merge#3589

@alonme
Copy link
ContributorAuthor

resolves#3674

@graingert
Copy link
Contributor

PR#3372 also updates starlette, however it seems to take a long time to merge as it includes many other changes.

I'm not sure which changes in#3372 would delay the PR

@alonme
Copy link
ContributorAuthor

alonme commentedAug 11, 2021
edited
Loading

@graingert, me neither - it just seemed to me that it wasn't getting merge quickly at the time.
This pr was much smaller than#3372 , however after your rightful comments they aren't that different anymore.
This is still simpler, and i hoped it would be possible to merge it quickly as it fixes a bug which i think is pretty bad.

@graingert
Copy link
Contributor

I was considering adding wait_all to starlette atstarlette.concurrency:wait_all as it's the most complicated bit of the changes imho

@alonme
Copy link
ContributorAuthor

@tiangolo - Can we proceed with one of the PR's?

adriangb, kkirsche, poqoid, alonme, HarrySky, agronholm, hidaris, and AlrasheedA reacted with thumbs up emoji

@graingert
Copy link
Contributor

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

adriangb, B4rtware, alonme, jonblum, HarrySky, kkirsche, agronholm, and hidaris reacted with thumbs up emoji

@alonme
Copy link
ContributorAuthor

@tiangolo - can we please go forward with this? or at least get a comment?
There are at least 2 issues that this will fix, and another project that waits for features from starlette 0.16

thanks

stephan-hesselmann-by, adriangb, mitchej123, brnosouza, and AlrasheedA reacted with thumbs up emojistephan-hesselmann-by, poqoid, brnosouza, martincollado, and AlrasheedA reacted with eyes emoji

@brnosouza
Copy link

any update on this?

@stephan-hesselmann-by

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.

emr-arvig reacted with thumbs down emojialonme reacted with confused emoji

@Mause
Copy link
Contributor

@stephan-hesselmann-by you are correct unfortunately, this project is effectively abandoned

emr-arvig reacted with thumbs down emojiadriangb and alonme reacted with confused emoji

@billcrook
Copy link

@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?

@tiangolo
Copy link
Member

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 buildinghttps://github.com/tiangolo/sqlmodel, which ismadefor 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 theHTTPS 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. 🎉

decaz, emr-arvig, martincollado, tymokvo, StashOfCode, v3ss0n, brnosouza, DevDae, and iudeen reacted with thumbs up emojiadriangb and martincollado reacted with hooray emojighandic, martincollado, and StashOfCode reacted with heart emoji

@adriangb
Copy link
Contributor

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/CODEOWNERS files.

MatteBailey, ghandic, ipeluffo, emr-arvig, alonme, mitchej123, steven-xufan, tymokvo, StashOfCode, AlrasheedA, and 2 more reacted with thumbs up emoji

@v3ss0n
Copy link

v3ss0n commentedOct 2, 2021
edited
Loading

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 buildinghttps://github.com/tiangolo/sqlmodel, which ismadefor FastAPI. rocket

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 theHTTPS guide was done 3 hours ago. facepalm disappointed

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. tada

Awesome to hear from you@tiangolo . I am using fastapi for almsot a year now. And the popularity keep rising.
I am sure FastAPI would be benefit from Community Driven development , since the project is growing faster for one person to manage, have you consider starting a foundation / organization and appointing good contributors to help you review code / merge?

That would make FastAPI grow bigger and FastAPI is really the web framework python deserves.

adriangb, brnosouza, AlrasheedA, and NitroEvil reacted with thumbs up emojiMause and brnosouza reacted with heart emoji

@brnosouza
Copy link

@alonme I think you need to rebase, mainly because a similar PR was merged and contains a few updates

@agronholm
Copy link

Does this PR add anything compared to the merged one?

@alonme
Copy link
ContributorAuthor

@brnosouza - thanks, will get to that a bit later
@agronholm - from what i have seen, the update is only to starlette 0.15.0, and not 0.16.0

so my update also accounts for the aiofiles documentation@tiangolo described here#2899 (comment)

@alonmealonmeforce-pushed theupdate-starlette-version branch from60982db to750e245CompareOctober 7, 2021 20:56
@alonme
Copy link
ContributorAuthor

rebased

@alonmealonmeforce-pushed theupdate-starlette-version branch fromeb28fc7 to6e32a7fCompareOctober 7, 2021 21:00
@alonme
Copy link
ContributorAuthor

ok, now i see@tiangolo created his own PR to update to 0.16.0

So this only includes docs fix

banuni
banuni approved these changesOct 12, 2021
edited
Loading
@codecov
Copy link

codecovbot commentedMay 10, 2022
edited
Loading

Codecov Report

Merging#3594 (6232e44) intomaster (8a353ab) willnot change coverage.
The diff coverage isn/a.

@@            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.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update8a353ab...6232e44. Read thecomment docs.

@tiangolotiangolo changed the titleUpdate starlette version - solves #3589🌐 Remove translation docs references to aiofiles as it's no longer needed since AnyIOMay 10, 2022
@github-actions
Copy link
Contributor

📝 Docs preview for commit6232e44 at:https://6279ba36fab0da14c006f463--fastapi.netlify.app

@tiangolo
Copy link
Member

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 toaiofiles. Thanks for the interest and discussion you all! ☕

@tiangolotiangolo merged commitc0d6865 intofastapi:masterMay 10, 2022
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull requestAug 20, 2022
…eded since AnyIO (fastapi#3594)Co-authored-by: AlonMenczer <alonm@spotnix.io>Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@graingertgraingertgraingert requested changes

@banunibanunibanuni approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

12 participants

@alonme@graingert@Mause@GuySpotnix@brnosouza@stephan-hesselmann-by@billcrook@tiangolo@adriangb@v3ss0n@agronholm@banuni

[8]ページ先頭

©2009-2026 Movatter.jp