⬆️(project) upgrade python dependencies #179
Merged
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.2
Release Notes
joke2k/faker
v13.3.2
Compare Source
v13.3.1
Compare Source
v13.3.0
Compare Source
fa-ir
language code. Thanks @arminshoughi.v13.2.0
Compare Source
bn_BD
Lorem Provider. Thanks @jabertuhin.v13.1.0
Compare Source
de_DE
andde_AT
. Thanks @@Kalbra.v13.0.0
Compare Source
os.urandom
inbinary()
if unseeded. Thanks @AlmightyYakob.v12.3.3
Compare Source
v12.3.2
Compare Source
es_ES
locale. Thanks @mondeja.v12.3.1
Compare Source
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
transform.reset_transform
APIv8.0.1
Compare Source
Client
sort
parameter of multiple APIs to serialize in the query string when using the shorthand formIndices
index
parameter to be required for theindices.field_usage_stats
APISQL
catalog
,keep_alive
,keep_on_completion
,params
,runtime_mappings
, andwait_for_completion_timeout
parameters to thesql.query
APIv8.0.0
Compare 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 toElasticsearch
andAsyncElasticsearch
for modifying transport options.basic_auth
parameter for specifying username and password authenticationbearer_auth
parameter for specifying an HTTP bearer token or service tokenmeta
property toApiError
to access the HTTP response metadata of an error.elastic-transport
package is installed.Changed
elastic-transport
packagebody
parameters to have semantic names (e.gindex(document={...})
instead ofindex(body={...})
).meta
for response metadata (HTTP status, headers, node, etc) andbody
for a typed body.AsyncElasticsearch
to always be available, regardless of whetheraiohttp
is installedApiError
which differentiates between an error that's raised from the transport layer (previouslyelasticsearch.exceptions.TransportError
, nowelastic_transport.TransportError
) and one raised from the API layerJSONSerializer
toJsonSerializer
for 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.connection
module as all functionality has been moved to theelastic-transport
packagehttp://localhost:9200
due 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_id
parameterDeprecated
body
andparams
parameters on all APIshttp_auth
,api_key
,ignore
,request_timeout
,headers
, andopaque_id
All of these settings should instead be set via the
.options()
methodelasticsearch.transport
andelasticsearch.client
modules. These modules will be removed in a future versionAPI
doc_type
,include_type_name
, andcopy_settings
parameters from many document and index APIsCAT
local
parameter from thecat.indices
,cat.nodes
,cat.shards
APIallow_no_datafeeds
parameter from thecat.ml_datafeeds
APIallow_no_jobs
parameter from thecat.ml_jobs
APIsize
parameter from thecat.thread_pool
APItime
parameter to thecat.thread_pool
APIDocuments
size
parameter from thedelete_by_query
APIsize
parameter from theupdate_by_query
APIIndices
indices.flush_synced
APIindices.freeze
APIindices.get_upgrade
APIindices.upgrade
APIindices.exist_type
APIcopy_settings
from theindices.shrink
APIverbose
parameter of theindices.segments
APILicense / X-Pack
accept_enterprise
parameter of thelicense.get
APIaccept_enterprise
parameter of thexpack.info
APIMachine Learning
ml.infer_trained_model_deployment
APIml.put_trained_model_definition_part
APIml.put_trained_model_vocabulary
APIml.start_trained_model_deployment
APIml.stop_trained_model_deployment
APItimeout
parameter to theml.delete_trained_model
APIallow_no_jobs
parameter from theml.close_job
APIml.find_text_structure
APIallow_no_datafeeds
parameter from theml.get_datafeed_stats
APIallow_no_datafeeds
parameter from theml.get_datafeeds
APIallow_no_jobs
parameter from theml.get_job_stats
APIallow_no_jobs
parameter from theml.get_jobs
APIallow_no_jobs
parameter from theml.get_overall_buckets
APISearch
knn_search
APISearchable Snapshots
searchable_snapshots.repository_stats
APISnapshots
snapshot.delete
API to accept multiple snapshotsSecurity
security.enroll_kibana
APIsecurity.enroll_node
APIv7.17.1
Compare Source
Helpers
from
parameter to be rewritten tofrom_
when used with thescan
andasync_scan
helpers (https://github.com/elastic/elasticsearch-py/pull/1897)Transport
AiohttpHttpConnection
to 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.0
Compare Source
Features
generate_unique_id_function
and docs for generating clients. New docs: Advanced - Generate Clients. PR #4650 by @tiangolo.v0.74.1
Compare Source
Features
v0.74.0
Compare Source
Breaking Changes
AsyncExitStack
to fix context for dependencies withyield
. PR #4575 by @tiangolo.Dependencies with
yield
can now catchHTTPException
and custom exceptions. For example: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 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 withtry
andfinally
:...that way the
finally
block is run regardless of any exception that might happen.Features
contextvars
context 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
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'sg
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
v8.2.4
Compare Source
v8.2.3
Compare Source
v8.2.2
Compare Source
v8.2.1
Compare Source
material.plugins
not being found (8.2.0 regression)v8.2.0
Compare Source
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 - usepytest_warning_recorded
instead.-k -foobar
syntax - use-k 'not foobar'
instead.-k foobar:
syntax.pytest.collect
module - import frompytest
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 inattrs
ordataclasses
.#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 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
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 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 tests
now imports the conftest twice, once astests/real/conftest.py
and 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=importlib
used 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.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
sentry_trace()
template helper (#1336) by @BYKaaugustin/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.
This PR has been generated by WhiteSource Renovate. View repository job log here.