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

Update all dependencies #65

Closed
wants to merge 1 commit into from
Closed

Update all dependencies #65

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fastapi ==0.101.0 -> ==0.108.0 age adoption passing confidence
httpx (changelog) ==0.23.3 -> ==0.26.0 age adoption passing confidence
importlib_resources ==5.8.0 -> ==5.13.0 age adoption passing confidence
ispyb ==6.11.0 -> ==6.13.0 age adoption passing confidence
mysql-connector-python <=8.0.29 -> <=8.2.0 age adoption passing confidence
numpy (source, changelog) ==1.25 -> ==1.26.3 age adoption passing confidence
pillow (changelog) ==10.0.1 -> ==10.2.0 age adoption passing confidence
prometheus_client ==0.17.1 -> ==0.19.0 age adoption passing confidence
pydantic (changelog) ==1.10.1 -> ==1.10.13 age adoption passing confidence
pytest (source, changelog) ==7.1.2 -> ==7.4.4 age adoption passing confidence
pytest-cov (changelog) ==4.0.0 -> ==4.1.0 age adoption passing confidence
pyyaml (source) ==6.0 -> ==6.0.1 age adoption passing confidence
rich ==13.3.3 -> ==13.7.0 age adoption passing confidence
sqlmodel ==0.0.8 -> ==0.0.14 age adoption passing confidence
starlette (changelog) ==0.27.0 -> ==0.34.0 age adoption passing confidence
textual ==0.42.0 -> ==0.47.1 age adoption passing confidence
uvicorn (changelog) ==0.18.2 -> ==0.25.0 age adoption passing confidence
websocket-client (source) ==1.3.3 -> ==1.7.0 age adoption passing confidence
zocalo (changelog) ==0.21.0 -> ==0.30.2 age adoption passing confidence

Release Notes

tiangolo/fastapi (fastapi)

v0.108.0

Compare Source

Upgrades
  • ⬆️ Upgrade Starlette to >=0.29.0,<0.33.0, update docs and usage of templates with new Starlette arguments. PR #​10846 by @​tiangolo.

v0.107.0

Compare Source

Upgrades
Docs

v0.106.0

Compare Source

Breaking Changes

Using resources from dependencies with yield in background tasks is no longer supported.

This change is what supports the new features, read below. 🤓

Dependencies with yield, HTTPException and Background Tasks

Dependencies with yield now can raise HTTPException and other exceptions after yield. 🎉

Read the new docs here: Dependencies with yield and HTTPException.

from fastapi import Depends, FastAPI, HTTPException
from typing_extensions import Annotated

app = FastAPI()

data = {
    "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
    "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
}

class OwnerError(Exception):
    pass

def get_username():
    try:
        yield "Rick"
    except OwnerError as e:
        raise HTTPException(status_code=400, detail=f"Onwer error: {e}")

@&#8203;app.get("/items/{item_id}")
def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
    if item_id not in data:
        raise HTTPException(status_code=404, detail="Item not found")
    item = data[item_id]
    if item["owner"] != username:
        raise OwnerError(username)
    return item

Before FastAPI 0.106.0, raising exceptions after yield was not possible, the exit code in dependencies with yield was executed after the response was sent, so Exception Handlers would have already run.

This was designed this way mainly to allow using the same objects "yielded" by dependencies inside of background tasks, because the exit code would be executed after the background tasks were finished.

Nevertheless, as this would mean waiting for the response to travel through the network while unnecessarily holding a resource in a dependency with yield (for example a database connection), this was changed in FastAPI 0.106.0.

Additionally, a background task is normally an independent set of logic that should be handled separately, with its own resources (e.g. its own database connection).

If you used to rely on this behavior, now you should create the resources for background tasks inside the background task itself, and use internally only data that doesn't depend on the resources of dependencies with yield.

For example, instead of using the same database session, you would create a new database session inside of the background task, and you would obtain the objects from the database using this new session. And then instead of passing the object from the database as a parameter to the background task function, you would pass the ID of that object and then obtain the object again inside the background task function.

