-
Notifications
You must be signed in to change notification settings - Fork 139
chore(deps): update all dependencies #402
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
Merged
Merged
Conversation
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
669a047
to
1e2dfd4
Compare
1e2dfd4
to
d53a3d7
Compare
d53a3d7
to
11a850b
Compare
11a850b
to
2d99196
Compare
2d99196
to
4581d1b
Compare
parthea
reviewed
Mar 5, 2022
parthea
reviewed
Mar 5, 2022
parthea
reviewed
Mar 5, 2022
parthea
reviewed
Mar 5, 2022
parthea
approved these changes
Mar 5, 2022
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:
==1.7.5
->==1.7.6
==2.0.10
->==2.0.12
==8.0.3
->==8.0.4
==0.10.2
->==0.11.0
==2.4.0
->==2.6.0
==2.3.3
->==2.6.0
==2.32.0
->==2.34.1
==2.2.1
->==2.2.2
==2.1.0
->==2.3.1
==1.54.0
->==1.55.0
==1.43.0
->==1.44.0
==1.43.0
->==1.44.0
==2.0.1
->==2.1.0
==1.19.8
->==1.20.3
==3.19.3
->==3.19.4
==3.0.6
->==3.0.7
==6.2.5
->==7.0.1
==1.0.7
->==1.1.0
==1.8.0
->==1.8.1.post1
>=1.2.0,<=1.4.27
->>=1.4.31,<=1.4.31
==1.4.26
->==1.4.31
==4.0.1
->==4.1.1
Release Notes
ousret/charset_normalizer
v2.0.12
Compare Source
Fixed
v2.0.11
Compare Source
Added
Changed
geoalchemy/geoalchemy2
v0.11.0
Compare Source
googleapis/python-api-core
v2.6.0
Compare Source
Features
v2.5.0
Compare Source
Features
Bug Fixes
Documentation
googleapis/google-auth-library-python
v2.6.0
Compare Source
Features
Bug Fixes
v2.5.0
Compare Source
Features
2.4.1 (2022-01-21)
Bug Fixes
v2.4.1
Compare Source
v2.4.0
Compare Source
Features
Bug Fixes
Documentation
verify_oauth2_token
(#928) (82bc5f0)2.3.3 (2021-11-01)
Bug Fixes
2.3.2 (2021-10-26)
Bug Fixes
2.3.1 (2021-10-21)
Bug Fixes
Documentation
GCE_METADATA_HOST
(#890) (e2b3c98)googleapis/python-bigquery
v2.34.1
Compare Source
v2.34.0
Compare Source
Features
v2.33.0
Compare Source
Features
--no_query_cache
option to%%bigquery
magics to disable query cache (#1141) (7dd30af)Bug Fixes
Documentation
LoadJobConfig
descrip… (#1132) (18d9580)get_job
andcancel_job
samples (#1137) (8edc10d)googleapis/python-cloud-core
v2.2.2
Compare Source
googleapis/google-resumable-media-python
v2.3.1
Compare Source
v2.3.0
Compare Source
Features
2.2.1 (2022-02-09)
Bug Fixes
v2.2.1
Compare Source
v2.2.0
Compare Source
Features
Bug Fixes
googleapis/python-api-common-protos
v1.55.0
Compare Source
Features
googleapis/proto-plus-python
v1.20.3
Compare Source
v1.20.2
Compare Source
v1.20.1
Compare Source
v1.20.0
Compare Source
Features
Bug Fixes
1.19.9 (2022-01-25)
Bug Fixes
1.19.8 (2021-11-09)
Documentation
1.19.7 (2021-10-27)
Bug Fixes
1.19.6 (2021-10-25)
Bug Fixes
1.19.5 (2021-10-11)
Documentation
1.19.4 (2021-10-08)
Documentation
1.19.3 (2021-10-07)
Bug Fixes
1.19.2 (2021-09-29)
Bug Fixes
1.19.1 (2021-09-29)
Bug Fixes
v1.19.9
Compare Source
pyparsing/pyparsing
v3.0.7
Fixed bug #345, in which delimitedList changed expressions in place
using expr.streamline(). Reported by Kim Gräsman, thanks!
Fixed bug #346, when a string of word characters was passed to WordStart
or WordEnd instead of just taking the default value. Originally posted
as a question by Parag on StackOverflow, good catch!
Fixed bug #350, in which White expressions could fail to match due to
unintended whitespace-skipping. Reported by Fu Hanxi, thank you!
Fixed bug #355, when a QuotedString is defined with characters in its
quoteChar string containing regex-significant characters such as ., *,
?, [, ], etc.
Fixed bug in ParserElement.run_tests where comments would be displayed
using with_line_numbers.
Added optional "min" and "max" arguments to
delimited_list
. PRsubmitted by Marius, thanks!
Added new API change note in
whats_new_in_pyparsing_3_0_0
, regardinga bug fix in the
bool()
behavior ofParseResults
.Prior to pyparsing 3.0.x, the
ParseResults
class implementation of__bool__
would returnFalse
if theParseResults
item list was empty,even if it contained named results. In 3.0.0 and later,
ParseResults
willreturn
True
if either the item list is not empty or if the namedresults dict is not empty.
generate an empty ParseResults by parsing a blank string with
a ZeroOrMore
add a results name to the result
Prints:
In previous versions, the second call to
bool()
would returnFalse
.Minor enhancement to Word generation of internal regular expression, to
emit consecutive characters in range, such as "ab", as "ab", not "a-b".
Fixed character ranges for search terms using non-Western characters
in booleansearchparser, PR submitted by tc-yu, nice work!
Additional type annotations on public methods.
pytest-dev/pytest
v7.0.1
Compare Source
pytest 7.0.1 (2022-02-11)
Bug Fixes
importlib.readers
in Python 3.9.Fixes a crash during a failed teardown in unittest TestCases with non-default [__init__]{.title-ref}.
Regressed in pytest 7.0.0.
pythonpath
plugin was renamed topython_path
. This avoids a conflict with thepytest-pythonpath
plugin.::
in the parametrize portion.~pytest.PytestWarning
{.interpreted-text role="class"} about diamond inheritance involving~pytest.Item
{.interpreted-text role="class"} and~pytest.Collector
{.interpreted-text role="class"} so it can be filtered usingstandard warning filters <warnings>
{.interpreted-text role="ref"}.v7.0.0
Compare Source
pytest 7.0.0 (2022-02-03)
(Please see the full set of changes for this release also in the 7.0.0rc1 notes below)
Deprecations
#9488: If custom subclasses of nodes like
pytest.Item
{.interpreted-text role="class"} override the__init__
method, they should take**kwargs
. Seeuncooperative-constructors-deprecated
{.interpreted-text role="ref"} for details.Note that a deprection warning is only emitted when there is a conflict in the
arguments pytest expected to pass. This deprecation was already part of pytest
7.0.0rc1 but wasn't documented.
Bug Fixes
pytest.Config.inifile
{.interpreted-text role="attr"} is available during thepytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>
{.interpreted-text role="func"} hook (regression during7.0.0rc1
).Improved Documentation
that configuration file is located in the root of the repository.
Trivial/Internal Changes
pytest 7.0.0rc1 (2021-12-06)
Breaking Changes
#7259: The
Node.reportinfo() <non-python tests>
{.interpreted-text role="ref"} function first return value type has been expanded from [py.path.local | str]{.title-ref} to [os.PathLike[str] | str]{.title-ref}.Most plugins which refer to [reportinfo()]{.title-ref} only define it as part of a custom
pytest.Item
{.interpreted-text role="class"} implementation.Since [py.path.local]{.title-ref} is a [os.PathLike[str]]{.title-ref}, these plugins are unaffacted.
Plugins and users which call [reportinfo()]{.title-ref}, use the first return value and interact with it as a [py.path.local]{.title-ref}, would need to adjust by calling [py.path.local(fspath)]{.title-ref}.
Although preferably, avoid the legacy [py.path.local]{.title-ref} and use [pathlib.Path]{.title-ref}, or use [item.location]{.title-ref} or [item.path]{.title-ref}, instead.
Note: pytest was not able to provide a deprecation period for this change.
#8246:
--version
now writes version information tostdout
rather thanstderr
.#8733: Drop a workaround for pyreadline that made it work with
--pdb
.The workaround was introduced in #1281 in 2015, however since then
pyreadline seems to have gone unmaintained, is generating
warnings, and will stop working on Python 3.10.
#9061: Using
pytest.approx
{.interpreted-text role="func"} in a boolean context now raises an error hinting at the proper usage.It is apparently common for users to mistakenly use
pytest.approx
like this:While the correct usage is:
The new error message helps catch those mistakes.
#9277: The
pytest.Instance
collector type has been removed.Importing
pytest.Instance
or_pytest.python.Instance
returns a dummy type and emits a deprecation warning.See
instance-collector-deprecation
{.interpreted-text role="ref"} for details.#9308: PytestRemovedIn7Warning deprecation warnings are now errors by default.
Following our plan to remove deprecated features with as little disruption as
possible, all warnings of type
PytestRemovedIn7Warning
now generate errorsinstead of warning messages by default.
The affected features will be effectively removed in pytest 7.1, so please consult the
deprecations
{.interpreted-text role="ref"} section in the docs for directions on how to update existing code.In the pytest
7.0.X
series, it is possible to change the errors back into warnings as astopgap measure by adding this to your
pytest.ini
file:But this will stop working when pytest
7.1
is released.If you have concerns about the removal of a specific feature, please add a
comment to
9308
{.interpreted-text role="issue"}.Deprecations
#7259:
py.path.local
arguments for hooks have been deprecated. Seethe deprecation note <legacy-path-hooks-deprecated>
{.interpreted-text role="ref"} for full details.py.path.local
arguments to Node constructors have been deprecated. Seethe deprecation note <node-ctor-fspath-deprecation>
{.interpreted-text role="ref"} for full details.::: {.note}
::: {.admonition-title}
Note
:::
The name of the
~_pytest.nodes.Node
{.interpreted-text role="class"} arguments and attributes (thenew attribute being
path
) is the opposite of the situation for hooks(the old argument being
path
).This is an unfortunate artifact due to historical reasons, which should be
resolved in future versions as we slowly get rid of the
py
{.interpreted-text role="pypi"}dependency (see
9283
{.interpreted-text role="issue"} for a longer discussion).:::
#7469: Directly constructing the following classes is now deprecated:
_pytest.mark.structures.Mark
_pytest.mark.structures.MarkDecorator
_pytest.mark.structures.MarkGenerator
_pytest.python.Metafunc
_pytest.runner.CallInfo
_pytest._code.ExceptionInfo
_pytest.config.argparsing.Parser
_pytest.config.argparsing.OptionGroup
_pytest.pytester.HookRecorder
These constructors have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 8.
#8242: Raising
unittest.SkipTest
{.interpreted-text role="class"} to skip collection of tests during thepytest collection phase is deprecated. Use
pytest.skip
{.interpreted-text role="func"} instead.Note: This deprecation only relates to using
unittest.SkipTest
{.interpreted-text role="class"} during testcollection. You are probably not doing that. Ordinary usage of
unittest.SkipTest
{.interpreted-text role="class"} /unittest.TestCase.skipTest
{.interpreted-text role="meth"} /unittest.skip
{.interpreted-text role="func"} in unittest test cases is fully supported.#8315: Several behaviors of
Parser.addoption <pytest.Parser.addoption>
{.interpreted-text role="meth"} are nowscheduled for removal in pytest 8 (deprecated since pytest 2.4.0):
parser.addoption(..., help=".. %default ..")
- use%(default)s
instead.parser.addoption(..., type="int/string/float/complex")
- usetype=int
etc. instead.#8447: Defining a custom pytest node type which is both an
pytest.Item <Item>
{.interpreted-text role="class"} and apytest.Collector <Collector>
{.interpreted-text role="class"} (e.g.pytest.File <File>
{.interpreted-text role="class"}) now issues a warning.It was never sanely supported and triggers hard to debug errors.
See
the deprecation note <diamond-inheritance-deprecated>
{.interpreted-text role="ref"} for full details.#8592:
pytest_cmdline_preparse
{.interpreted-text role="hook"} has been officially deprecated. It will be removed in a future release. Usepytest_load_initial_conftests
{.interpreted-text role="hook"} instead.See
the deprecation note <cmdline-preparse-deprecated>
{.interpreted-text role="ref"} for full details.#8645:
pytest.warns(None) <pytest.warns>
{.interpreted-text role="func"} is now deprecated because many people usedit to mean "this code does not emit warnings", but it actually had the effect of
checking that the code emits at least one warning of any type - like
pytest.warns()
or
pytest.warns(Warning)
.#8948:
pytest.skip(msg=...) <pytest.skip>
{.interpreted-text role="func"},pytest.fail(msg=...) <pytest.fail>
{.interpreted-text role="func"} andpytest.exit(msg=...) <pytest.exit>
{.interpreted-text role="func"}signatures now accept a
reason
argument instead ofmsg
. Usingmsg
still works, but is deprecated and will be removed in a future release.This was changed for consistency with
pytest.mark.skip <pytest.mark.skip>
{.interpreted-text role="func"} andpytest.mark.xfail <pytest.mark.xfail>
{.interpreted-text role="func"} which both acceptreason
as an argument.#8174: The following changes have been made to types reachable through
pytest.ExceptionInfo.traceback
{.interpreted-text role="attr"}:path
property of_pytest.code.Code
returnsPath
instead ofpy.path.local
.path
property of_pytest.code.TracebackEntry
returnsPath
instead ofpy.path.local
.There was no deprecation period for this change (sorry!).
Features
#5196: Tests are now ordered by definition order in more cases.
In a class hierarchy, tests from base classes are now consistently ordered before tests defined on their subclasses (reverse MRO order).
#7132: Added two environment variables
PYTEST_THEME
{.interpreted-text role="envvar"} andPYTEST_THEME_MODE
{.interpreted-text role="envvar"} to let the users customize the pygments theme used.#7259: Added
cache.mkdir() <pytest.Cache.mkdir>
{.interpreted-text role="meth"}, which is similar to the existingcache.makedir() <pytest.Cache.makedir>
{.interpreted-text role="meth"},but returns a
pathlib.Path
{.interpreted-text role="class"} instead of a legacypy.path.local
.Added a
paths
type toparser.addini() <pytest.Parser.addini>
{.interpreted-text role="meth"},as in
parser.addini("mypaths", "my paths", type="paths")
,which is similar to the existing
pathlist
,but returns a list of
pathlib.Path
{.interpreted-text role="class"} instead of legacypy.path.local
.#7469: The types of objects used in pytest's API are now exported so they may be used in type annotations.
The newly-exported types are:
pytest.Config
forConfig <pytest.Config>
{.interpreted-text role="class"}.pytest.Mark
formarks <pytest.Mark>
{.interpreted-text role="class"}.pytest.MarkDecorator
formark decorators <pytest.MarkDecorator>
{.interpreted-text role="class"}.pytest.MarkGenerator
for thepytest.mark <pytest.MarkGenerator>
{.interpreted-text role="class"} singleton.pytest.Metafunc
for themetafunc <pytest.MarkGenerator>
{.interpreted-text role="class"} argument to thepytest_generate_tests
{.interpreted-text role="hook"} hook.pytest.CallInfo
for theCallInfo <pytest.CallInfo>
{.interpreted-text role="class"} type passed to various hooks.pytest.PytestPluginManager
forPytestPluginManager <pytest.PytestPluginManager>
{.interpreted-text role="class"}.pytest.ExceptionInfo
for theExceptionInfo <pytest.ExceptionInfo>
{.interpreted-text role="class"} type returned frompytest.raises
{.interpreted-text role="func"} and passed to various hooks.pytest.Parser
for theParser <pytest.Parser>
{.interpreted-text role="class"} type passed to thepytest_addoption
{.interpreted-text role="hook"} hook.pytest.OptionGroup
for theOptionGroup <pytest.OptionGroup>
{.interpreted-text role="class"} type returned from theparser.addgroup <pytest.Parser.getgroup>
{.interpreted-text role="func"} method.pytest.HookRecorder
for theHookRecorder <pytest.HookRecorder>
{.interpreted-text role="class"} type returned from~pytest.Pytester
{.interpreted-text role="class"}.pytest.RecordedHookCall
for theRecordedHookCall <pytest.HookRecorder>
{.interpreted-text role="class"} type returned from~pytest.HookRecorder
{.interpreted-text role="class"}.pytest.RunResult
for theRunResult <pytest.RunResult>
{.interpreted-text role="class"} type returned from~pytest.Pytester
{.interpreted-text role="class"}.pytest.LineMatcher
for theLineMatcher <pytest.RunResult>
{.interpreted-text role="class"} type used in~pytest.RunResult
{.interpreted-text role="class"} and others.pytest.TestReport
for theTestReport <pytest.TestReport>
{.interpreted-text role="class"} type used in various hooks.pytest.CollectReport
for theCollectReport <pytest.CollectReport>
{.interpreted-text role="class"} type used in various hooks.Constructing most of them directly is not supported; they are only meant for use in type annotations.
Doing so will emit a deprecation warning, and may become a hard-error in pytest 8.0.
Subclassing them is also not supported. This is not currently enforced at runtime, but is detected by type-checkers such as mypy.
#7856:
--import-mode=importlib <import-modes>
{.interpreted-text role="ref"} now works with features thatdepend on modules being on :py
sys.modules
{.interpreted-text role="data"}, such aspickle
{.interpreted-text role="mod"} anddataclasses
{.interpreted-text role="mod"}.#8144: The following hooks now receive an additional
pathlib.Path
argument, equivalent to an existingpy.path.local
argument:pytest_ignore_collect
{.interpreted-text role="hook"} - Thecollection_path
parameter (equivalent to existingpath
parameter).pytest_collect_file
{.interpreted-text role="hook"} - Thefile_path
parameter (equivalent to existingpath
parameter).pytest_pycollect_makemodule
{.interpreted-text role="hook"} - Themodule_path
parameter (equivalent to existingpath
parameter).pytest_report_header
{.interpreted-text role="hook"} - Thestart_path
parameter (equivalent to existingstartdir
parameter).pytest_report_collectionfinish
{.interpreted-text role="hook"} - Thestart_path
parameter (equivalent to existingstartdir
parameter).::: {.note}
::: {.admonition-title}
Note
:::
The name of the
~_pytest.nodes.Node
{.interpreted-text role="class"} arguments and attributes (thenew attribute being
path
) is the opposite of the situation for hooks(the old argument being
path
).This is an unfortunate artifact due to historical reasons, which should be
resolved in future versions as we slowly get rid of the
py
{.interpreted-text role="pypi"}dependency (see
9283
{.interpreted-text role="issue"} for a longer discussion).:::
#8251: Implement
Node.path
as apathlib.Path
. Both the oldfspath
and this new attribute gets set no matter whetherpath
orfspath
(deprecated) is passed to the constructor. It is a replacement for thefspath
attribute (which represents the same path aspy.path.local
). Whilefspath
is not deprecated yetdue to the ongoing migration of methods like
~_pytest.Item.reportinfo
{.interpreted-text role="meth"}, we expect to deprecate it in a future release.::: {.note}
::: {.admonition-title}
Note
:::
The name of the
~_pytest.nodes.Node
{.interpreted-text role="class"} arguments and attributes (thenew attribute being
path
) is the opposite of the situation for hooks(the old argument being
path
).This is an unfortunate artifact due to historical reasons, which should be
resolved in future versions as we slowly get rid of the
py
{.interpreted-text role="pypi"}dependency (see
9283
{.interpreted-text role="issue"} for a longer discussion).:::
#8421:
pytest.approx
{.interpreted-text role="func"} now works on~decimal.Decimal
{.interpreted-text role="class"} within mappings/dicts and sequences/lists.#8606: pytest invocations with
--fixtures-per-test
and--fixtures
have been enriched with:--verbose
option.#8761: New
version-tuple
{.interpreted-text role="ref"} attribute, which makConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 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.