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

Lock file maintenance poetry all non-major dependencies #3028

Merged
merged 13 commits into from
Jul 26, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 24, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
lockFileMaintenance All locks refreshed age adoption passing confidence
aiobotocore dependencies patch 2.5.0 -> 2.5.2 age adoption passing confidence
aiobotocore dependencies minor 2.3.4 -> 2.5.2 age adoption passing confidence
asyncpg dependencies minor ^0.27.0 -> ^0.28.0 age adoption passing confidence
fastapi dependencies minor 0.95.2 -> 0.100.0 age adoption passing confidence
geoalchemy2 (source) dependencies minor ^0.13.0 -> ^0.14.0 age adoption passing confidence
geopandas dependencies patch 0.13.0 -> 0.13.2 age adoption passing confidence
matplotlib (source) dev patch 3.7.1 -> 3.7.2 age adoption passing confidence
nats-py dependencies minor 2.2.0 -> 2.3.1 age adoption passing confidence
numpy (source) dependencies minor 1.24.3 -> 1.25.1 age adoption passing confidence
pyjwt dependencies minor 2.7.0 -> 2.8.0 age adoption passing confidence
pylint (changelog) dev-dependencies minor 2.13.9 -> 2.17.4 age adoption passing confidence
pytest (source, changelog) dependencies minor 7.3.1 -> 7.4.0 age adoption passing confidence
pytest (source, changelog) dev-dependencies minor 7.0.1 -> 7.4.0 age adoption passing confidence
pytest (source, changelog) dev minor 7.3.1 -> 7.4.0 age adoption passing confidence
pytest-mock (changelog) dev minor 3.10.0 -> 3.11.1 age adoption passing confidence
pytest-testmon dev patch 2.0.8 -> 2.0.12 age adoption passing confidence
python-decouple dependencies minor 3.6 -> 3.8 age adoption passing confidence
rasterio dependencies patch 1.3.7 -> 1.3.8 age adoption passing confidence
redis (changelog) dependencies minor 4.5.5 -> 4.6.0 age adoption passing confidence
rope dev minor 1.8.0 -> 1.9.0 age adoption passing confidence
rpy2 dependencies patch 3.5.12 -> 3.5.13 age adoption passing confidence
ruff (source, changelog) dev patch ^0.0.270 -> ^0.0.280 age adoption passing confidence
scikit-learn (source) dependencies minor 1.2.2 -> 1.3.0 age adoption passing confidence
scipy (source) dependencies minor 1.10.1 -> 1.11.1 age adoption passing confidence
shapely dependencies patch 1.8.5.post1 -> 1.8.5 age adoption passing confidence
sqlalchemy (changelog) dependencies patch 1.4.48 -> 1.4.49 age adoption passing confidence
sqlalchemy (changelog) dependencies patch 2.0.15 -> 2.0.19 age adoption passing confidence
types-aiobotocore dependencies patch 2.5.0.post2 -> 2.5.2 age adoption passing confidence
uvicorn (changelog) dependencies minor 0.22.0 -> 0.23.1 age adoption passing confidence

🔧 This Pull Request updates lock files to use the latest dependency versions.


Release Notes

aio-libs/aiobotocore (aiobotocore)

v2.5.2: aiobotocore 2.5.2

Compare Source

What's Changed

Full Changelog: aio-libs/aiobotocore@2.5.1...2.5.2

v2.5.1: aiobotocore 2.5.1

Compare Source

What's Changed

Full Changelog: aio-libs/aiobotocore@2.5.0...2.5.1

MagicStack/asyncpg (asyncpg)

v0.28.0

Compare Source

Minor fixes and improvements.

Changes

tiangolo/fastapi (fastapi)

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
geoalchemy/geoalchemy2 (geoalchemy2)

v0.14.0

Compare Source

geopandas/geopandas (geopandas)

v0.13.2

Compare Source

