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

⬆️(project) upgrade python dependencies #179

Merged
merged 4 commits into from Apr 24, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 14, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Faker ==12.3.0 -> ==13.3.2 age adoption passing confidence
bandit (source, changelog) ==1.7.2 -> ==1.7.4 age adoption passing confidence
click (changelog) ==8.0.3 -> ==8.0.4 age adoption passing confidence
elasticsearch ==7.17.0 -> ==8.1.0 age adoption passing confidence
fastapi ==0.73.0 -> ==0.75.0 age adoption passing confidence
hypothesis (source, changelog) ==6.36.2 -> ==6.39.3 age adoption passing confidence
ipython (source) ==8.0.1 -> ==8.1.1 age adoption passing confidence
mkdocs-material (source) ==8.1.11 -> ==8.2.5 age adoption passing confidence
mkdocstrings (changelog) ==0.18.0 -> ==0.18.1 age adoption passing confidence
pyfakefs ==4.5.4 -> ==4.5.5 age adoption passing confidence
pytest (source, changelog) ==7.0.1 -> ==7.1.0 age adoption passing confidence
python-swiftclient ==3.13.0 -> ==3.13.1 age adoption passing confidence
sentry_sdk (changelog) ==1.5.5 -> ==1.5.7 age adoption passing confidence
uvicorn (source, changelog) ==0.17.4 -> ==0.17.6 age adoption passing confidence
websockets (changelog) ==10.1 -> ==10.2 age adoption passing confidence

Release Notes

joke2k/faker

v13.3.2

Compare Source

v13.3.1

Compare Source

v13.3.0

Compare Source

v13.2.0

Compare Source

v13.1.0

Compare Source

  • Add lorem support for de_DE and de_AT. Thanks @​@​Kalbra.

v13.0.0

Compare Source

v12.3.3

Compare Source

v12.3.2

Compare Source

  • Fix postcode format for es_ES locale. Thanks @​mondeja.

v12.3.1

Compare Source

  • Prevent "non-integer arguments to randrange()" warnings on Python 3.10.
    Thanks @​jacksmith15.
PyCQA/bandit

v1.7.4

Compare Source

What's Changed

New Contributors

Full Changelog: PyCQA/bandit@1.7.3...1.7.4

v1.7.3

Compare Source

What's Changed

New Contributors

Full Changelog: PyCQA/bandit@1.7.2...1.7.3

elastic/elasticsearch-py

v8.1.0

Compare Source

Transforms

  • Added the transform.reset_transform API

v8.0.1

Compare Source

Client

  • Fixed the sort parameter of multiple APIs to serialize in the query string when using the shorthand form

Indices

  • Fixed the index parameter to be required for the indices.field_usage_stats API

SQL

  • Added the catalog, keep_alive, keep_on_completion, params, runtime_mappings, and wait_for_completion_timeout parameters to the sql.query API

v8.0.0

Compare Source

⚠️ v8.0.0 is a new major release and contains some breaking changes.
For information on how migrate your application from v7.x to v8.0.0 you can read the migration guide here.

Client

Added

  • Added the top-level .options() method to Elasticsearch and AsyncElasticsearch for modifying transport options.
  • Added parameters corresponding to JSON request body fields for all APIs
  • Added basic_auth parameter for specifying username and password authentication
  • Added bearer_auth parameter for specifying an HTTP bearer token or service token
  • Added the meta property to ApiError to access the HTTP response metadata of an error.
  • Added a check that a compatible version of the elastic-transport package is installed.

Changed

  • Changed the transport layer to use the elastic-transport package
  • Changed user-defined body parameters to have semantic names (e.g index(document={...}) instead of index(body={...})).
  • Changed responses to be objects with two properties, meta for response metadata (HTTP status, headers, node, etc) and body for a typed body.
  • Changed AsyncElasticsearch to always be available, regardless of whether aiohttp is installed
  • Changed exception hierarchy, the major change is a new exception ApiError which differentiates between an error that's raised from the transport layer (previously elasticsearch.exceptions.TransportError, now elastic_transport.TransportError) and one raised from the API layer
  • Changed the name of JSONSerializer to JsonSerializer for consistency with other serializer names. Added an alias to the old name for backwards compatibility
  • Changed the default mimetypes (application/json) to instead use compatibility mimetypes (application/vnd.elasticsearch+json) which always request for responses compatibility with version 8.x.