The sequence of execution before FastAPI 0.106.0 was like the diagram in the Release Notes for FastAPI 0.106.0.

The new execution flow can be found in the docs: Execution of dependencies with yield.

v0.105.0

Compare Source

Features
  • ✨ Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]. PR #​10773 by @​tiangolo.
Refactors
Docs
Internal

v0.104.1

Compare Source

Fixes
  • 📌 Pin Swagger UI version to 5.9.0 temporarily to handle a bug crashing it in 5.9.1. PR #​10529 by @​alejandraklachquin.
    • This is not really a bug in FastAPI but in Swagger UI, nevertheless pinning the version will work while a solution is found on the Swagger UI side.
Docs
Internal

v0.104.0

Compare Source

Features

Upgrades

Internal

v0.103.2

Compare Source

Refactors
  • ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values. PR #​10344 by @​tiangolo.
Translations
  • 🌐 Add Ukrainian translation for docs/uk/docs/tutorial/extra-data-types.md. PR #​10132 by @​ArtemKhymenko.
  • 🌐 Fix typos in French translations for docs/fr/docs/advanced/path-operation-advanced-configuration.md, docs/fr/docs/alternatives.md, docs/fr/docs/async.md, docs/fr/docs/features.md, docs/fr/docs/help-fastapi.md, docs/fr/docs/index.md, docs/fr/docs/python-types.md, docs/fr/docs/tutorial/body.md, docs/fr/docs/tutorial/first-steps.md, docs/fr/docs/tutorial/query-params.md. PR #​10154 by @​s-rigaud.
  • 🌐 Add Chinese translation for docs/zh/docs/async.md. PR #​5591 by @​mkdir700.
  • 🌐 Update Chinese translation for docs/tutorial/security/simple-oauth2.md. PR #​3844 by @​jaystone776.
  • 🌐 Add Korean translation for docs/ko/docs/deployment/cloud.md. PR #​10191 by @​Sion99.
  • 🌐 Add Japanese translation for docs/ja/docs/deployment/https.md. PR #​10298 by @​tamtam-fitness.
  • 🌐 Fix typo in Russian translation for docs/ru/docs/tutorial/body-fields.md. PR #​10224 by @​AlertRED.
  • 🌐 Add Polish translation for docs/pl/docs/help-fastapi.md. PR #​10121 by @​romabozhanovgithub.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/header-params.md. PR #​10226 by @​AlertRED.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/versions.md. PR #​10276 by @​xzmeng.
Internal

v0.103.1

Compare Source

Fixes
  • 📌 Pin AnyIO to < 4.0.0 to handle an incompatibility while upgrading to Starlette 0.31.1. PR #​10194 by @​tiangolo.
Docs
Translations
Refactors
Internal

v0.103.0

Compare Source

Features
Docs
  • 📝 Add note to docs about Separate Input and Output Schemas with FastAPI version. PR #​10150 by @​tiangolo.

v0.102.0

Compare Source

Features
Refactors
Docs
Internal

v0.101.1

Compare Source

Fixes
  • ✨ Add ResponseValidationError printable details, to show up in server error logs. PR #​10078 by @​tiangolo.
Refactors
Docs
Translations
Internal
encode/httpx (httpx)

v0.26.0

Compare Source

