cog icon indicating copy to clipboard operation
cog copied to clipboard

Update fastapi requirement from <0.99.0,>=0.75.2 to >=0.75.2,<0.110.0

Open dependabot[bot] opened this issue 1 year ago • 5 comments

Updates the requirements on fastapi to permit the latest version.

Release notes

Sourced from fastapi's releases.

0.109.0

Features

Upgrades

Docs

  • ✏️ Fix typo in docs/en/docs/alternatives.md. PR #10931 by @​s111d.
  • 📝 Replace email with username in docs_src/security/tutorial007 code examples. PR #10649 by @​nilslindemann.
  • 📝 Add VS Code tutorial link. PR #10592 by @​nilslindemann.
  • 📝 Add notes about Pydantic v2's new .model_dump(). PR #10929 by @​tiangolo.
  • 📝 Fix broken link in docs/en/docs/tutorial/sql-databases.md. PR #10765 by @​HurSungYun.
  • 📝 Add External Link: FastAPI application monitoring made easy. PR #10917 by @​tiangolo.
  • ✨ Generate automatic language names for docs translations. PR #5354 by @​jakul.
  • ✏️ Fix typos in docs/en/docs/alternatives.md and docs/en/docs/tutorial/dependencies/index.md. PR #10906 by @​s111d.
  • ✏️ Fix typos in docs/en/docs/tutorial/dependencies/dependencies-with-yield.md. PR #10834 by @​Molkree.
  • 📝 Add article: "Building a RESTful API with FastAPI: Secure Signup and Login Functionality Included". PR #9733 by @​dxphilo.
  • 📝 Add warning about lifecycle events with AsyncClient. PR #4167 by @​andrew-chang-dewitt.
  • ✏️ Fix typos in /docs/reference/exceptions.md and /en/docs/reference/status.md. PR #10809 by @​clarencepenz.
  • ✏️ Fix typo in openapi-callbacks.md. PR #10673 by @​kayjan.
  • ✏️ Fix typo in fastapi/routing.py . PR #10520 by @​sepsh.
  • 📝 Replace HTTP code returned in case of existing user error in docs for testing. PR #4482 by @​TristanMarion.
  • 📝 Add blog for FastAPI & Supabase. PR #6018 by @​theinfosecguy.
  • 📝 Update example source files for SQL databases with SQLAlchemy. PR #9508 by @​s-mustafa.
  • 📝 Update code examples in docs for body, replace name create_item with update_item when appropriate. PR #5913 by @​OttoAndrey.
  • ✏️ Fix typo in dependencies with yield source examples. PR #10847 by @​tiangolo.

Translations

  • 🌐 Add Bengali translation for docs/bn/docs/index.md. PR #9177 by @​Fahad-Md-Kamal.
  • ✏️ Update Python version in index.md in several languages. PR #10711 by @​tamago3keran.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/request-forms-and-files.md. PR #10347 by @​AlertRED.
  • 🌐 Add Ukrainian translation for docs/uk/docs/index.md. PR #10362 by @​rostik1410.
  • ✏️ Update Python version in docs/ko/docs/index.md. PR #10680 by @​Eeap.
  • 🌐 Add Persian translation for docs/fa/docs/features.md. PR #5887 by @​amirilf.
  • 🌐 Add Chinese translation for docs/zh/docs/advanced/additional-responses.md. PR #10325 by @​ShuibeiC.
  • 🌐 Fix typos in Russian translations for docs/ru/docs/tutorial/background-tasks.md, docs/ru/docs/tutorial/body-nested-models.md, docs/ru/docs/tutorial/debugging.md, docs/ru/docs/tutorial/testing.md. PR #10311 by @​AlertRED.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/request-files.md. PR #10332 by @​AlertRED.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/server-workers.md. PR #10292 by @​xzmeng.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/cloud.md. PR #10291 by @​xzmeng.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/manually.md. PR #10279 by @​xzmeng.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/https.md. PR #10277 by @​xzmeng.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/index.md. PR #10275 by @​xzmeng.
  • 🌐 Add German translation for docs/de/docs/tutorial/first-steps.md. PR #9530 by @​fhabers21.
  • 🌐 Update Turkish translation for docs/tr/docs/index.md. PR #10444 by @​hasansezertasan.
  • 🌐 Add Chinese translation for docs/zh/docs/learn/index.md. PR #10479 by @​KAZAMA-DREAM.

... (truncated)

Commits
  • cb95d1c 🔖 Release version 0.109.0
  • 7c1aeb5 📝 Update release notes
  • 5e58319 ⬆️ Upgrade Starlette to >=0.35.0,<0.36.0 (#10938)
  • c3e0625 📝 Update release notes
  • c46eba8 ✏️ Fix typo in docs/en/docs/alternatives.md (#10931)
  • 5b1e686 📝 Update release notes
  • 69cb005 📝 Replace email with username in docs_src/security/tutorial007 code exa...
  • 0da980c 📝 Update release notes
  • 135dcba 📝 Add VS Code tutorial link (#10592)
  • 21145d8 📝 Update release notes
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
fastapi [>= 0.100.a, < 0.101]

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

dependabot[bot] avatar Jan 15 '24 18:01 dependabot[bot]

Looks like the problem is openapi 3.1.0 support starting in fastapi 0.99.0

yorickvP avatar Feb 16 '24 10:02 yorickvP

@yorickvP Oh yeah, this is all sounding familiar now. I recall the blocker for adopting FastAPI 0.100.0 (and therefore Pydantic 2) is that kin-openapi doesn't support OpenAPI 3.1.0. At the time, I punted on the hopes that would come soon. But now I'm doubtful that'll happen at all.

The only other game in town seems to be libopenapi, but the vibes that project gives off aren't making me eager to switch. I also found this library which I have less of an allergic reaction too, but seems less mature. WDYT?

mattt avatar Feb 16 '24 15:02 mattt

kin-openapi could be helped along with some sponsoring maybe? https://github.com/getkin/kin-openapi/issues/230#issuecomment-1002659224

yorickvP avatar Feb 16 '24 16:02 yorickvP

@yorickvP Perhaps. Again, I'm not confident that support will land anytime soon, even with sponsorship. Do you think either of the alternatives I mentioned are viable?

mattt avatar Feb 19 '24 13:02 mattt

Our use of the schema in cog is limited to https://github.com/replicate/cog/blob/main/pkg/cli/predict.go#L170. I think all of these libs should be good enough to support that. I also found another library: https://github.com/swaggest/openapi-go

I don't know if any other parts of replicate parse the schema. The webinterface uses the schema to build a form, so we should check openapi 3.1 support there.

yorickvP avatar Feb 19 '24 14:02 yorickvP

Superseded by #1552.

dependabot[bot] avatar Feb 26 '24 18:02 dependabot[bot]