Removed

  • Removed support for Python 2.7 and Python 3.5, the library now supports only Python 3.6+
  • Removed the elasticsearch.connection module as all functionality has been moved to the elastic-transport package
  • Removed the default URL of http://localhost:9200 due to Elasticsearch 8.0 default configuration being https://localhost:9200.
    The client's connection to Elasticsearch now must be specified with scheme, host, and port or with the cloud_id parameter
  • Removed the ability to use positional arguments with API methods. Going forward all API parameters must be keyword-only parameters

Deprecated

  • Deprecated the body and params parameters on all APIs
  • Deprecated setting transport options http_auth, api_key, ignore, request_timeout, headers, and opaque_id
    All of these settings should instead be set via the .options() method
  • Deprecated the elasticsearch.transport and elasticsearch.client modules. These modules will be removed in a future version

API

  • Removed the doc_type, include_type_name, and copy_settings parameters from many document and index APIs

CAT

  • Removed the deprecated local parameter from the cat.indices, cat.nodes, cat.shards API
  • Removed the deprecated allow_no_datafeeds parameter from the cat.ml_datafeeds API
  • Removed the deprecated allow_no_jobs parameter from the cat.ml_jobs API
  • Removed the deprecated size parameter from the cat.thread_pool API
  • Added the time parameter to the cat.thread_pool API

Documents

  • Removed the deprecated size parameter from the delete_by_query API
  • Removed the deprecated size parameter from the update_by_query API

Indices

  • Removed the deprecated indices.flush_synced API
  • Removed the deprecated indices.freeze API
  • Removed the deprecated indices.get_upgrade API
  • Removed the deprecated indices.upgrade API
  • Removed the deprecated indices.exist_type API
  • Removed the deprecated parameter copy_settings from the indices.shrink API
  • Deprecated the verbose parameter of the indices.segments API

License / X-Pack

  • Deprecated the accept_enterprise parameter of the license.get API
  • Deprecated the accept_enterprise parameter of the xpack.info API

Machine Learning

  • Added the experimental ml.infer_trained_model_deployment API
  • Added the experimental ml.put_trained_model_definition_part API
  • Added the experimental ml.put_trained_model_vocabulary API
  • Added the experimental ml.start_trained_model_deployment API
  • Added the experimental ml.stop_trained_model_deployment API
  • Added the timeout parameter to the ml.delete_trained_model API
  • Removed the deprecated allow_no_jobs parameter from the ml.close_job API
  • Removed the deprecated ml.find_text_structure API
  • Removed the deprecated allow_no_datafeeds parameter from the ml.get_datafeed_stats API
  • Removed the deprecated allow_no_datafeeds parameter from the ml.get_datafeeds API
  • Removed the deprecated allow_no_jobs parameter from the ml.get_job_stats API
  • Removed the deprecated allow_no_jobs parameter from the ml.get_jobs API
  • Removed the deprecated allow_no_jobs parameter from the ml.get_overall_buckets API

Search

  • Added the experimental knn_search API

Searchable Snapshots

  • Removed the deprecated searchable_snapshots.repository_stats API

Snapshots

  • Changed the snapshot.delete API to accept multiple snapshots

Security

  • Added the security.enroll_kibana API
  • Added the security.enroll_node API

v7.17.1

Compare Source

Helpers

Transport

tiangolo/fastapi

v0.75.0

Compare Source

Features

v0.74.1

Compare Source

Features
  • ✨ Include route in scope to allow middleware and other tools to extract its information. PR #​4603 by @​tiangolo.

v0.74.0

Compare Source

Breaking Changes
  • ✨ Update internal AsyncExitStack to fix context for dependencies with yield. PR #​4575 by @​tiangolo.

Dependencies with yield can now catch HTTPException and custom exceptions. For example:

async def get_database():
    with Session() as session:
        try:
            yield session
        except HTTPException:
            session.rollback()
            raise
        finally:
            session.close()