Added
  • The proxy argument was added. You should use the proxy argument instead of the deprecated proxies, or use mounts= for more complex configurations. (#​2879)
Deprecated
  • The proxies argument is now deprecated. It will still continue to work, but it will be removed in the future. (#​2879)
Fixed
  • Fix cases of double escaping of URL path components. Allow / as a safe character in the query portion. (#​2990)
  • Handle NO_PROXY envvar cases when a fully qualified URL is supplied as the value. (#​2741)
  • Allow URLs where username or password contains unescaped '@​'. (#​2986)
  • Ensure ASGI raw_path does not include URL query component. (#​2999)
  • Ensure Response.iter_text() cannot yield empty strings. (#​2998)

v0.25.2

Compare Source

Added
  • Add missing type hints to few __init__() methods. (#​2938)

v0.25.1

Compare Source

Added
  • Add support for Python 3.12. (#​2854)
  • Add support for httpcore 1.0 (#​2885)
Fixed
  • Raise ValueError on Response.encoding being set after Response.text has been accessed. (#​2852)

v0.25.0

Compare Source

Removed
  • Drop support for Python 3.7. (#​2813)
Added
  • Support HTTPS proxies. (#​2845)
  • Change the type of Extensions from Mapping[Str, Any] to MutableMapping[Str, Any]. (#​2803)
  • Add socket_options argument to httpx.HTTPTransport and httpx.AsyncHTTPTransport classes. (#​2716)
  • The Response.raise_for_status() method now returns the response instance. For example: data = httpx.get('...').raise_for_status().json(). (#​2776)
Fixed
  • Return 500 error response instead of exceptions when raise_app_exceptions=False is set on ASGITransport. (#​2669)
  • Ensure all WSGITransport environs have a SERVER_PROTOCOL. (#​2708)
  • Always encode forward slashes as %2F in query parameters (#​2723)
  • Use Mozilla documentation instead of httpstatuses.com for HTTP error reference (#​2768)

v0.24.1

Compare Source

Added
  • Provide additional context in some InvalidURL exceptions. (#​2675)
Fixed
  • Fix optional percent-encoding behaviour. (#​2671)
  • More robust checking for opening upload files in binary mode. (#​2630)
  • Properly support IP addresses in NO_PROXY environment variable. (#​2659)
  • Set default file for NetRCAuth() to None to use the stdlib default. (#​2667)
  • Set logging request lines to INFO level for async requests, in line with sync requests. (#​2656)
  • Fix which gen-delims need to be escaped for path/query/fragment components in URL. (#​2701)

v0.24.0

Compare Source

Changed
  • The logging behaviour has been changed to be more in-line with other standard Python logging usages. We no longer have a custom TRACE log level, and we no longer use the HTTPX_LOG_LEVEL environment variable to auto-configure logging. We now have a significant amount of DEBUG logging available at the network level. Full documentation is available at https://www.python-httpx.org/logging/ (#​2547, encode/httpcore#648)
  • The Response.iter_lines() method now matches the stdlib behaviour and does not include the newline characters. It also resolves a performance issue. (#​2423)
  • Query parameter encoding switches from using + for spaces and %2F for forward slash, to instead using %20 for spaces and treating forward slash as a safe, unescaped character. This differs from requests, but is in line with browser behavior in Chrome, Safari, and Firefox. Both options are RFC valid. (#​2543)
  • NetRC authentication is no longer automatically handled, but is instead supported by an explicit httpx.NetRCAuth() authentication class. See the documentation at https://www.python-httpx.org/advanced/#netrc-support (#​2525)
Removed
  • The rfc3986 dependancy has been removed. (#​2252)
python/importlib_resources (importlib_resources)

v5.13.0

Compare Source

v5.12.0

Compare Source

v5.11.1

Compare Source

v5.11.0

Compare Source

v5.10.4

Compare Source

v5.10.3

Compare Source

v5.10.2

Compare Source

v5.10.1

Compare Source

v5.10.0

Compare Source

v5.9.0

Compare Source

v5.8.1

Compare Source

DiamondLightSource/ispyb-api (ispyb)

v6.13.0

Compare Source

  • ispyb.job: bug fix - sweeps may start counting at 0
  • Added support for Python 3.11
  • Remove support for Python 3.6 (end-of-life on 2021-12-23)
  • Update SQLAlchemy ORM models for ispyb-database v1.33.0

v6.12.1

Compare Source

  • Pin mysql-connector-python version to 8.0.29

v6.12.0

Compare Source

  • Update SQLAlchemy ORM models for ispyb-database v1.31.0
  • Update insert_subsample_for_image_full_path() to use stored procedure v2 and add optional parameter experiment_type
numpy/numpy (numpy)

v1.26.3

Compare Source

v1.26.2: 1.26.2 release

Compare Source

NumPy 1.26.2 Release Notes

NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.

Contributors

A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.

  • @​stefan6419846
  • @​thalassemia +
  • Andrew Nelson
  • Charles Bousseau +
  • Charles Harris
  • Marcel Bargull +
  • Mark Mentovai +
  • Matti Picus
  • Nathan Goldbaum
  • Ralf Gommers
  • Sayed Adel
  • Sebastian Berg
  • William Ayd +

Pull requests merged

A total of 25 pull requests were merged for this release.

  • #​24814: MAINT: align test_dispatcher s390x targets with _umath_tests_mtargets
  • #​24929: MAINT: prepare 1.26.x for further development
  • #​24955: ENH: Add Cython enumeration for NPY_FR_GENERIC
  • #​24962: REL: Remove Python upper version from the release branch
  • #​24971: BLD: Use the correct Python interpreter when running tempita.py
  • #​24972: MAINT: Remove unhelpful error replacements from import_array()
  • #​24977: BLD: use classic linker on macOS, the new one in XCode 15 has...
  • #​25003: BLD: musllinux_aarch64 [wheel build]
  • #​25043: MAINT: Update mailmap
  • #​25049: MAINT: Update meson build infrastructure.
  • #​25071: MAINT: Split up .github/workflows to match main
  • #​25083: BUG: Backport fix build on ppc64 when the baseline set to Power9...
  • #​25093: BLD: Fix features.h detection for Meson builds [1.26.x Backport]
  • #​25095: BUG: Avoid intp conversion regression in Cython 3 (backport)
  • #​25107: CI: remove obsolete jobs, and move macOS and conda Azure jobs...
  • #​25108: CI: Add linux_qemu action and remove travis testing.
  • #​25112: MAINT: Update .spin/cmds.py from main.
  • #​25113: DOC: Visually divide main license and bundled licenses in wheels
  • #​25115: MAINT: Add missing noexcept to shuffle helpers
  • #​25116: DOC: Fix license identifier for OpenBLAS
  • #​25117: BLD: improve detection of Netlib libblas/libcblas/liblapack
  • #​25118: MAINT: Make bitfield integers unsigned
  • #​25119: BUG: Make n a long int for np.random.multinomial
  • #​25120: BLD: change default of the allow-noblas option to true.
  • #​25121: BUG: ensure passing np.dtype to itself doesn't crash

Checksums

MD5
1a5dc6b5b3bf11ad40a59eedb3b69fa1  numpy-1.26.2-cp310-cp310-macosx_10_9_x86_64.whl
4b741c6dfe4e6e22e34e9c5c788d4f04  numpy-1.26.2-cp310-cp310-macosx_11_0_arm64.whl
2953687fb26e1dd8a2d1bb7109551fcd  numpy-1.26.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
ea9127a3a03f27fd101c62425c661d8d  numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
7a6be7c6c1cc3e1ff73f64052fe30677  numpy-1.26.2-cp310-cp310-musllinux_1_1_aarch64.whl
4f45d3f69f54fd1638609fde34c33a5c  numpy-1.26.2-cp310-cp310-musllinux_1_1_x86_64.whl
f22f5ea26c86eb126ff502fff75d6c21  numpy-1.26.2-cp310-cp310-win32.whl
49871452488e1a55d15ab54c6f3e546e  numpy-1.26.2-cp310-cp310-win_amd64.whl
676740bf60fb1c8f5a6b31e00b9a4e9b  numpy-1.26.2-cp311-cp311-macosx_10_9_x86_64.whl
7170545dcc2a38a1c2386a6081043b64  numpy-1.26.2-cp311-cp311-macosx_11_0_arm64.whl
feae1190c73d811e2e7ebcad4baf6edf  numpy-1.26.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
03131896abade61b77e0f6e53abb988a  numpy-1.26.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
f160632f128a3fd46787aa02d8731fbb  numpy-1.26.2-cp311-cp311-musllinux_1_1_aarch64.whl
014250db593d589b5533ef7127839c46  numpy-1.26.2-cp311-cp311-musllinux_1_1_x86_64.whl
fb437346dac24d0cb23f5314db043c8b  numpy-1.26.2-cp311-cp311-win32.whl
7359adc233874898ea768cd4aec28bb3  numpy-1.26.2-cp311-cp311-win_amd64.whl
207a678bea75227428e7fb84d4dc457a  numpy-1.26.2-cp312-cp312-macosx_10_9_x86_64.whl
302ff6cc047a408cdf21981bd7b26056  numpy-1.26.2-cp312-cp312-macosx_11_0_arm64.whl
7526faaea58c76aed395c7128dd6e14d  numpy-1.26.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
28d3b1943d3a8ad4bbb2ae9da0a77cb9  numpy-1.26.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
d91f5b2bb2c931e41ae7c80ec7509a31  numpy-1.26.2-cp312-cp312-musllinux_1_1_aarch64.whl
b2504d4239419f012c08fa1eab12f940  numpy-1.26.2-cp312-cp312-musllinux_1_1_x86_64.whl
57944ba30adc07f33e83a9b45f5c625a  numpy-1.26.2-cp312-cp312-win32.whl
fe38cd95bbee405ce0cf51c8753a2676  numpy-1.26.2-cp312-cp312-win_amd64.whl
28e1bc3efaf89cf6f0a2b616c0e16401  numpy-1.26.2-cp39-cp39-macosx_10_9_x86_64.whl
9932ccff54855f12ee24f60528279bf1  numpy-1.26.2-cp39-cp39-macosx_11_0_arm64.whl
b52c1e987074dad100ad234122a397b9  numpy-1.26.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
1d1bd7e0d2a89ce795a9566a38ed9bb5  numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
01d2abfe8e9b35415efb791ac6c5865e  numpy-1.26.2-cp39-cp39-musllinux_1_1_aarch64.whl
5a6d6ac287ebd93a221e59590329e202  numpy-1.26.2-cp39-cp39-musllinux_1_1_x86_64.whl
4e4e4d8cf661a8d2838ee700fabae87e  numpy-1.26.2-cp39-cp39-win32.whl
b8e52ecac110471502686abbdf774b78  numpy-1.26.2-cp39-cp39-win_amd64.whl
aed2d2914be293f60fedda360b64abf8  numpy-1.26.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
6bd88e0f33933445d0e18c1a850f60e0  numpy-1.26.2-pp39-pypy39_pp73-manylinux_2_17_x

Configuration

📅 Schedule: Branch creation - "after 7am and before 4pm on monday" in timezone Europe/London, 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 force-pushed the renovate/all branch 2 times, most recently from 9afda68 to 073e4c3 Compare July 23, 2022 18:20
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from ea4b026 to 805a6c7 Compare August 9, 2022 15:48
@renovate renovate bot changed the title Update all dependencies Update all dependencies to v0.79.0 Aug 9, 2022
@renovate renovate bot changed the title Update all dependencies to v0.79.0 Update all dependencies Aug 10, 2022
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from e92dbfb to 1e8131c Compare August 17, 2022 11:16
@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from b7791c2 to e8e2fb7 Compare August 24, 2022 21:16
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from bc27993 to 234c49b Compare September 2, 2022 11:32
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 0233cfd to 448f241 Compare September 11, 2022 18:19
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from c43fea7 to 36808a5 Compare September 15, 2022 14:29
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from a387cef to ebfbca5 Compare October 8, 2022 01:58
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 620d79d to 9ced090 Compare November 15, 2023 01:38
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from 4c5c84d to 417245e Compare November 23, 2023 18:52
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 2251e45 to 62812d6 Compare December 1, 2023 13:33
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from f01de50 to 8d2134f Compare December 6, 2023 16:51
@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from b894b65 to cd427f3 Compare December 19, 2023 21:25
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from ccd0354 to 3477b77 Compare December 28, 2023 22:19
@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from 1a41d73 to f5074dc Compare January 6, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant