Skip to content
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

chore(deps): update poetry-dev #169

Merged
merged 2 commits into from
Aug 3, 2023
Merged

chore(deps): update poetry-dev #169

merged 2 commits into from
Aug 3, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 2, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
django-environ (source, changelog) ^0.9.0 -> ^0.10.0 age adoption passing confidence
fastapi >=0.92,<0.96 -> >=0.100.1,<0.101 age adoption passing confidence
flake8 (changelog) ^6.0.0 -> ^6.1.0 age adoption passing confidence
starlette (changelog) ^0.27.0 -> ^0.31.0 age adoption passing confidence

Release Notes

joke2k/django-environ (django-environ)

v0.10.0

Compare Source

Added
+++++

  • Use the core redis library by default if running Django >= 4.0
    #&#8203;356 <https://github.com/joke2k/django-environ/issues/356>_.
  • Value of dict can now contain an equal sign
    #&#8203;241 <https://github.com/joke2k/django-environ/pull/241>_.
  • Added support for Python 3.11.
  • Added CONN_HEALTH_CHECKS to database base options
    #&#8203;413 <https://github.com/joke2k/django-environ/issues/413>_.
  • Added encoding parameter to read_env with default value 'utf8'
    #&#8203;442 <https://github.com/joke2k/django-environ/pull/442>_.
  • Added support for Django 4.1
    #&#8203;416 <https://github.com/joke2k/django-environ/issues/416>_.

Deprecated
++++++++++

  • Support of Python < 3.6 is deprecated and will be removed
    in next major version.