After the dependency with yield handles the exception (or not) the exception is raised again. So that any exception handlers can catch it, or ultimately the default internal ServerErrorMiddleware.

If you depended on exceptions not being received by dependencies with yield, and receiving an exception breaks the code after yield, you can use a block with try and finally:

async def do_something():
    try:
        yield something
    finally:
        some_cleanup()

...that way the finally block is run regardless of any exception that might happen.

Features
  • The same PR #​4575 from above also fixes the contextvars context for the code before and after yield. This was the main objective of that PR.

This means that now, if you set a value in a context variable before yield, the value would still be available after yield (as you would intuitively expect). And it also means that you can reset the context variable with a token afterwards.

For example, this works correctly now:

from contextvars import ContextVar
from typing import Any, Dict, Optional

legacy_request_state_context_var: ContextVar[Optional[Dict[str, Any]]] = ContextVar(
    "legacy_request_state_context_var", default=None
)

async def set_up_request_state_dependency():
    request_state = {"user": "deadpond"}
    contextvar_token = legacy_request_state_context_var.set(request_state)
    yield request_state
    legacy_request_state_context_var.reset(contextvar_token)

...before this change it would raise an error when resetting the context variable, because the contextvars context was different, because of the way it was implemented.

Note: You probably don't need contextvars, and you should probably avoid using them. But they are powerful and useful in some advanced scenarios, for example, migrating from code that used Flask's g semi-global variable.

Technical Details: If you want to know more of the technical details you can check out the PR description #​4575.

Internal
ipython/ipython

v8.1.1

Compare Source

v8.1.0

Compare Source

squidfunk/mkdocs-material

v8.2.5

Compare Source

  • Fixed #​3596: Mermaid not working when headline with name 'Mermaid' present
  • Fixed #​3643: Reduce time to render pages with thousands of code blocks
  • Fixed #​3665: Missing styles for Mermaid.js flowcharts cluster labels

v8.2.4

Compare Source

  • Fixed malformed Google Fonts URL when a font setting was omitted
  • Fixed #​3648: Fixed specificity issue with admonitions in lists
  • Fixed #​3653: Invalid outdated version banner URL when using instant loading

v8.2.3

Compare Source

  • Fixed #​3578: Active element in table of contents off-by-one on large screens

v8.2.2

Compare Source

  • Added automatic removal of query parameter when search is closed
  • Fixed #​3599: Anchors always overriden when using navigation tracking

v8.2.1

Compare Source

  • Fixed module material.plugins not being found (8.2.0 regression)

v8.2.0

Compare Source

  • Added native support for Mermaid.js diagrams
  • Added native support for tags (with search integration)
  • Added support for staying on page when switching versions
pytest-dev/pytest

v7.1.0

Compare Source

pytest 7.1.0 (2022-03-13)

Breaking Changes

  • #​8838: As per our policy, the following features have been deprecated in the 6.X series and are now
    removed:

    • pytest._fillfuncargs function.
    • pytest_warning_captured hook - use pytest_warning_recorded instead.
    • -k -foobar syntax - use -k 'not foobar' instead.
    • -k foobar: syntax.
    • pytest.collect module - import from pytest directly.

    For more information consult
    Deprecations and Removals in the docs.

  • #​9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23.

Improvements

  • #​5192: Fixed test output for some data types where -v would show less information.

    Also, when showing diffs for sequences, -q would produce full diffs instead of the expected diff.

  • #​9362: pytest now avoids specialized assert formatting when it is detected that the default __eq__ is overridden in attrs or dataclasses.

  • #​9536: When -vv is given on command line, show skipping and xfail reasons in full instead of truncating them to fit the terminal width.

  • #​9644: More information about the location of resources that led Python to raise ResourceWarning{.interpreted-text role="class"} can now
    be obtained by enabling tracemalloc{.interpreted-text role="mod"}.

    See resource-warnings{.interpreted-text role="ref"} for more information.

  • #​9678: More types are now accepted in the ids argument to @pytest.mark.parametrize.
    Previously only [str]{.title-ref}, [float]{.title-ref}, [int]{.title-ref} and [bool]{.title-ref} were accepted;
    now [bytes]{.title-ref}, [complex]{.title-ref}, [re.Pattern]{.title-ref}, [Enum]{.title-ref} and anything with a [__name__]{.title-ref} are also accepted.

  • #​9692: pytest.approx{.interpreted-text role="func"} now raises a TypeError{.interpreted-text role="class"} when given an unordered sequence (such as set{.interpreted-text role="class"}).

    Note that this implies that custom classes which only implement __iter__ and __len__ are no longer supported as they don't guarantee order.

