Add support for integer, floating point, boolean NumPy scalar types__
(:ticket:[#332](https://github.com/psycopg/psycopg/issues/332)).
Add !timeout and !stop_after parameters to Connection.notifies()
(:ticket:340).
Add :ref:raw-query-cursors to execute queries using placeholders in
PostgreSQL format ($1, $2...) (:ticket:[#560](https://github.com/psycopg/psycopg/issues/560)).
Add psycopg.capabilities object to :ref:inspect the libpq capabilities <capabilities> (:ticket:[#772](https://github.com/psycopg/psycopg/issues/772)).
Add ~rows.scalar_row to return scalar values from a query (:ticket:[#723](https://github.com/psycopg/psycopg/issues/723)).
Prepared statements are now :ref:compatible with PgBouncer <pgbouncer>.
(:ticket:[#589](https://github.com/psycopg/psycopg/issues/589)).
Add ~Connection.set_autocommit() on sync connections, and similar
transaction control methods available on the async connections.
Add support for libpq functions to close prepared statements and portals
introduced in libpq v17 (:ticket:[#603](https://github.com/psycopg/psycopg/issues/603)).
Add support for libpq encrypted and non-blocking query cancellation
functions introduced in libpq v17 (:ticket:[#754](https://github.com/psycopg/psycopg/issues/754)).
The !context parameter of sql objects ~sql.Composable.as_string() and
~sql.Composable.as_bytes() methods is now optional (:ticket:[#716](https://github.com/psycopg/psycopg/issues/716)).
Disable receiving more than one result on the same cursor in pipeline mode,
to iterate through ~Cursor.nextset(). The behaviour was different than
in non-pipeline mode and not totally reliable (:ticket:[#604](https://github.com/psycopg/psycopg/issues/604)).
The Cursor now only preserves the results set of the last
~Cursor.execute(), consistently with non-pipeline mode.
Add ~Connection.cancel_safe() for encrypted and non-blocking cancellation
If possible, use such method internally upon KeyboardInterrupt and Copy
termination (:ticket:[#754](https://github.com/psycopg/psycopg/issues/754)).
Add support for libpq function to retrieve results in chunks introduced in
libpq v17 (:ticket:[#793](https://github.com/psycopg/psycopg/issues/793)).
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.
verify=True now reuses a global SSLContext which should improve
request time variance between first and subsequent requests. It should
also minimize certificate load time on Windows systems when using a Python
version built with OpenSSL 3.x. (#6667)
Requests now supports optional use of character detection
(chardet or charset_normalizer) when repackaged or vendored.
This enables pip and other projects to minimize their vendoring
surface area. The Response.text() and apparent_encoding APIs
will default to utf-8 if neither library is present. (#6702)
Bugfixes
Fixed bug in length detection where emoji length was incorrectly
calculated in the request content-length. (#6589)
Fixed deserialization bug in JSONDecodeError. (#6629)
Fixed bug where an extra leading / (path separator) could lead
urllib3 to unnecessarily reparse the request URI. (#6644)
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.
verify=True now reuses a global SSLContext which should improve
request time variance between first and subsequent requests. It should
also minimize certificate load time on Windows systems when using a Python
version built with OpenSSL 3.x. (#6667)
Requests now supports optional use of character detection
(chardet or charset_normalizer) when repackaged or vendored.
This enables pip and other projects to minimize their vendoring
surface area. The Response.text() and apparent_encoding APIs
will default to utf-8 if neither library is present. (#6702)
Bugfixes
Fixed bug in length detection where emoji length was incorrectly
calculated in the request content-length. (#6589)
Fixed deserialization bug in JSONDecodeError. (#6629)
Fixed bug where an extra leading / (path separator) could lead
urllib3 to unnecessarily reparse the request URI. (#6644)
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 python-dependencies group with 7 updates in the / directory:
5.0.4
5.0.6
5.2.1
5.2.2
3.1.18
3.1.19
2.31.0
2.32.2
3.2.0
3.2.2
4.2.7
5.0.0
3.14.5
3.15.0
Updates
django
from 5.0.4 to 5.0.6Commits
2719a7f
[5.0.x] Bumped version for 5.0.6 release.c90b20f
[5.0.x] Added release notes for 5.0.6 and 4.2.13.0504608
[5.0.x] Added stub release notes for 5.0.6.2fa9fe3
[5.0.x] Post-release version bump.b6844c6
[5.0.x] Bumped version for 5.0.5 release.e1eecba
[5.0.x] Added release date for 5.0.5 and 4.2.12.9b5029f
[5.0.x] Fixed #35426 -- Updated querysets to be a required argument of Generi...ac9e18f
[5.0.x] Refs #35359 -- Fixed OperationTests.test_add_generate_field() test on...59c3f8a
[5.0.x] Fixed #35427 -- Corrected help text for makemessages --extension in d...e18e931
[5.0.x] Refs #35422 -- Fixed typo in docs/releases/5.0.5.txt.Updates
lxml
from 5.2.1 to 5.2.2Release notes
Sourced from lxml's releases.
Changelog
Sourced from lxml's changelog.
Commits
8e4b14c
Prepare release of lxml 5.2.2.ddaa6ed
Provide compile time version of libiconv as "etree.ICONV_COMPILED_VERSION".1ab00bd
CI: Do not install lxml as dependency of "lxml_html_clean".b325054
CI: Stop building LTO wheels to avoid messing with the library build cache.81624c2
CI: Exclude now-unsupported Python versions 3.6/7 from macOS jobs.069fa36
Fix typo.e0df2ba
Fix typo.df55eaf
Update changelog.f3e77fa
Remove dependency on SSE4 instructions, reverting back to "core2" as a target...a22e83c
Update changelog.Updates
psycopg
from 3.1.18 to 3.1.19Changelog
Sourced from psycopg's changelog.
... (truncated)
Commits
780068d
chore: bump psycopg package version to 3.1.19040489c
chore(crdb): upgrade types to v23.1163f366
ci(macos): test and build macOS packages on M1 runners01d5dab
Merge branch 'fix-745' into maint-3.128fc73e
perf(copy): only flush at every row on copy on macOS963c5f8
Improve performance of copyc9486b3
test(copy): add minimal copy benchmark framework3398945
Merge branch 'fix-734' into maint-3.1cfc0782
fix(c): solve undefined behaviour caused by unaligned access611738f
ci: add test to check for misaligned memory accessUpdates
requests
from 2.31.0 to 2.32.2Release notes
Sourced from requests's releases.
... (truncated)
Changelog
Sourced from requests's changelog.
... (truncated)
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.1d6ebc4a
v2.32.09a40d12
Avoid reloading root certificates to improve concurrent performance (#6667)0c030f7
Merge pull request #6702 from nateprewitt/no_char_detection555b870
Allow character detection dependencies to be optional in post-packaging stepsd6dded3
Merge pull request #6700 from franekmagiera/update-redirect-to-invalid-uri-testUpdates
pylint
from 3.2.0 to 3.2.2Commits
769ffd2
Bump pylint to 3.2.2, update changelog (#9658)98c5af9
Fix false-positive with contextmanager missing cleanup (#9654) (#9657)9a9db8f
Update astroid to 3.2.2 (#9655) (#9656)9223172
Bump pylint to 3.2.1, update changelog926547b
[trailing-comma-tuple] Fix enabling with message control locally when disable...1498675
Fix linterstats.get_module_message_count() (#9146) (#9648)aed496a
Fix FP forpossibly-used-before-assignment
withassert_never()
(#9645) (#...9dae975
[Backport maintenance/3.2.x] Add--prefer-stubs=y
option (#9646)a03ceae
Add--prefer-stubs=y
option (#9632)b2ea316
[Backport maintenance/3.2.x] Don't emit incorrect-variance for type parameter...Updates
django-stubs
from 4.2.7 to 5.0.0Commits
68b199e
Version 5.0.0 release (django-stubs, django-stubs-ext) (#2087)64a3aac
Remove incorrectReversible
base class fromQuerySet
(#2094)e5f2159
[pre-commit.ci] pre-commit autoupdate (#2092)35fdd20
Bump pytest from 8.1.1 to 8.2.0 (#2091)6f7a19c
Bump black from 24.4.1 to 24.4.2 (#2086)5ef36c5
Add path signature for async views. (#2085)3fe74d8
Bump black from 24.4.0 to 24.4.1 (#2084)0756d06
Bump mypy from 1.9.0 to 1.10.0 (#2083)1546e5c
[pre-commit.ci] pre-commit autoupdate (#2082)11a7f54
5.0: Updatedjango.contrib.postgres
(#2078)Updates
djangorestframework-stubs
from 3.14.5 to 3.15.0Release notes
Sourced from djangorestframework-stubs's releases.
... (truncated)
Commits
6e22a6f
Version 3.15.0 release (#605)8869eef
[pre-commit.ci] pre-commit autoupdate (#604)b882896
Bump pytest from 8.1.1 to 8.2.0 (#603)e00d4ce
AllowNone
forListField.min/max_length
(#601)f141057
Update mypy requirement from <1.10,>=1.7 to >=1.7,<1.11 (#598)f0c9e31
[pre-commit.ci] pre-commit autoupdate (#594)a472d34
CI: Run tests daily to detect incompatible django-stubs changes (#519)e0ec43f
FixHyperlinkedRelatedField.get_object()
argument types (#597)9d25503
Make HyperlinkedModelSerializer generic (#595)71a6b53
Fix CI: suppress mypy errors in test suite that come from 3rd party packages ...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