Changed
+++++++

  • Used UTF-8 as a encoding when open .env file.
  • Provided access to ```DB_SCHEMESthroughclsrather thanEnvindb_url_config``
    #&#8203;414 <https://github.com/joke2k/django-environ/pull/414>_.
  • Correct CI workflow to use supported Python versions/OS matrix
    #&#8203;441 <https://github.com/joke2k/django-environ/pull/441>_.
  • Reworked trigger CI workflows strategy
    #&#8203;440 <https://github.com/joke2k/django-environ/pull/440>_.

Fixed
+++++

  • Fixed logic of Env.get_value() to skip parsing only when
    default=None, not for all default values that coerce to False
    #&#8203;404 <https://github.com/joke2k/django-environ/issues/404>_.
  • Deleted duplicated include in docs/quickstart.rst
    #&#8203;439 <https://github.com/joke2k/django-environ/pull/439>_.

Removed
+++++++

  • Removed deprecated Env.unicode().
  • Removed environ.register_schemes calls and do not modify global
    urllib.parse.urlparse's uses_* variables as this no longer needed
    #&#8203;246 <https://github.com/joke2k/django-environ/pull/246>_.
tiangolo/fastapi (fastapi)

v0.100.1

Compare Source

Fixes
  • 🐛 Replace MultHostUrl to AnyUrl for compatibility with older versions of Pydantic v1. PR #​9852 by @​Kludex.
Docs
  • 📝 Update links for self-hosted Swagger UI, point to v5, for OpenAPI 31.0. PR #​9834 by @​tiangolo.
Translations
Internal

v0.100.0

Compare Source

✨ Support for Pydantic v2

Pydantic version 2 has the core re-written in Rust and includes a lot of improvements and features, for example:

  • Improved correctness in corner cases.
  • Safer types.
  • Better performance and less energy consumption.
  • Better extensibility.
  • etc.

...all this while keeping the same Python API. In most of the cases, for simple models, you can simply upgrade the Pydantic version and get all the benefits. 🚀

In some cases, for pure data validation and processing, you can get performance improvements of 20x or more. This means 2,000% or more. 🤯

When you use FastAPI, there's a lot more going on, processing the request and response, handling dependencies, executing your own code, and particularly, waiting for the network. But you will probably still get some nice performance improvements just from the upgrade.

The focus of this release is compatibility with Pydantic v1 and v2, to make sure your current apps keep working. Later there will be more focus on refactors, correctness, code improvements, and then performance improvements. Some third-party early beta testers that ran benchmarks on the beta releases of FastAPI reported improvements of 2x - 3x. Which is not bad for just doing pip install --upgrade fastapi pydantic. This was not an official benchmark and I didn't check it myself, but it's a good sign.

Migration

Check out the Pydantic migration guide.

For the things that need changes in your Pydantic models, the Pydantic team built bump-pydantic.

A command line tool that will process your code and update most of the things automatically for you. Make sure you have your code in git first, and review each of the changes to make sure everything is correct before committing the changes.

Pydantic v1

This version of FastAPI still supports Pydantic v1. And although Pydantic v1 will be deprecated at some point, ti will still be supported for a while.

This means that you can install the new Pydantic v2, and if something fails, you can install Pydantic v1 while you fix any problems you might have, but having the latest FastAPI.

There are tests for both Pydantic v1 and v2, and test coverage is kept at 100%.

Changes
  • There are new parameter fields supported by Pydantic Field() for:

    • Path()
    • Query()
    • Header()
    • Cookie()
    • Body()
    • Form()
    • File()
  • The new parameter fields are:

    • default_factory
    • alias_priority
    • validation_alias
    • serialization_alias
    • discriminator
    • strict
    • multiple_of
    • allow_inf_nan
    • max_digits
    • decimal_places
    • json_schema_extra

...you can read about them in the Pydantic docs.

  • The parameter regex has been deprecated and replaced by pattern.

  • New Pydantic models use an improved and simplified attribute model_config that takes a simple dict instead of an internal class Config for their configuration.

  • The attribute schema_extra for the internal class Config has been replaced by the key json_schema_extra in the new model_config dict.

  • When you install "fastapi[all]" it now also includes:

  • Now Pydantic Settings is an additional optional package (included in "fastapi[all]"). To use settings you should now import from pydantic_settings import BaseSettings instead of importing from pydantic directly.

  • PR #​9816 by @​tiangolo, included all the work done (in multiple PRs) on the beta branch (main-pv2).

v0.99.1

Compare Source

Fixes
  • 🐛 Fix JSON Schema accepting bools as valid JSON Schemas, e.g. additionalProperties: false. PR #​9781 by @​tiangolo.
Docs

v0.99.0

Compare Source

Note: this is the last release before supporting Pydantic v2. You can try out the beta with support for Pydantic v2 now, a new beta supporting Pydantic v2 with these same changes from this release will be available in the next hours/days. And the final version (0.100.0) with support for Pydantic v2 will be released in the next days (next week).

Now, back to this release (this one doesn't include the beta support for Pydantic v2).

This release has ✨ OpenAPI 3.1.0 ✨ 🎉

Features
  • ✨ Add support for OpenAPI 3.1.0. PR #​9770 by @​tiangolo.

    • New support for documenting webhooks, read the new docs here: Advanced User Guide: OpenAPI Webhooks.
    • Upgrade OpenAPI 3.1.0, this uses JSON Schema 2020-12.
    • Upgrade Swagger UI to version 5.x.x, that supports OpenAPI 3.1.0.
    • Updated examples field in Query(), Cookie(), Body(), etc. based on the latest JSON Schema and OpenAPI. Now it takes a list of examples and they are included directly in the JSON Schema, not outside. Read more about it (including the historical technical details) in the updated docs: Tutorial: Declare Request Example Data.
  • ✨ Add support for deque objects and children in jsonable_encoder. PR #​9433 by @​cranium.

Docs
Translations
Internal

v0.98.0

Compare Source

Note: please also help me try out the beta with support for Pydantic v2: https://github.com/tiangolo/fastapi/releases/tag/0.100.0-beta1

Now, back to this release (this one doesn't include the beta support for Pydantic v2).

Features
Docs
Translations
Internal

v0.97.0

Compare Source

Features
Refactors
  • ⬆️ Upgrade and fully migrate to Ruff, remove isort, includes a couple of tweaks suggested by the new version of Ruff. PR #​9660 by @​tiangolo.
  • ♻️ Update internal type annotations and upgrade mypy. PR #​9658 by @​tiangolo.
  • ♻️ Simplify AsyncExitStackMiddleware as without Python 3.6 AsyncExitStack is always available. PR #​9657 by @​tiangolo.
Upgrades
Internal
  • 💚 Update CI cache to fix installs when dependencies change. PR #​9659 by @​tiangolo.
  • ⬇️ Separate requirements for development into their own requirements.txt files, they shouldn't be extras. PR #​9655 by @​tiangolo.

v0.96.1

Compare Source

Fixes
Upgrades
  • 📌 Update minimum version of Pydantic to >=1.7.4. This fixes an issue when trying to use an old version of Pydantic. PR #​9567 by @​Kludex.
Refactors
  • ♻ Remove media_type from ORJSONResponse as it's inherited from the parent class. PR #​5805 by @​Kludex.
  • ♻ Instantiate HTTPException only when needed, optimization refactor. PR #​5356 by @​pawamoy.
Docs
  • 🔥 Remove link to Pydantic's benchmark, as it was removed there. PR #​5811 by @​Kludex.
Translations
  • 🌐 Fix spelling in Indonesian translation of docs/id/docs/tutorial/index.md. PR #​5635 by @​purwowd.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/index.md. PR #​5896 by @​Wilidon.
  • 🌐 Add Chinese translations for docs/zh/docs/advanced/response-change-status-code.md and docs/zh/docs/advanced/response-headers.md. PR #​9544 by @​ChoyeonChern.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/schema-extra-example.md. PR #​9621 by @​Alexandrhub.
Internal

v0.96.0

Compare Source

Features
  • ⚡ Update create_cloned_field to use a global cache and improve startup performance. PR #​4645 by @​madkinsz and previous original PR by @​huonw.
Docs
Translations
Internal
pycqa/flake8 (flake8)

v6.1.0

Compare Source

encode/starlette (starlette)

v0.31.0: Version 0.31.0

Compare Source

Added

  • Officially support Python 3.12 #​2214.
  • Support AnyIO 4.0 #​2211.
  • Strictly type annotate Starlette (strict mode on mypy) #​2180.

Fixed

  • Don't group duplicated headers on a single string when using the TestClient #​2219.

Full Changelog: encode/starlette@0.30.0...0.31.0

v0.30.0: Version 0.30.0

Compare Source

Removed

v0.29.0: Version 0.29.0

Compare Source

Added

  • Add follow_redirects parameter to TestClient #​2207.
  • Add __str__ to HTTPException and WebSocketException #​2181.
  • Warn users when using lifespan together with on_startup/on_shutdown #​2193.
  • Collect routes from Host to generate the OpenAPI schema #​2183.
  • Add request argument to TemplateResponse #​2191.

Fixed

  • Stop body_stream in case more_body=False on BaseHTTPMiddleware #​2194.

Full Changelog: encode/starlette@0.28.0...0.29.0

v0.28.0: Version 0.28.0

Compare Source

Changed
  • Reuse Request's body buffer for call_next in BaseHTTPMiddleware #​1692.
  • Move exception handling logic to Route #​2026.
Added
  • Add env parameter to Jinja2Templates, and deprecate **env_options #​2159.
  • Add clear error message when httpx is not installed #​2177.
Fixed
  • Allow "name" argument on templates url_for() #​2127.

Full Changelog: encode/starlette@0.27.0...0.28.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from kiloreven as a code owner August 2, 2023 11:06
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 2, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Aug 2, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
[05:11:34.766] INFO (9): Installing tool python v3.11.4...
installing v2 tool python v3.11.4
linking tool python v3.11.4
Python 3.11.4
pip 23.2.1 from /opt/containerbase/tools/python/3.11.4/lib/python3.11/site-packages/pip (python 3.11)
[05:11:41.759] INFO (9): Installed tool python in 6.9s.
[05:11:41.872] INFO (148): Installing tool poetry v1.5.1...
installing v2 tool poetry v1.5.1
linking tool poetry v1.5.1
Poetry (version 1.5.1)
[05:11:51.872] INFO (148): Installed tool poetry in 10s.
Updating dependencies
Resolving dependencies...

/usr/local/bin/docker: line 4: .: filename argument required
.: usage: . filename [arguments]

Because fastapi (0.100.1) depends on starlette (>=0.27.0,<0.28.0)
 and no versions of fastapi match >0.100.1,<0.101, fastapi (>=0.100.1,<0.101) requires starlette (>=0.27.0,<0.28.0).
So, because troncos depends on both fastapi (>=0.100.1,<0.101) and starlette (^0.31.0), version solving failed.

@renovate
Copy link
Contributor Author

renovate bot commented Aug 3, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@gbbirkisson gbbirkisson merged commit aeadb1a into main Aug 3, 2023
@gbbirkisson gbbirkisson deleted the renovate/poetry-dev branch August 3, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant