[orm] [bug] Added new attribute _orm.ORMExecuteState.is_from_statement to
detect statements created using _sql.Select.from_statement(), and
enhanced FromStatement to set _orm.ORMExecuteState.is_select,
_orm.ORMExecuteState.is_insert,
_orm.ORMExecuteState.is_update, and
_orm.ORMExecuteState.is_delete according to the element that is
sent to the _sql.Select.from_statement() method itself.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where
attributes defined with _orm.composite() on a superclass would cause
an internal exception on load.
[orm] [bug] [regression] Fixed regression from 1.4 where using _orm.defaultload() in
conjunction with a non-propagating loader like _orm.contains_eager()
would nonetheless propagate the _orm.contains_eager() to a lazy load
operation, causing incorrect queries as this option is only intended to
come from an original load.
[orm] [bug] Fixed issue in ORM Annotated Declarative where typing issue where literals
defined using PEP 695 type aliases would not work with inference of
Enum datatypes. Pull request courtesy of Alc-Alc.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where the
SELECT emitted would only accommodate for the child-most class among the
result rows that were returned, leading intermediary-class attributes to be
unloaded if there were no concrete instances of that intermediary-class
present in the result. This issue only presented itself for multi-level
inheritance hierarchies.
[orm] [bug] Fixed issue in _orm.Session.bulk_save_objects() where the form of the
identity key produced when using return_defaults=True would be
incorrect. This could lead to an errors during pickling as well as identity
map mismatches.
Improve best_match (and thereby error messages from jsonschema.validate) in cases where there are multiple sibling errors from applying anyOf / allOf -- i.e. when multiple elements of a JSON array have errors, we now do prefer showing errors from earlier elements rather than simply showing an error for the full array (#1250).
(Micro-)optimize equality checks when comparing for JSON Schema equality by first checking for object identity, as == would.
Improve best_match (and thereby error messages from jsonschema.validate) in cases where there are multiple sibling errors from applying anyOf / allOf -- i.e. when multiple elements of a JSON array have errors, we now do prefer showing errors from earlier elements rather than simply showing an error for the full array (#1250).
(Micro-)optimize equality checks when comparing for JSON Schema equality by first checking for object identity, as == would.
Commits
9882dbe Add / ignore the new specification test suite property.
This release of the Python agent adds instrumentation for AIOBotocore, support for Meta Llama3 and Mistral AI in Amazon Bedrock, fixes an error parsing issue in OpenAI, and updates Loguru's instrumentation to use milliseconds instead of seconds.
Previously, if an error in OpenAI was encountered, the Python Agent would attempt to override the default error.message within notice_error() with the one used in OpenAI. However, if there was no message attribute in the error, the Python Agent would crash. Now it defaults to the original methodology of error handling by the Python Agent.
Timing in Loguru is recorded as an integer and if that value was less than 1 second, it would record it as 0s. This changes the units to be in milliseconds instead. Thanks, (@julia-tadej-wwtech)[https://github.com/julia-tadej-wttech] for the contribution!
Support statement
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.
See the New Relic Python agent EOL policy for information about agent releases and support dates.
After executing the handler added with page.add_locator_handler(), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new no_wait_after option.
You can use new times option in page.add_locator_handler() to specify maximum number of times the handler should be run.
locator = page.get_by_text("This interstitial covers the button")
page.add_locator_handler(locator, lambda overlay: overlay.locator("#close").click(), times=3, no_wait_after=True)
# Run your tests that can be interrupted by the overlay.
# ...
page.remove_locator_handler(locator)
#12334: Support for Python 3.13 (beta1 at the time of writing).
Bug Fixes
#12120: Fix [PermissionError]{.title-ref} crashes arising from directories which are not selected on the command-line.
#12191: Keyboard interrupts and system exits are now properly handled during the test collection.
#12300: Fixed handling of 'Function not implemented' error under squashfuse_ll, which is a different way to say that the mountpoint is read-only.
#12308: Fix a regression in pytest 8.2.0 where the permissions of automatically-created .pytest_cache directories became rwx------ instead of the expected rwxr-xr-x.
Trivial/Internal Changes
#12333: pytest releases are now attested using the recent Artifact Attestation support from GitHub, allowing users to verify the provenance of pytest's sdist and wheel artifacts.
8.2.0
pytest 8.2.0 (2024-04-27)
Deprecations
#12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:
pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
The replacement parameters are available since pytest 7.0.0.
The old parameters will be removed in pytest 9.0.0.
See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.
Features
#11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @tests.txt. The file must have one argument per line.
See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.
To provide a more stable migration for custom HTTPAdapters impacted
by the CVE changes in 2.32.0, we've renamed _get_connection to
a new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of Requests>=2.32.0.
A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)
v2.32.1
2.32.1 (2024-05-20)
Bugfixes
Add missing test certs to the sdist distributed on PyPI.
To provide a more stable migration for custom HTTPAdapters impacted
by the CVE changes in 2.32.0, we've renamed _get_connection to
a new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of Requests>=2.32.0.
A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)
2.32.1 (2024-05-20)
Bugfixes
Add missing test certs to the sdist distributed on PyPI.
Treat all singledispatch arguments as runtime-required (#11523)
0.4.5
Ruff's language server is now in Beta
v0.4.5 marks the official Beta release of ruff server, an integrated language server built into Ruff.
ruff server supports the same feature set as ruff-lsp, powering linting, formatting, and
code fixes in Ruff's editor integrations -- but with superior performance and
no installation required. We'd love your feedback!
Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions |
| --- | --- |
| docutils | [>= 0.17.a, < 0.18] |
| docutils | [>= 0.18.a, < 0.19] |
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the minor-patch group with 12 updates in the / directory:
2.0.29
2.0.30
4.1.2
4.1.3
2024.3.0
2024.4.2
4.21.1
4.22.0
9.8.0
9.10.0
1.42.0
1.44.0
8.1.1
8.2.1
1.16
1.17
2.32.0
2.32.2
0.3.5
0.4.6
7.2.6
7.3.7
0.20.1
0.21.2
Updates
sqlalchemy
from 2.0.29 to 2.0.30Release notes
Sourced from sqlalchemy's releases.
... (truncated)
Commits
Updates
bcrypt
from 4.1.2 to 4.1.3Commits
35e5a6f
Bump version for 4.1.3 release (#791)d99d1e5
Bump autocfg from 1.2.0 to 1.3.0 in /src/_bcrypt (#790)0775d47
allow testing with pytest 8.2.0 (#786)97d09ac
Bump base64 from 0.22.0 to 0.22.1 in /src/_bcrypt (#787)ee4a9a8
use ubuntu rolling in arm64 CI (#784)7d2474f
Bump libc from 0.2.153 to 0.2.154 in /src/_bcrypt (#783)7a252dd
Try blocking pytest 8.2.0 (#785)297a915
Remove brew install rust from macOS CI (#782)6b3f99e
Bump parking_lot_core from 0.9.9 to 0.9.10 in /src/_bcrypt (#778)c88b310
Bump parking_lot from 0.12.1 to 0.12.2 in /src/_bcrypt (#780)Updates
dockerflow
from 2024.3.0 to 2024.4.2Release notes
Sourced from dockerflow's releases.
Changelog
Sourced from dockerflow's changelog.
Commits
391f9ba
Allowing for async checks in fastApi. Cleaning up old code. (#114)0424734
Update Django docs (#109)f3ff9c3
Fix docstrings about heartbeat status on warnings (200, not 5XX) (#110)9014f6e
Update changelog for 2024.4.0 release (#108)ea3d2ba
(fastapi) Initialize JsonLogFormatter to pass to handler (#107)540563a
Fix #45: Document extra log fields (#105)4c5ae34
Add support for Sanic 23 (#104)559aa01
Fix #79: add support for recent versions of Flask (#103)Updates
jsonschema
from 4.21.1 to 4.22.0Release notes
Sourced from jsonschema's releases.
Changelog
Sourced from jsonschema's changelog.
Commits
9882dbe
Add / ignore the new specification test suite property.ebc90bb
Merge commit '8fcfc3a674a7188a4fcc822b7a91efb3e0422a20'8fcfc3a
Squashed 'json/' changes from b41167c74..54f3784a830b7537
Pin pyenchant to pre from below until pyenchant/pyenchant#302 is released.c3729db
Enable doctests for the rest of the referencing page.70a994c
Remove a now-unneeded noqa since apparently this is fixed in new ruff.e6d0ef1
Fix a minor typo in the referencing example docs.bceaf41
Another placeholder benchmark for future optimization.b20234e
Consider errors from earlier indices (in instances) to be better matches41b49c6
Minor improvement to test failure message when a best match test fails.Updates
newrelic
from 9.8.0 to 9.10.0Release notes
Sourced from newrelic's releases.
Commits
b75ea43
AIOBotocore instrumentation (#1135)20c5298
Merge pull request #1148 from newrelic/fix-ensemble-sklearn-tests08a3971
Merge branch 'main' into fix-ensemble-sklearn-testsac28232
Update logger_loguru.py to include milliseconds (#1149)e6c2a2f
Merge branch 'main' into fix-ensemble-sklearn-tests8b79e6c
Merge pull request #1146 from newrelic/fix-parsing-error4ffb603
Fix sklearn ensemble tests.acd91f1
Merge branch 'main' into fix-parsing-error6d30f32
Merge pull request #1147 from newrelic/support-llama38c6bb58
Add support for llama3Updates
playwright
from 1.42.0 to 1.44.0Release notes
Sourced from playwright's releases.
... (truncated)
Commits
7cc2bc9
chore(roll): roll Playwright to 1.44.0-beta-1715802478000 (#2438)e756233
feat(roll): roll Playwright to v1.44.0 (#2433)8dc3978
build(deps): bump pytest from 8.1.1 to 8.2.0 (#2422)a053818
test: unflake Firefox tests (#2431)7bd2c7f
build(deps): bump mypy from 1.9.0 to 1.10.0 (#2423)789a47e
build(deps): bump pytest-xdist from 3.5.0 to 3.6.1 (#2421)5cf07fa
build(deps): bump types-pyopenssl from 24.0.0.20240417 to 24.1.0.20240425 (#2...4ac3b49
build(deps): bump black from 24.4.0 to 24.4.2 (#2419)27079a1
devops: upgrade EsrpRelease task to v7 (#2429)cb94c25
fix(connect): Future exception was never retrieved on close() (#2427)Updates
pytest
from 8.1.1 to 8.2.1Release notes
Sourced from pytest's releases.
... (truncated)
Commits
66ff8df
Prepare release version 8.2.13ffcfd1
Merge pull request #12340 from pytest-dev/backport-12334-to-8.2.x0b28313
[8.2.x] Add Python 3.13 (beta) supportf3dd93a
[8.2.x] Attest package provenance (#12335)bb5a125
[8.2.x] Spelling (#12331)f179bf2
Merge pull request #12327 from pytest-dev/backport-12325-to-8.2.x2b671b5
[8.2.x] cacheprovider: fix.pytest_cache
not being world-readable65ab7cb
Merge pull request #12324 from pytest-dev/backport-12320-to-8.2.x4d5fb7d
Merge pull request #12319 from pytest-dev/backport-12311-to-8.2.xcbe5996
[8.2.x] changelog: document unittest 8.2 change as breakingUpdates
python-rapidjson
from 1.16 to 1.17Changelog
Sourced from python-rapidjson's changelog.
Commits
e3a2527
Release 1.1768d30d7
Update CHANGES.rst5ec7b84
Include the changelog in the documentation5624040
Rectify URL to previous upgrade of underlying rapidjson9eef116
Use cibuildwheel 2.18.0e6dbdec
Use cibuildwheel 2.17.0aeeeea5
Recompute the benchmarks against latest pysimdjson, orjson and ujson046dc46
Upgrade underlying rapidjson library to its current master8b4375c
Upgrade development requirementsUpdates
requests
from 2.32.0 to 2.32.2Release notes
Sourced from requests's releases.
Changelog
Sourced from requests's changelog.
Commits
88dce9d
v2.32.2c98e4d1
Merge pull request #6710 from nateprewitt/api_rename92075b3
Add deprecation warningaa1461b
Move _get_connection to get_connection_with_tls_context970e8ce
v2.32.1Updates
ruff
from 0.3.5 to 0.4.6Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
49a5a9c
Bump version to v0.4.6 (#11585)69d9212
Propagate reads on global variables (#11584)4a30558
[flake8-bandit
]request-without-timeout
should warn for `requests.request...16acd49
Remove some unusedpub
functions (#11576)3989cb8
Makeruff_notebook
a workspace dependency inruff_server
(#11572)a38c05b
Avoid recommending context manager in__enter__
implementations (#11575)ab107ef
Avoid recomending operator.itemgetter with dependence on lambda arg (#11574)b36c713
Consider irrefutable pattern similar toif .. else
forC901
(#11565)34a5063
Respect excludes inruff server
configuration discovery (#11551)adc0a5d
Rename document module to text_document (#11571)Updates
sphinx
from 7.2.6 to 7.3.7Release notes
Sourced from sphinx's releases.
Changelog
Sourced from sphinx's changelog.
... (truncated)
Commits
de4ac2f
Bump to 7.3.7 final4a0c9dd
Return the default value for unsupported theme configuration sections62c3bad
Re-exportpy_sig_re
from the Python domain3bcc669
Defer loading entry-point themes until neededfa4563f
Bump version630b4fb
Bump to 7.3.6 final740b964
fixup! Elaborate a little more in the warning message forconfig.cache
141f3ec
Elaborate a little more in the warning message forconfig.cache
af27188
Addconfig.cache
to the list of warning typesbe2b083
Re-export more names insphinx.domains.python
(#12297)Updates
docutils
from 0.20.1 to 0.21.2Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions | | --- | --- | | docutils | [>= 0.17.a, < 0.18] | | docutils | [>= 0.18.a, < 0.19] |Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show