Bug Fixes

  • #​8242: The deprecation of raising unittest.SkipTest{.interpreted-text role="class"} to skip collection of
    tests during the pytest collection phase is reverted - this is now a supported
    feature again.

  • #​9493: Symbolic link components are no longer resolved in conftest paths.
    This means that if a conftest appears twice in collection tree, using symlinks, it will be executed twice.
    For example, given

    tests/real/conftest.py
    tests/real/test_it.py
    tests/link -> tests/real

    running pytest tests now imports the conftest twice, once as tests/real/conftest.py and once as tests/link/conftest.py.
    This is a fix to match a similar change made to test collection itself in pytest 6.0 (see 6523{.interpreted-text role="pull"} for details).

  • #​9626: Fixed count of selected tests on terminal collection summary when there were errors or skipped modules.

    If there were errors or skipped modules on collection, pytest would mistakenly subtract those from the selected count.

  • #​9645: Fixed regression where --import-mode=importlib used together with PYTHONPATH{.interpreted-text role="envvar"} or pythonpath{.interpreted-text role="confval"} would cause import errors in test suites.

  • #​9708: pytester{.interpreted-text role="fixture"} now requests a monkeypatch{.interpreted-text role="fixture"} fixture instead of creating one internally. This solves some issues with tests that involve pytest environment variables.

  • #​9730: Malformed pyproject.toml files now produce a clearer error message.

getsentry/sentry-python

v1.5.7

Compare Source

Various fixes & improvements

v1.5.6

Compare Source

Various fixes & improvements
aaugustin/websockets

v10.2

Compare Source


Configuration

📅 Schedule: "before 7am on monday" (UTC).

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

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

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


  • If you want to rebase/retry this PR, click this checkbox.

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

@renovate renovate bot force-pushed the renovate/python-dependencies branch from e467345 to 63b1753 Compare March 14, 2022 15:34
@quitterie-lcs quitterie-lcs self-assigned this Mar 14, 2022
renovate-bot and others added 3 commits April 19, 2022 10:29
| datasource | package            | from   | to     |
| ---------- | ------------------ | ------ | ------ |
| pypi       | Faker              | 12.3.0 | 13.3.2 |
| pypi       | bandit             | 1.7.2  | 1.7.4  |
| pypi       | click              | 8.0.3  | 8.0.4  |
| pypi       | elasticsearch      | 7.17.0 | 8.1.0  |
| pypi       | fastapi            | 0.73.0 | 0.75.0 |
| pypi       | hypothesis         | 6.36.2 | 6.39.3 |
| pypi       | ipython            | 8.0.1  | 8.1.1  |
| pypi       | mkdocs-material    | 8.1.11 | 8.2.5  |
| pypi       | mkdocstrings       | 0.18.0 | 0.18.1 |
| pypi       | pyfakefs           | 4.5.4  | 4.5.5  |
| pypi       | pytest             | 7.0.1  | 7.1.0  |
| pypi       | python-swiftclient | 3.13.0 | 3.13.1 |
| pypi       | sentry_sdk         | 1.5.5  | 1.5.7  |
| pypi       | uvicorn            | 0.17.4 | 0.17.6 |
| pypi       | websockets         | 10.1   | 10.2   |
The 8th version of elasticsearch was released. It implies to adapt some
of the written tests to take into account the new features.
Upgrades:

- `click` to `8.0.4`
- `elasticsearch` to `8.1.0`
- `fastapi` to `0.75.0`
- `python-swiftclient` to `3.13.1`
Copy link
Contributor

@jmaupetit jmaupetit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quitterie-lcs quitterie-lcs merged commit 1ca8bea into master Apr 24, 2022
@quitterie-lcs quitterie-lcs deleted the renovate/python-dependencies branch April 24, 2022 20:00
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

3 participants