⬆️(project) upgrade python dependencies#179
Merged
Merged
Conversation
e467345 to
63b1753
Compare
| 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.
d8de25d to
7a4c162
Compare
Upgrades: - `click` to `8.0.4` - `elasticsearch` to `8.1.0` - `fastapi` to `0.75.0` - `python-swiftclient` to `3.13.1`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR contains the following updates:
==12.3.0->==13.3.2==1.7.2->==1.7.4==8.0.3->==8.0.4==7.17.0->==8.1.0==0.73.0->==0.75.0==6.36.2->==6.39.3==8.0.1->==8.1.1==8.1.11->==8.2.5==0.18.0->==0.18.1==4.5.4->==4.5.5==7.0.1->==7.1.0==3.13.0->==3.13.1==1.5.5->==1.5.7==0.17.4->==0.17.6==10.1->==10.2Release Notes
joke2k/faker
v13.3.2Compare Source
v13.3.1Compare Source
v13.3.0Compare Source
fa-irlanguage code. Thanks @arminshoughi.v13.2.0Compare Source
bn_BDLorem Provider. Thanks @jabertuhin.v13.1.0Compare Source
de_DEandde_AT. Thanks @@Kalbra.v13.0.0Compare Source
os.urandominbinary()if unseeded. Thanks @AlmightyYakob.v12.3.3Compare Source
v12.3.2Compare Source
es_ESlocale. Thanks @mondeja.v12.3.1Compare Source
Thanks @jacksmith15.
PyCQA/bandit
v1.7.4Compare Source
What's Changed
New Contributors
Full Changelog: PyCQA/bandit@1.7.3...1.7.4
v1.7.3Compare Source
What's Changed
New Contributors
Full Changelog: PyCQA/bandit@1.7.2...1.7.3
elastic/elasticsearch-py
v8.1.0Compare Source
Transforms
transform.reset_transformAPIv8.0.1Compare Source
Client
sortparameter of multiple APIs to serialize in the query string when using the shorthand formIndices
indexparameter to be required for theindices.field_usage_statsAPISQL
catalog,keep_alive,keep_on_completion,params,runtime_mappings, andwait_for_completion_timeoutparameters to thesql.queryAPIv8.0.0Compare Source
For information on how migrate your application from v7.x to v8.0.0 you can read the migration guide here.
Client
Added
.options()method toElasticsearchandAsyncElasticsearchfor modifying transport options.basic_authparameter for specifying username and password authenticationbearer_authparameter for specifying an HTTP bearer token or service tokenmetaproperty toApiErrorto access the HTTP response metadata of an error.elastic-transportpackage is installed.Changed
elastic-transportpackagebodyparameters to have semantic names (e.gindex(document={...})instead ofindex(body={...})).metafor response metadata (HTTP status, headers, node, etc) andbodyfor a typed body.AsyncElasticsearchto always be available, regardless of whetheraiohttpis installedApiErrorwhich differentiates between an error that's raised from the transport layer (previouslyelasticsearch.exceptions.TransportError, nowelastic_transport.TransportError) and one raised from the API layerJSONSerializertoJsonSerializerfor consistency with other serializer names. Added an alias to the old name for backwards compatibilityapplication/json) to instead use compatibility mimetypes (application/vnd.elasticsearch+json) which always request for responses compatibility with version 8.x.Removed
elasticsearch.connectionmodule as all functionality has been moved to theelastic-transportpackagehttp://localhost:9200due to Elasticsearch 8.0 default configuration beinghttps://localhost:9200.The client's connection to Elasticsearch now must be specified with scheme, host, and port or with the
cloud_idparameterDeprecated
bodyandparamsparameters on all APIshttp_auth,api_key,ignore,request_timeout,headers, andopaque_idAll of these settings should instead be set via the
.options()methodelasticsearch.transportandelasticsearch.clientmodules. These modules will be removed in a future versionAPI
doc_type,include_type_name, andcopy_settingsparameters from many document and index APIsCAT
localparameter from thecat.indices,cat.nodes,cat.shardsAPIallow_no_datafeedsparameter from thecat.ml_datafeedsAPIallow_no_jobsparameter from thecat.ml_jobsAPIsizeparameter from thecat.thread_poolAPItimeparameter to thecat.thread_poolAPIDocuments
sizeparameter from thedelete_by_queryAPIsizeparameter from theupdate_by_queryAPIIndices
indices.flush_syncedAPIindices.freezeAPIindices.get_upgradeAPIindices.upgradeAPIindices.exist_typeAPIcopy_settingsfrom theindices.shrinkAPIverboseparameter of theindices.segmentsAPILicense / X-Pack
accept_enterpriseparameter of thelicense.getAPIaccept_enterpriseparameter of thexpack.infoAPIMachine Learning
ml.infer_trained_model_deploymentAPIml.put_trained_model_definition_partAPIml.put_trained_model_vocabularyAPIml.start_trained_model_deploymentAPIml.stop_trained_model_deploymentAPItimeoutparameter to theml.delete_trained_modelAPIallow_no_jobsparameter from theml.close_jobAPIml.find_text_structureAPIallow_no_datafeedsparameter from theml.get_datafeed_statsAPIallow_no_datafeedsparameter from theml.get_datafeedsAPIallow_no_jobsparameter from theml.get_job_statsAPIallow_no_jobsparameter from theml.get_jobsAPIallow_no_jobsparameter from theml.get_overall_bucketsAPISearch
knn_searchAPISearchable Snapshots
searchable_snapshots.repository_statsAPISnapshots
snapshot.deleteAPI to accept multiple snapshotsSecurity
security.enroll_kibanaAPIsecurity.enroll_nodeAPIv7.17.1Compare Source
Helpers
fromparameter to be rewritten tofrom_when used with thescanandasync_scanhelpers (https://github.com/elastic/elasticsearch-py/pull/1897)Transport
AiohttpHttpConnectionto not leak TLS connections when the socket isn't explicitly shutdown by the peer (https://github.com/elastic/elasticsearch-py/pull/1919)tiangolo/fastapi
v0.75.0Compare Source
Features
generate_unique_id_functionand docs for generating clients. New docs: Advanced - Generate Clients. PR #4650 by @tiangolo.v0.74.1Compare Source
Features
v0.74.0Compare Source
Breaking Changes
AsyncExitStackto fix context for dependencies withyield. PR #4575 by @tiangolo.Dependencies with
yieldcan now catchHTTPExceptionand custom exceptions. For example:After the dependency with
yieldhandles the exception (or not) the exception is raised again. So that any exception handlers can catch it, or ultimately the default internalServerErrorMiddleware.If you depended on exceptions not being received by dependencies with
yield, and receiving an exception breaks the code afteryield, you can use a block withtryandfinally:...that way the
finallyblock is run regardless of any exception that might happen.Features
contextvarscontext for the code before and afteryield. 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 afteryield(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:
...before this change it would raise an error when resetting the context variable, because the
contextvarscontext 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'sgsemi-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.1Compare Source
v8.1.0Compare Source
squidfunk/mkdocs-material
v8.2.5Compare Source
v8.2.4Compare Source
v8.2.3Compare Source
v8.2.2Compare Source
v8.2.1Compare Source
material.pluginsnot being found (8.2.0 regression)v8.2.0Compare Source
pytest-dev/pytest
v7.1.0Compare 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._fillfuncargsfunction.pytest_warning_capturedhook - usepytest_warning_recordedinstead.-k -foobarsyntax - use-k 'not foobar'instead.-k foobar:syntax.pytest.collectmodule - import frompytestdirectly.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
-vwould show less information.Also, when showing diffs for sequences,
-qwould 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 inattrsordataclasses.#9536: When
-vvis 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 nowbe 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
idsargument 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 aTypeError{.interpreted-text role="class"} when given an unordered sequence (such asset{.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 oftests 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
running
pytest testsnow imports the conftest twice, once astests/real/conftest.pyand once astests/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=importlibused together withPYTHONPATH{.interpreted-text role="envvar"} orpythonpath{.interpreted-text role="confval"} would cause import errors in test suites.#9708:
pytester{.interpreted-text role="fixture"} now requests amonkeypatch{.interpreted-text role="fixture"} fixture instead of creating one internally. This solves some issues with tests that involve pytest environment variables.#9730: Malformed
pyproject.tomlfiles now produce a clearer error message.getsentry/sentry-python
v1.5.7Compare Source
Various fixes & improvements
v1.5.6Compare Source
Various fixes & improvements
sentry_trace()template helper (#1336) by @BYKaaugustin/websockets
v10.2Compare 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.
This PR has been generated by WhiteSource Renovate. View repository job log here.