Bug fix:

  • Fix a regression in reading from local file URIs (file://..) using
    geopandas.read_file (#​2948).

v0.13.1

Compare Source

Bug fix:

  • Fix a regression in reading from URLs using geopandas.read_file (#​2908). This
    restores the behaviour to download all data up-front before passing it to the
    underlying engine (fiona or pyogrio), except if the server supports partial requests
    (to support reading a subset of a large file).
matplotlib/matplotlib (matplotlib)

v3.7.2: REL: v3.7.2

Compare Source

This is the second bugfix release of the 3.7.x series.

This release contains several bug-fixes and adjustments:

  • Avoid modifying input masks in pcolor/pcolormesh
  • Fix 3D set_aspect error cases
  • Fix IPython's %pylab mode detection
  • Fix Figure.get_constrained_layout_pads()
  • Fix Legend.set_draggable() with update="bbox"
  • Fix TransformedBbox.{,full_}contains
  • Fix clipping of bar_label text
  • Fix colorbar size when saving with explicit bbox_inches
  • Fix errors when an input is entirely NaN
  • Fix leaks of exception tracebacks and LayoutGrid objects
  • Fix non-interpolated imshow in PDF export
  • Fix palettized image optimization in PDF export
  • Fix pgf tests with TeXLive 2022
  • Fix removal of Axes that contain widgets that are grabbing the mouse
  • Fix removal of draggable artists
  • Fix subslice optimization for long, fully nan lines
  • Fix tight layout if Figure has an existing layout manager
  • Fix window extent of AnnotationBbox before first draw
  • Fix wspace and hspace in subfigures
  • Improve Qt compatibility
  • Improve compatibility with Python 3.12
  • Prevent under the hood downcasting of values in xcorr
  • Remove some NumPy function overrides from pylab
  • Remove warning with symlog scales on mouseover
nats-io/nats.py (nats-py)

v2.3.1

Compare Source

v2.3.0

Compare Source

pip install nats-py

Added

Upload example:

import nats
import asyncio

async def main():
    nc = await nats.connect("locahost", name="object.py")
    js = nc.jetstream()
    obs = await js.create_object_store("nats-py-object-store")

    object_name = 'my-file.mp4'
    with open(object_name) as f:
        await obs.put(object_name, f)

    await nc.close()

if __name__ == '__main__':
    asyncio.run(main())

Download example:

import nats
import asyncio

async def main():
    nc = await nats.connect("localhost", name="object.py")
    js = nc.jetstream()
    obs = await js.object_store("nats-py-object-store")

    files = await obs.list()
    for f in files:
        print(f.name, "-", f.size)

    object_name = 'my-file.mp4'
    with open("copy-"+object_name, 'w') as f:
        await obs.get(object_name, f)

    await nc.close()

if __name__ == '__main__':
    asyncio.run(main())

Fixed


Configuration

📅 Schedule: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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.

Test Links:

Landing Page
MoreCast 2.0
Percentile Calculator
MoreCast
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator

@renovate
Copy link
Contributor Author

renovate bot commented Jul 24, 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: openshift/s3-backup/docker/poetry.lock
[18:36:45.048] INFO (9): Installing tool python v3.6.15...
installing v2 tool python v3.6.15
linking tool python v3.6.15
Python 3.6.15
pip 21.3.1 from /opt/containerbase/tools/python/3.6.15/lib/python3.6/site-packages/pip (python 3.6)
[18:36:50.998] INFO (9): Installed tool python in 5.9s.
[18:36:51.115] INFO (149): Installing tool poetry v1.2.2...
installing v2 tool poetry v1.2.2
[18:36:52.584] FATAL (149): Command failed with exit code 1: /usr/local/containerbase/bin/install-tool poetry 1.2.2
    err: {
      "type": "Error",
      "message": "Command failed with exit code 1: /usr/local/containerbase/bin/install-tool poetry 1.2.2",
      "stack":
          Error: Command failed with exit code 1: /usr/local/containerbase/bin/install-tool poetry 1.2.2
              at makeError (/snapshot/dist/containerbase-cli.js:33135:13)
              at handlePromise (/snapshot/dist/containerbase-cli.js:33590:29)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async InstallLegacyToolService.execute (/snapshot/dist/containerbase-cli.js:39599:5)
              at async InstallToolService.execute (/snapshot/dist/containerbase-cli.js:39765:7)
              at async InstallToolShortCommand.execute (/snapshot/dist/containerbase-cli.js:39834:14)
              at async InstallToolShortCommand.validateAndExecute (/snapshot/dist/containerbase-cli.js:1342:26)
              at async _Cli.run (/snapshot/dist/containerbase-cli.js:2455:22)
              at async _Cli.runExit (/snapshot/dist/containerbase-cli.js:2463:28)
              at async main (/snapshot/dist/containerbase-cli.js:39967:3)
      "shortMessage": "Command failed with exit code 1: /usr/local/containerbase/bin/install-tool poetry 1.2.2",
      "command": "/usr/local/containerbase/bin/install-tool poetry 1.2.2",
      "escapedCommand": "\"/usr/local/containerbase/bin/install-tool\" poetry 1.2.2",
      "exitCode": 1,
      "failed": true,
      "timedOut": false,
      "isCanceled": false,
      "killed": false
    }
[18:36:52.588] INFO (149): Installed tool poetry with errors in 1.4s.

/usr/local/bin/docker: line 4: .: filename argument required
.: usage: . filename [arguments]
ERROR: Could not find a version that satisfies the requirement poetry==1.2.2 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.0.post1, 0.4.1, 0.4.2, 0.5.0b1, 0.5.0b2, 0.5.0, 0.6.0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.12, 1.1.13, 1.1.14, 1.1.15, 1.2.0a1, 1.2.0a2)
ERROR: No matching distribution found for poetry==1.2.2

@renovate renovate bot force-pushed the renovate/poetry-all-minor-patch branch from 81a46e0 to 3450300 Compare July 24, 2023 15:56
@renovate renovate bot force-pushed the renovate/poetry-all-minor-patch branch from 3450300 to 69a4610 Compare July 24, 2023 18:38
@conbrad
Copy link
Collaborator

conbrad commented Jul 24, 2023

Closing to save resources

@conbrad conbrad closed this Jul 24, 2023
@conbrad conbrad reopened this Jul 25, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Jul 25, 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.

@conbrad
Copy link
Collaborator

conbrad commented Jul 25, 2023

Closing to save resources

@conbrad conbrad closed this Jul 25, 2023
@conbrad conbrad reopened this Jul 25, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #3028 (250a181) into main (304314a) will decrease coverage by 0.39%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3028      +/-   ##
==========================================
- Coverage   85.16%   84.77%   -0.39%     
==========================================
  Files         300      300              
  Lines       10051    10052       +1     
  Branches      587      587              
==========================================
- Hits         8560     8522      -38     
- Misses       1333     1369      +36     
- Partials      158      161       +3     
Files Changed Coverage Δ
api/app/routers/sfms.py 55.81% <ø> (ø)
api/app/wildfire_one/schema_parsers.py 94.36% <ø> (ø)
...c/features/moreCast2/components/TabbedDataGrid.tsx 39.69% <ø> (ø)
api/app/schemas/fba.py 100.00% <100.00%> (ø)
api/app/schemas/fba_calc.py 100.00% <100.00%> (ø)
api/app/schemas/forecasts.py 100.00% <100.00%> (ø)
api/app/schemas/hfi_calc.py 100.00% <100.00%> (ø)
api/app/schemas/morecast_v2.py 100.00% <100.00%> (ø)
api/app/schemas/shared.py 100.00% <100.00%> (ø)
api/app/schemas/stations.py 100.00% <100.00%> (ø)
... and 1 more

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@conbrad conbrad temporarily deployed to production July 26, 2023 20:29 Inactive
@conbrad conbrad temporarily deployed to production July 26, 2023 22:04 Inactive
@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@conbrad conbrad temporarily deployed to production July 26, 2023 23:08 Inactive
@conbrad conbrad merged commit 08a0907 into main Jul 26, 2023
32 checks passed
@conbrad conbrad deleted the renovate/poetry-all-minor-patch branch July 26, 2023 23:16
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Conor Brady <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant