-
-
Notifications
You must be signed in to change notification settings - Fork 208
add libpq interface for encrypted and non-blocking cancellation #754
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
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
1c0c20e to
66d010f
Compare
dvarrazzo
reviewed
Apr 2, 2024
66d010f to
68548fd
Compare
68548fd to
18df492
Compare
dvarrazzo
requested changes
Apr 4, 2024
dvarrazzo
reviewed
Apr 5, 2024
55177e5 to
621b010
Compare
Encrypted and non-blocking cancellation should be part PostgreSQL 17: - https://commitfest.postgresql.org/37/3511/ - https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=61461a300c1cb5d53955ecd792ad0ce75a104736 We here add the interface for libpq functions for this feature. An extra test is introduced, it closely reproduces src/test/modules/libpq_pipeline/libpq_pipeline::test_cancel() in PostgreSQL test suite. The error_message property of PGcancelConn is directly an str and PGcancelConn has no encoding specified and all messages come from the client (libpq).
We split the previous (misnamed) test_cancel_nonblocking() into test_cancel_conn_blocking() and test_cancel_conn_nonblocking() respectively checking PQcancelBlocking() and PQcancelStart()/PQcancelPoll(). The cancellable_query() is now responsible for creating the monitor_conn and uses a PGconn value, coming from the pgconn fixture in tests.
Similarly to PGconn, PGcancelConn must not be used after .finish(); we raise an OperationalError to prevent segfault when the connection pointer is NULL.
dvarrazzo
approved these changes
Apr 5, 2024
Member
dvarrazzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Rebasing and merging, thank you very much!
621b010 to
4563c5d
Compare
Member
|
Merged now 🙂 |
julien4215
referenced
this pull request
in aeecleclair/Hyperion
May 17, 2024
Bumps the patch-dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [bcrypt](https://github.com/pyca/bcrypt) | `4.1.2` | `4.1.3` | | [icalendar](https://github.com/collective/icalendar) | `5.0.11` | `5.0.12` | | [pymupdf](https://github.com/pymupdf/pymupdf) | `1.24.2` | `1.24.3` | | [psycopg[c]](https://github.com/psycopg/psycopg) | `3.1.18` | `3.1.19` | | [psycopg[binary]](https://github.com/psycopg/psycopg) | `3.1.18` | `3.1.19` | Updates `bcrypt` from 4.1.2 to 4.1.3 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pyca/bcrypt/commit/35e5a6f5a5131bef22f04dcc9bf401b6eab79642"><code>35e5a6f</code></a> Bump version for 4.1.3 release (<a href="https://redirect.github.com/pyca/bcrypt/issues/791">#791</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/d99d1e568d41c7248269bfd37295f65c74fb12bd"><code>d99d1e5</code></a> Bump autocfg from 1.2.0 to 1.3.0 in /src/_bcrypt (<a href="https://redirect.github.com/pyca/bcrypt/issues/790">#790</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/0775d47c9a1436706932b1bf8911735881aec8e2"><code>0775d47</code></a> allow testing with pytest 8.2.0 (<a href="https://redirect.github.com/pyca/bcrypt/issues/786">#786</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/97d09ac5c190de343af145b61d0b4356950281c0"><code>97d09ac</code></a> Bump base64 from 0.22.0 to 0.22.1 in /src/_bcrypt (<a href="https://redirect.github.com/pyca/bcrypt/issues/787">#787</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/ee4a9a8dd1b23d33da931022f2acbf156316f2fb"><code>ee4a9a8</code></a> use ubuntu rolling in arm64 CI (<a href="https://redirect.github.com/pyca/bcrypt/issues/784">#784</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/7d2474faa546a1a9daae5cac282977d34fe8aedd"><code>7d2474f</code></a> Bump libc from 0.2.153 to 0.2.154 in /src/_bcrypt (<a href="https://redirect.github.com/pyca/bcrypt/issues/783">#783</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/7a252dde4d84dedfc9d8e04308234fea18c6fa45"><code>7a252dd</code></a> Try blocking pytest 8.2.0 (<a href="https://redirect.github.com/pyca/bcrypt/issues/785">#785</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/297a915720a64c15274cd927a2b6f0fef2e28772"><code>297a915</code></a> Remove brew install rust from macOS CI (<a href="https://redirect.github.com/pyca/bcrypt/issues/782">#782</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/6b3f99eff2447cc7cf9b0cd7bffb3e31871c3648"><code>6b3f99e</code></a> Bump parking_lot_core from 0.9.9 to 0.9.10 in /src/_bcrypt (<a href="https://redirect.github.com/pyca/bcrypt/issues/778">#778</a>)</li> <li><a href="https://github.com/pyca/bcrypt/commit/c88b31007dfada537b9594540a4e12d49e08eca0"><code>c88b310</code></a> Bump parking_lot from 0.12.1 to 0.12.2 in /src/_bcrypt (<a href="https://redirect.github.com/pyca/bcrypt/issues/780">#780</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pyca/bcrypt/compare/4.1.2...4.1.3">compare view</a></li> </ul> </details> <br /> Updates `icalendar` from 5.0.11 to 5.0.12 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/collective/icalendar/blob/master/CHANGES.rst">icalendar's changelog</a>.</em></p> <blockquote> <h2>5.0.12 (2024-03-19)</h2> <p>Minor changes:</p> <ul> <li>Analyse code coverage of test files</li> <li>Added corpus to fuzzing directory</li> <li>Added exclusion of fuzzing corpus in MANIFEST.in</li> <li>Augmented fuzzer to optionally convert multiple calendars from a source string</li> <li>Add script to convert OSS FUZZ test cases to Python/pytest test cases</li> <li>Added additional exception handling of defined errors to fuzzer, to allow fuzzer to explore deeper</li> <li>Added more instrumentation to fuzz-harness</li> <li>Rename "contributor" to "collaborator" in documentation</li> <li>Correct the outdated "icalendar view myfile.ics" command in documentation. <a href="https://redirect.github.com/collective/icalendar/issues/588">#588</a></li> <li>Update GitHub Actions steps versions</li> <li>Keep GitHub Actions up to date with GitHub's Dependabot</li> </ul> <p>Breaking changes:</p> <ul> <li>...</li> </ul> <p>New features:</p> <ul> <li>...</li> </ul> <p>Bug fixes:</p> <ul> <li>...</li> <li>Fixed index error in cal.py when attempting to pop from an empty stack</li> <li>Fixed type error in prop.py when attempting to join strings into a byte-string</li> <li>Caught Wrong Date Format in ical_fuzzer to resolve fuzzing coverage blocker</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/collective/icalendar/commit/72966e7610416cf718f6ad9575db4dab4c2d7d96"><code>72966e7</code></a> try to set a body text of the release</li> <li><a href="https://github.com/collective/icalendar/commit/38fcd16a78c835ed0fb268ba5ba4302c28be2f27"><code>38fcd16</code></a> modify release</li> <li><a href="https://github.com/collective/icalendar/commit/679ecab15fdd104ded84f6775c3f13cc895a99e5"><code>679ecab</code></a> use different release action</li> <li><a href="https://github.com/collective/icalendar/commit/216452c616c983549ce5bd88be6f3f3cb14a7c9d"><code>216452c</code></a> use github.token</li> <li><a href="https://github.com/collective/icalendar/commit/72c0d6daecf552f90d9a1bdca78d23c06e906b3f"><code>72c0d6d</code></a> try other tag release method</li> <li><a href="https://github.com/collective/icalendar/commit/5551ad90619e9d06d76e12555212efdea85733a3"><code>5551ad9</code></a> version 5.0.12</li> <li><a href="https://github.com/collective/icalendar/commit/f41772059a67007a5e394df23887bb294d6fbe83"><code>f417720</code></a> Merge pull request <a href="https://redirect.github.com/collective/icalendar/issues/602">#602</a> from niccokunzmann/refactor-test-6</li> <li><a href="https://github.com/collective/icalendar/commit/b51fef6e9ad74c7990d872ded333db9ffa87f47c"><code>b51fef6</code></a> Merge pull request <a href="https://redirect.github.com/collective/icalendar/issues/599">#599</a> from niccokunzmann/refactor-test-3</li> <li><a href="https://github.com/collective/icalendar/commit/fb0baf40648522336a6997119429baf08dcdf8da"><code>fb0baf4</code></a> Merge pull request <a href="https://redirect.github.com/collective/icalendar/issues/598">#598</a> from niccokunzmann/refactor-test-2</li> <li><a href="https://github.com/collective/icalendar/commit/00a2d56f2e36413a035a498c8822471d96cca480"><code>00a2d56</code></a> Merge pull request <a href="https://redirect.github.com/collective/icalendar/issues/597">#597</a> from niccokunzmann/refactor-test-1</li> <li>Additional commits viewable in <a href="https://github.com/collective/icalendar/compare/v5.0.11...v5.0.12">compare view</a></li> </ul> </details> <br /> Updates `pymupdf` from 1.24.2 to 1.24.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pymupdf/pymupdf/releases">pymupdf's releases</a>.</em></p> <blockquote> <h2>PyMuPDF-1.24.3 released</h2> <p>PyMuPDF-1.24.3 has been released.</p> <p>Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:</p> <pre><code>python -m pip install --upgrade pymupdf </code></pre> <p>[Linux-aarch64 wheels will be built and uploaded later.]</p> <p><strong>Changes in version 1.24.3 (2024-05-09)</strong></p> <ul> <li> <p>The Python module is now called <code>pymupdf</code>. <code>fitz</code> is still supported for backwards compatibility.</p> </li> <li> <p>Use MuPDF-1.24.2.</p> </li> <li> <p>Fixed issues:</p> <ul> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3357">#3357</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3376">#3376</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3379">#3379</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3381">#3381</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3402">#3402</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3414">#3414</a></li> <li><strong>Fixed</strong> <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3430">#3430</a></li> </ul> </li> <li> <p>Other:</p> <ul> <li> <p>New/modified methods:</p> <ul> <li><code>Page.remove_rotation()</code>: new, set page rotation to zero while keeping appearance.</li> </ul> </li> <li> <p>Fixed some problems when checking for PDF properties.</p> </li> <li> <p>Fixed pip builds from sdist (see discussion <a href="https://redirect.github.com/pymupdf/pymupdf/issues/3360">#3360</a>).</p> </li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pymupdf/PyMuPDF/blob/main/changes.txt">pymupdf's changelog</a>.</em></p> <blockquote> <h1>Change Log</h1> <p><strong>Changes in version 1.24.3 (2024-05-09)</strong></p> <ul> <li> <p>The Python module is now called <code>pymupdf</code>. <code>fitz</code> is still supported for backwards compatibility.</p> </li> <li> <p>Use MuPDF-1.24.2.</p> </li> <li> <p>Fixed issues:</p> <ul> <li><strong>Fixed</strong> <code>3357 <https://github.com/pymupdf/PyMuPDF/issues/3357></code>_: PyMuPDF==1.24.0 will hanging when using page.get_text("text")</li> <li><strong>Fixed</strong> <code>3376 <https://github.com/pymupdf/PyMuPDF/issues/3376></code>_: Redacting results are not as expected in 1.24.x.</li> <li><strong>Fixed</strong> <code>3379 <https://github.com/pymupdf/PyMuPDF/issues/3379></code>_: Documentation mismatch for get_text_blocks return value order.</li> <li><strong>Fixed</strong> <code>3381 <https://github.com/pymupdf/PyMuPDF/issues/3381></code>_: Contents stream contains floats in scientific notation</li> <li><strong>Fixed</strong> <code>3402 <https://github.com/pymupdf/PyMuPDF/issues/3402></code>_: Cannot add Widgets containing inter-field-calculation JavaScript</li> <li><strong>Fixed</strong> <code>3414 <https://github.com/pymupdf/PyMuPDF/issues/3414></code>_: missing attribute set_dpi()</li> <li><strong>Fixed</strong> <code>3430 <https://github.com/pymupdf/PyMuPDF/issues/3430></code>_: page.get_text() cause process freeze with certain pdf on v1.24.2</li> </ul> </li> <li> <p>Other:</p> <ul> <li> <p>New/modified methods:</p> <ul> <li><code>Page.remove_rotation()</code>: new, set page rotation to zero while keeping appearance.</li> </ul> </li> <li> <p>Fixed some problems when checking for PDF properties.</p> </li> <li> <p>Fixed pip builds from sdist (see discussion <code>3360 <https://github.com/pymupdf/PyMuPDF/discussions/3360></code>_: Alpine linux docker build failing "No matching distribution found for pymupdfb==1.24.1").</p> </li> </ul> </li> </ul> <p><strong>Changes in version 1.24.2 (2024-04-17)</strong></p> <ul> <li> <p>Removed obsolete classic implementation from releases (previously available as module <code>fitz_old</code>).</p> </li> <li> <p>Fixed issues:</p> <ul> <li><strong>Fixed</strong> <code>3331 <https://github.com/pymupdf/PyMuPDF/issues/3331></code>_: Document.pages() is incorrectly type-hinted</li> <li><strong>Fixed</strong> <code>3354 <https://github.com/pymupdf/PyMuPDF/issues/3354></code>_: PyMuPDF==1.24.1: AttributeError: property 'metadata' of 'Document' object has no setter</li> </ul> </li> <li> <p>Other:</p> <ul> <li> <p>New/modified methods:</p> <ul> <li><code>Document.bake()</code>: new, make annotations / fields permanent content.</li> <li><code>Page.cluster_drawings()</code>: new, identifies drawing items</li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/5bcc16e6ee52877965df2fb0ad60b518e860b97d"><code>5bcc16e</code></a> Updated release date for 1.24.3.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/762be9ebeaac1e9174e9f41a6a561b12262e4792"><code>762be9e</code></a> scripts/gh_release.py: avoid problems when building macos-arm64 wheels.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/2d68701a16f58ab7c4c2c03cdd84485a2a33bc11"><code>2d68701</code></a> .github/workflows/build_wheels.yml: use macos-13 and macos-14.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/b18d200407df544b75e6bb0d55fa6fdb56a2ed63"><code>b18d200</code></a> Update changelog, version numbers and release dates for release 1.24.3.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/89f9b442c30141a51e9aec4e958487a7f8f3a802"><code>89f9b44</code></a> tests/test_annots.py:test_1645(): fix confusing lack of indentation in fn call.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/f8456bad93b872076f28f9c066a37981018a3522"><code>f8456ba</code></a> tests/: update test_1645() to match recent mupdf master.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/2ceb2e1fec0b0e0564674b11aa399fb49ecc9e51"><code>2ceb2e1</code></a> tests/: updated to match fixes in MuPDF-1.24.2.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/64159ac5d94dd2ce01bc783c526614e3c19d9791"><code>64159ac</code></a> Add an additional check to test_q_count().</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/00d54f2770f7cfd0ebd0ea2fbb08825de5e01d9d"><code>00d54f2</code></a> .github/workflows/build_wheels.yml: use scripts/gh_release.py to build sdists.</li> <li><a href="https://github.com/pymupdf/PyMuPDF/commit/a4f7d6a8ec1aa8541d5dee42c8e26dd289a56bde"><code>a4f7d6a</code></a> scripts/gh_release.py: Also build PyMuPDFb sdist.</li> <li>Additional commits viewable in <a href="https://github.com/pymupdf/pymupdf/compare/1.24.2...1.24.3">compare view</a></li> </ul> </details> <br /> Updates `psycopg[c]` from 3.1.18 to 3.1.19 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg[c]'s changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Future releases</h2> <p>Psycopg 3.2 (unreleased) ^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (:ticket:<code>[#560](https://github.com/psycopg/psycopg/issues/560)</code>).</li> <li>Add <code>psycopg.capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Prepared statements are now :ref:<code>compatible with PgBouncer <pgbouncer></code>. (🎫<code>[#589](https://github.com/psycopg/psycopg/issues/589)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add support for libpq functions to close prepared statements and portals introduced in libpq v17 (:ticket:<code>[#603](https://github.com/psycopg/psycopg/issues/603)</code>).</li> <li>Add support for libpq encrypted and non-blocking query cancellation functions introduced in libpq v17 (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Disable receiving more than one result on the same cursor in pipeline mode, to iterate through <code>~Cursor.nextset()</code>. The behaviour was different than in non-pipeline mode and not totally reliable (:ticket:<code>[#604](https://github.com/psycopg/psycopg/issues/604)</code>). The <code>Cursor</code> now only preserves the results set of the last <code>~Cursor.execute()</code>, consistently with non-pipeline mode.</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation If possible, use such method internally upon <code>KeyboardInterrupt</code> and <code>Copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>Add support for libpq function to retrieve results in chunks introduced in libpq v17 (:ticket:<code>[#793](https://github.com/psycopg/psycopg/issues/793)</code>).</li> </ul> <p>.. __: <a href="https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types">https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types</a></p> <h2>Current release</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/780068d53685ab85c3fbb273596f562e6eeba297"><code>780068d</code></a> chore: bump psycopg package version to 3.1.19</li> <li><a href="https://github.com/psycopg/psycopg/commit/040489c648d5f3fb12342a55c02911e02f21aa6b"><code>040489c</code></a> chore(crdb): upgrade types to v23.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/163f3665b11eab10d7de6d917162b660d4229774"><code>163f366</code></a> ci(macos): test and build macOS packages on M1 runners</li> <li><a href="https://github.com/psycopg/psycopg/commit/01d5dabde6a3d5250b33e6d53fea7789afdb6125"><code>01d5dab</code></a> Merge branch 'fix-745' into maint-3.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/28fc73e5730d594d7340dbd2a686ce01894ba8e5"><code>28fc73e</code></a> perf(copy): only flush at every row on copy on macOS</li> <li><a href="https://github.com/psycopg/psycopg/commit/963c5f8a1b169eccee05fbf0b9738308df86706e"><code>963c5f8</code></a> Improve performance of copy</li> <li><a href="https://github.com/psycopg/psycopg/commit/c9486b3a9f22b1003705c59a0c6cc5248f6a2ec7"><code>c9486b3</code></a> test(copy): add minimal copy benchmark framework</li> <li><a href="https://github.com/psycopg/psycopg/commit/33989450c64dc2da93697183a8f4a61242b2bebd"><code>3398945</code></a> Merge branch 'fix-734' into maint-3.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/cfc0782032f8fa86096a7b9f7fd83b6870ec7fe5"><code>cfc0782</code></a> fix(c): solve undefined behaviour caused by unaligned access</li> <li><a href="https://github.com/psycopg/psycopg/commit/611738ff3626e7f0d35d66c934653220a7248bbe"><code>611738f</code></a> ci: add test to check for misaligned memory access</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.18...3.1.19">compare view</a></li> </ul> </details> <br /> Updates `psycopg[binary]` from 3.1.18 to 3.1.19 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg[binary]'s changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Future releases</h2> <p>Psycopg 3.2 (unreleased) ^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (:ticket:<code>[#560](https://github.com/psycopg/psycopg/issues/560)</code>).</li> <li>Add <code>psycopg.capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Prepared statements are now :ref:<code>compatible with PgBouncer <pgbouncer></code>. (🎫<code>[#589](https://github.com/psycopg/psycopg/issues/589)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add support for libpq functions to close prepared statements and portals introduced in libpq v17 (:ticket:<code>[#603](https://github.com/psycopg/psycopg/issues/603)</code>).</li> <li>Add support for libpq encrypted and non-blocking query cancellation functions introduced in libpq v17 (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Disable receiving more than one result on the same cursor in pipeline mode, to iterate through <code>~Cursor.nextset()</code>. The behaviour was different than in non-pipeline mode and not totally reliable (:ticket:<code>[#604](https://github.com/psycopg/psycopg/issues/604)</code>). The <code>Cursor</code> now only preserves the results set of the last <code>~Cursor.execute()</code>, consistently with non-pipeline mode.</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation If possible, use such method internally upon <code>KeyboardInterrupt</code> and <code>Copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>Add support for libpq function to retrieve results in chunks introduced in libpq v17 (:ticket:<code>[#793](https://github.com/psycopg/psycopg/issues/793)</code>).</li> </ul> <p>.. __: <a href="https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types">https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types</a></p> <h2>Current release</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/780068d53685ab85c3fbb273596f562e6eeba297"><code>780068d</code></a> chore: bump psycopg package version to 3.1.19</li> <li><a href="https://github.com/psycopg/psycopg/commit/040489c648d5f3fb12342a55c02911e02f21aa6b"><code>040489c</code></a> chore(crdb): upgrade types to v23.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/163f3665b11eab10d7de6d917162b660d4229774"><code>163f366</code></a> ci(macos): test and build macOS packages on M1 runners</li> <li><a href="https://github.com/psycopg/psycopg/commit/01d5dabde6a3d5250b33e6d53fea7789afdb6125"><code>01d5dab</code></a> Merge branch 'fix-745' into maint-3.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/28fc73e5730d594d7340dbd2a686ce01894ba8e5"><code>28fc73e</code></a> perf(copy): only flush at every row on copy on macOS</li> <li><a href="https://github.com/psycopg/psycopg/commit/963c5f8a1b169eccee05fbf0b9738308df86706e"><code>963c5f8</code></a> Improve performance of copy</li> <li><a href="https://github.com/psycopg/psycopg/commit/c9486b3a9f22b1003705c59a0c6cc5248f6a2ec7"><code>c9486b3</code></a> test(copy): add minimal copy benchmark framework</li> <li><a href="https://github.com/psycopg/psycopg/commit/33989450c64dc2da93697183a8f4a61242b2bebd"><code>3398945</code></a> Merge branch 'fix-734' into maint-3.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/cfc0782032f8fa86096a7b9f7fd83b6870ec7fe5"><code>cfc0782</code></a> fix(c): solve undefined behaviour caused by unaligned access</li> <li><a href="https://github.com/psycopg/psycopg/commit/611738ff3626e7f0d35d66c934653220a7248bbe"><code>611738f</code></a> ci: add test to check for misaligned memory access</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.18...3.1.19">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> 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 <dependency name> 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 <dependency name>` 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 <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
github-merge-queue bot
referenced
this pull request
in microsoft/semantic-kernel
Jul 2, 2024
Bumps [psycopg](https://github.com/psycopg/psycopg) from 3.1.19 to 3.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg's changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Current release</h2> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[#560](psycopg/psycopg#560), [#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add a <code>size</code> parameter to <code>~Cursor.stream()</code> to enable results retrieval in chunks instead of row-by-row (:ticket:<code>[#794](https://github.com/psycopg/psycopg/issues/794)</code>).</li> </ul> <p>.. rubric:: New libpq wrapper features</p> <ul> <li>Add support for libpq functions to close prepared statements and portals introduced in libpq v17 (:ticket:<code>[#603](https://github.com/psycopg/psycopg/issues/603)</code>).</li> <li>Add support for libpq encrypted and non-blocking query cancellation functions introduced in libpq v17 (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/bb47d3944d1c65d9baf83808696aba1b2dfed9af"><code>bb47d39</code></a> chore: bump psycopg package version to 3.2.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/55490a2d6b8344e3b49f6004c8e7afdc6d40c5fb"><code>55490a2</code></a> fix: fix versions in packaging metadata</li> <li><a href="https://github.com/psycopg/psycopg/commit/1cbc42a6759823e18d273e739cc64d7f994f53b2"><code>1cbc42a</code></a> docs: fix title level of major releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/06a6e5e213577fca0fa1c6ca62def8fa5803663a"><code>06a6e5e</code></a> docs: mention dropping Python 3.7 in psycopg 3.2 release</li> <li><a href="https://github.com/psycopg/psycopg/commit/ea3735dccc5dfd20eb4ba5c4a3c52ec76d9aa6d0"><code>ea3735d</code></a> docs: better organization of the 3.2 release notes</li> <li><a href="https://github.com/psycopg/psycopg/commit/896eee2363d0bc25cc31ccf4189b295bb61deb40"><code>896eee2</code></a> chore: bump psycopg package version to 3.2.0</li> <li><a href="https://github.com/psycopg/psycopg/commit/2e2f4d7dd31cac67b790c293de70133373173ebb"><code>2e2f4d7</code></a> chore: bump psycopg package version to 3.1.20</li> <li><a href="https://github.com/psycopg/psycopg/commit/7369d3bb0280851832a395d6b3084de7b520e3a0"><code>7369d3b</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/846">#846</a> from eli-schwartz/tomllib</li> <li><a href="https://github.com/psycopg/psycopg/commit/6672c708f1813978461aff6e5e240a96773ff873"><code>6672c70</code></a> style: shorter line in pyproject.toml</li> <li><a href="https://github.com/psycopg/psycopg/commit/a517bb4579d2b8caa4ddc1e81294d6026c8974d6"><code>a517bb4</code></a> build: avoid installing tomli on recent python</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.19...3.2.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
armanddidierjean
referenced
this pull request
in aeecleclair/Hyperion
Aug 6, 2024
Bumps [psycopg[binary]](https://github.com/psycopg/psycopg) from 3.1.19 to 3.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg[binary]'s changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Future releases</h2> <p>Psycopg 3.2.2 (unreleased) ^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Drop <code>!TypeDef</code> specifications as string from public modules, as they cannot be composed by users as <code>!typing</code> objects previously could (:ticket:<code>[#860](https://github.com/psycopg/psycopg/issues/860)</code>).</li> </ul> <h2>Current release</h2> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[#560](psycopg/psycopg#560), [#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/bb47d3944d1c65d9baf83808696aba1b2dfed9af"><code>bb47d39</code></a> chore: bump psycopg package version to 3.2.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/55490a2d6b8344e3b49f6004c8e7afdc6d40c5fb"><code>55490a2</code></a> fix: fix versions in packaging metadata</li> <li><a href="https://github.com/psycopg/psycopg/commit/1cbc42a6759823e18d273e739cc64d7f994f53b2"><code>1cbc42a</code></a> docs: fix title level of major releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/06a6e5e213577fca0fa1c6ca62def8fa5803663a"><code>06a6e5e</code></a> docs: mention dropping Python 3.7 in psycopg 3.2 release</li> <li><a href="https://github.com/psycopg/psycopg/commit/ea3735dccc5dfd20eb4ba5c4a3c52ec76d9aa6d0"><code>ea3735d</code></a> docs: better organization of the 3.2 release notes</li> <li><a href="https://github.com/psycopg/psycopg/commit/896eee2363d0bc25cc31ccf4189b295bb61deb40"><code>896eee2</code></a> chore: bump psycopg package version to 3.2.0</li> <li><a href="https://github.com/psycopg/psycopg/commit/2e2f4d7dd31cac67b790c293de70133373173ebb"><code>2e2f4d7</code></a> chore: bump psycopg package version to 3.1.20</li> <li><a href="https://github.com/psycopg/psycopg/commit/7369d3bb0280851832a395d6b3084de7b520e3a0"><code>7369d3b</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/846">#846</a> from eli-schwartz/tomllib</li> <li><a href="https://github.com/psycopg/psycopg/commit/6672c708f1813978461aff6e5e240a96773ff873"><code>6672c70</code></a> style: shorter line in pyproject.toml</li> <li><a href="https://github.com/psycopg/psycopg/commit/a517bb4579d2b8caa4ddc1e81294d6026c8974d6"><code>a517bb4</code></a> build: avoid installing tomli on recent python</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.19...3.2.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ikarius
referenced
this pull request
in gip-inclusion/dora-back
Aug 13, 2024
Bumps [psycopg[binary]](https://github.com/psycopg/psycopg) from 3.1.19 to 3.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg[binary]'s changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Future releases</h2> <p>Psycopg 3.2.2 (unreleased) ^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Drop <code>!TypeDef</code> specifications as string from public modules, as they cannot be composed by users as <code>!typing</code> objects previously could (:ticket:<code>[#860](https://github.com/psycopg/psycopg/issues/860)</code>).</li> </ul> <h2>Current release</h2> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[#560](psycopg/psycopg#560), [#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/bb47d3944d1c65d9baf83808696aba1b2dfed9af"><code>bb47d39</code></a> chore: bump psycopg package version to 3.2.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/55490a2d6b8344e3b49f6004c8e7afdc6d40c5fb"><code>55490a2</code></a> fix: fix versions in packaging metadata</li> <li><a href="https://github.com/psycopg/psycopg/commit/1cbc42a6759823e18d273e739cc64d7f994f53b2"><code>1cbc42a</code></a> docs: fix title level of major releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/06a6e5e213577fca0fa1c6ca62def8fa5803663a"><code>06a6e5e</code></a> docs: mention dropping Python 3.7 in psycopg 3.2 release</li> <li><a href="https://github.com/psycopg/psycopg/commit/ea3735dccc5dfd20eb4ba5c4a3c52ec76d9aa6d0"><code>ea3735d</code></a> docs: better organization of the 3.2 release notes</li> <li><a href="https://github.com/psycopg/psycopg/commit/896eee2363d0bc25cc31ccf4189b295bb61deb40"><code>896eee2</code></a> chore: bump psycopg package version to 3.2.0</li> <li><a href="https://github.com/psycopg/psycopg/commit/2e2f4d7dd31cac67b790c293de70133373173ebb"><code>2e2f4d7</code></a> chore: bump psycopg package version to 3.1.20</li> <li><a href="https://github.com/psycopg/psycopg/commit/7369d3bb0280851832a395d6b3084de7b520e3a0"><code>7369d3b</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/846">#846</a> from eli-schwartz/tomllib</li> <li><a href="https://github.com/psycopg/psycopg/commit/6672c708f1813978461aff6e5e240a96773ff873"><code>6672c70</code></a> style: shorter line in pyproject.toml</li> <li><a href="https://github.com/psycopg/psycopg/commit/a517bb4579d2b8caa4ddc1e81294d6026c8974d6"><code>a517bb4</code></a> build: avoid installing tomli on recent python</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.19...3.2.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
LudoCorporateShark
referenced
this pull request
in LudoCorporateShark/semantic-kernel
Aug 25, 2024
Bumps [psycopg](https://github.com/psycopg/psycopg) from 3.1.19 to 3.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg's changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Current release</h2> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[microsoft#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[microsoft#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[microsoft#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[microsoft#560](psycopg/psycopg#560), [microsoft#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[microsoft#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[microsoft#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[microsoft#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[microsoft#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add a <code>size</code> parameter to <code>~Cursor.stream()</code> to enable results retrieval in chunks instead of row-by-row (:ticket:<code>[microsoft#794](https://github.com/psycopg/psycopg/issues/794)</code>).</li> </ul> <p>.. rubric:: New libpq wrapper features</p> <ul> <li>Add support for libpq functions to close prepared statements and portals introduced in libpq v17 (:ticket:<code>[microsoft#603](https://github.com/psycopg/psycopg/issues/603)</code>).</li> <li>Add support for libpq encrypted and non-blocking query cancellation functions introduced in libpq v17 (:ticket:<code>[microsoft#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/bb47d3944d1c65d9baf83808696aba1b2dfed9af"><code>bb47d39</code></a> chore: bump psycopg package version to 3.2.1</li> <li><a href="https://github.com/psycopg/psycopg/commit/55490a2d6b8344e3b49f6004c8e7afdc6d40c5fb"><code>55490a2</code></a> fix: fix versions in packaging metadata</li> <li><a href="https://github.com/psycopg/psycopg/commit/1cbc42a6759823e18d273e739cc64d7f994f53b2"><code>1cbc42a</code></a> docs: fix title level of major releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/06a6e5e213577fca0fa1c6ca62def8fa5803663a"><code>06a6e5e</code></a> docs: mention dropping Python 3.7 in psycopg 3.2 release</li> <li><a href="https://github.com/psycopg/psycopg/commit/ea3735dccc5dfd20eb4ba5c4a3c52ec76d9aa6d0"><code>ea3735d</code></a> docs: better organization of the 3.2 release notes</li> <li><a href="https://github.com/psycopg/psycopg/commit/896eee2363d0bc25cc31ccf4189b295bb61deb40"><code>896eee2</code></a> chore: bump psycopg package version to 3.2.0</li> <li><a href="https://github.com/psycopg/psycopg/commit/2e2f4d7dd31cac67b790c293de70133373173ebb"><code>2e2f4d7</code></a> chore: bump psycopg package version to 3.1.20</li> <li><a href="https://github.com/psycopg/psycopg/commit/7369d3bb0280851832a395d6b3084de7b520e3a0"><code>7369d3b</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/846">#846</a> from eli-schwartz/tomllib</li> <li><a href="https://github.com/psycopg/psycopg/commit/6672c708f1813978461aff6e5e240a96773ff873"><code>6672c70</code></a> style: shorter line in pyproject.toml</li> <li><a href="https://github.com/psycopg/psycopg/commit/a517bb4579d2b8caa4ddc1e81294d6026c8974d6"><code>a517bb4</code></a> build: avoid installing tomli on recent python</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.1.19...3.2.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ikarius
referenced
this pull request
in gip-inclusion/dora-back
Sep 16, 2024
Bumps [psycopg[binary]](https://github.com/psycopg/psycopg) from 3.2.1 to 3.2.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg[binary]'s changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Current release</h2> <p>Psycopg 3.2.2 ^^^^^^^^^^^^^</p> <ul> <li>Drop <code>!TypeDef</code> specifications as string from public modules, as they cannot be composed by users as <code>!typing</code> objects previously could (:ticket:<code>[#860](https://github.com/psycopg/psycopg/issues/860)</code>).</li> <li>Release Python 3.13 binary packages.</li> </ul> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[#560](psycopg/psycopg#560), [#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add a <code>size</code> parameter to <code>~Cursor.stream()</code> to enable results retrieval in</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/d027a8737300a2e6bb2335666ca1c8eee43529f4"><code>d027a87</code></a> chore: bump psycopg package version to 3.2.2</li> <li><a href="https://github.com/psycopg/psycopg/commit/026c1239029ba12ac13c077e3d8dadcbe616c88e"><code>026c123</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/890">#890</a> from edgarrmondragon/build-cp313-wheels</li> <li><a href="https://github.com/psycopg/psycopg/commit/86d777241518c7f17012b809f7d3d54cecaaaf31"><code>86d7772</code></a> docs: add update instructions for new major Python releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/8089851fd5544f985effa2e47140774ec5dc034a"><code>8089851</code></a> docs: add Python 3.13 support news entries</li> <li><a href="https://github.com/psycopg/psycopg/commit/cf3bc888f2793edaef1dab50f304f4684bf9a764"><code>cf3bc88</code></a> docs: mention Python 3.13 supported in install docs</li> <li><a href="https://github.com/psycopg/psycopg/commit/9b9781192e9e20550763cfc4d6b70f183ee0b71a"><code>9b97811</code></a> chore: add Python 3.13 to trove classifiers</li> <li><a href="https://github.com/psycopg/psycopg/commit/6e2018819ab8a83a4a3afedfed6f8a7d98ea0cb0"><code>6e20188</code></a> ci: build Python 3.13 wheels</li> <li><a href="https://github.com/psycopg/psycopg/commit/a5b67ba942c418d4e306c121c1bf827884e9c36d"><code>a5b67ba</code></a> docs: replace fastapi events with lifespan</li> <li><a href="https://github.com/psycopg/psycopg/commit/d13137aacb82fed79459a9dd487846a2ec972571"><code>d13137a</code></a> chore(deps): bump pypa/cibuildwheel in the actions group</li> <li><a href="https://github.com/psycopg/psycopg/commit/6f7dcc434cf7c2523ebfec0cac2a21a4da23b92b"><code>6f7dcc4</code></a> Fix typo in cursor table</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.2.1...3.2.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frédéric Vergez <fred@ikarius.com>
lwitkowski
referenced
this pull request
in lwitkowski/aero-offers
Sep 17, 2024
Bumps the python-packages group in /backend with 3 updates: [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy), [psycopg](https://github.com/psycopg/psycopg) and [pytest](https://github.com/pytest-dev/pytest). Updates `sqlalchemy` from 2.0.34 to 2.0.35 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sqlalchemy/sqlalchemy/releases">sqlalchemy's releases</a>.</em></p> <blockquote> <h1>2.0.35</h1> <p>Released: September 16, 2024</p> <h2>orm</h2> <ul> <li> <p><strong>[orm] [bug] [typing]</strong> Fixed issue where it was not possible to use <code>typing.Literal</code> with <code>Mapped[]</code> on Python 3.8 and 3.9. Pull request courtesy Frazer McLean.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/11820">#11820</a></p> </li> <li> <p><strong>[orm] [bug]</strong> Fixed issue in ORM evaluator where two datatypes being evaluated with the SQL concatenator operator would not be checked for <code>UnevaluatableError</code> based on their datatype; this missed the case of <code>_postgresql.JSONB</code> values being used in a concatenate operation which is supported by PostgreSQL as well as how SQLAlchemy renders the SQL for this operation, but does not work at the Python level. By implementing <code>UnevaluatableError</code> for this combination, ORM update statements will now fall back to "expire" when a concatenated JSON value used in a SET clause is to be synchronized to a Python object.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/11849">#11849</a></p> </li> <li> <p><strong>[orm] [bug]</strong> An warning is emitted if <code>_orm.joinedload()</code> or <code>_orm.subqueryload()</code> are used as a top level option against a statement that is not a SELECT statement, such as with an <code>insert().returning()</code>. There are no JOINs in INSERT statements nor is there a "subquery" that can be repurposed for subquery eager loading, and for UPDATE/DELETE joinedload does not support these either, so it is never appropriate for this use to pass silently.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/11853">#11853</a></p> </li> <li> <p><strong>[orm] [bug]</strong> Fixed issue where using loader options such as <code>_orm.selectinload()</code> with additional criteria in combination with ORM DML such as <code>_sql.insert()</code> with RETURNING would not correctly set up internal contexts required for caching to work correctly, leading to incorrect results.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/11855">#11855</a></p> </li> </ul> <h2>mysql</h2> <ul> <li><strong>[mysql] [bug]</strong> Fixed issue in mariadbconnector dialect where query string arguments that weren't checked integer or boolean arguments would be ignored, such as string arguments like <code>unix_socket</code>, etc. As part of this change, the argument parsing for particular elements such as <code>client_flags</code>, <code>compress</code>, <code>local_infile</code> has been made more consistent across all</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/sqlalchemy/sqlalchemy/commits">compare view</a></li> </ul> </details> <br /> Updates `psycopg` from 3.2.1 to 3.2.2 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg's changelog</a>.</em></p> <blockquote> <p>.. currentmodule:: psycopg</p> <p>.. index:: single: Release notes single: News</p> <h1><code>psycopg</code> release notes</h1> <h2>Current release</h2> <p>Psycopg 3.2.2 ^^^^^^^^^^^^^</p> <ul> <li>Drop <code>!TypeDef</code> specifications as string from public modules, as they cannot be composed by users as <code>!typing</code> objects previously could (:ticket:<code>[#860](https://github.com/psycopg/psycopg/issues/860)</code>).</li> <li>Release Python 3.13 binary packages.</li> </ul> <p>Psycopg 3.2.1 ^^^^^^^^^^^^^</p> <ul> <li>Fix packaging metadata breaking <code>[c]</code>, <code>[binary]</code> dependencies (:ticket:<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li> </ul> <h2>Psycopg 3.2</h2> <p>.. rubric:: New top-level features</p> <ul> <li>Add support for integer, floating point, boolean <code>NumPy scalar types</code>__ (:ticket:<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li> <li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to <code>Connection.notifies()</code> (:ticket:<code>340</code>).</li> <li>Allow dumpers to return <code>!None</code>, to be converted to NULL (:ticket:<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li> <li>Add :ref:<code>raw-query-cursors</code> to execute queries using placeholders in PostgreSQL format (<code>$1</code>, <code>$2</code>...) (🎟️<code>[#560](psycopg/psycopg#560), [#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li> <li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq capabilities <capabilities></code> (🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li> <li>Add <code>~rows.scalar_row</code> to return scalar values from a query (:ticket:<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li> <li>Add <code>~Connection.cancel_safe()</code> for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement <code>!KeyboardInterrupt</code> and <code>~cursor.copy</code> termination (:ticket:<code>[#754](https://github.com/psycopg/psycopg/issues/754)</code>).</li> <li>The <code>!context</code> parameter of <code>sql</code> objects <code>~sql.Composable.as_string()</code> and <code>~sql.Composable.as_bytes()</code> methods is now optional (:ticket:<code>[#716](https://github.com/psycopg/psycopg/issues/716)</code>).</li> <li>Add <code>~Connection.set_autocommit()</code> on sync connections, and similar transaction control methods available on the async connections.</li> <li>Add a <code>size</code> parameter to <code>~Cursor.stream()</code> to enable results retrieval in</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psycopg/psycopg/commit/d027a8737300a2e6bb2335666ca1c8eee43529f4"><code>d027a87</code></a> chore: bump psycopg package version to 3.2.2</li> <li><a href="https://github.com/psycopg/psycopg/commit/026c1239029ba12ac13c077e3d8dadcbe616c88e"><code>026c123</code></a> Merge pull request <a href="https://redirect.github.com/psycopg/psycopg/issues/890">#890</a> from edgarrmondragon/build-cp313-wheels</li> <li><a href="https://github.com/psycopg/psycopg/commit/86d777241518c7f17012b809f7d3d54cecaaaf31"><code>86d7772</code></a> docs: add update instructions for new major Python releases</li> <li><a href="https://github.com/psycopg/psycopg/commit/8089851fd5544f985effa2e47140774ec5dc034a"><code>8089851</code></a> docs: add Python 3.13 support news entries</li> <li><a href="https://github.com/psycopg/psycopg/commit/cf3bc888f2793edaef1dab50f304f4684bf9a764"><code>cf3bc88</code></a> docs: mention Python 3.13 supported in install docs</li> <li><a href="https://github.com/psycopg/psycopg/commit/9b9781192e9e20550763cfc4d6b70f183ee0b71a"><code>9b97811</code></a> chore: add Python 3.13 to trove classifiers</li> <li><a href="https://github.com/psycopg/psycopg/commit/6e2018819ab8a83a4a3afedfed6f8a7d98ea0cb0"><code>6e20188</code></a> ci: build Python 3.13 wheels</li> <li><a href="https://github.com/psycopg/psycopg/commit/a5b67ba942c418d4e306c121c1bf827884e9c36d"><code>a5b67ba</code></a> docs: replace fastapi events with lifespan</li> <li><a href="https://github.com/psycopg/psycopg/commit/d13137aacb82fed79459a9dd487846a2ec972571"><code>d13137a</code></a> chore(deps): bump pypa/cibuildwheel in the actions group</li> <li><a href="https://github.com/psycopg/psycopg/commit/6f7dcc434cf7c2523ebfec0cac2a21a4da23b92b"><code>6f7dcc4</code></a> Fix typo in cursor table</li> <li>Additional commits viewable in <a href="https://github.com/psycopg/psycopg/compare/3.2.1...3.2.2">compare view</a></li> </ul> </details> <br /> Updates `pytest` from 8.3.2 to 8.3.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest/releases">pytest's releases</a>.</em></p> <blockquote> <h2>8.3.3</h2> <h1>pytest 8.3.3 (2024-09-09)</h1> <h2>Bug fixes</h2> <ul> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12446">#12446</a>: Avoid calling <code>@Property</code> (and other instance descriptors) during fixture discovery -- by <code>asottile</code>{.interpreted-text role="user"}</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12659">#12659</a>: Fixed the issue of not displaying assertion failure differences when using the parameter <code>--import-mode=importlib</code> in pytest>=8.1.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12667">#12667</a>: Fixed a regression where type change in [ExceptionInfo.errisinstance]{.title-ref} caused [mypy]{.title-ref} to fail.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12744">#12744</a>: Fixed typing compatibility with Python 3.9 or less -- replaced [typing.Self]{.title-ref} with [typing_extensions.Self]{.title-ref} -- by <code>Avasam</code>{.interpreted-text role="user"}</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12745">#12745</a>: Fixed an issue with backslashes being incorrectly converted in nodeid paths on Windows, ensuring consistent path handling across environments.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/6682">#6682</a>: Fixed bug where the verbosity levels where not being respected when printing the "msg" part of failed assertion (as in <code>assert condition, msg</code>).</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/9422">#9422</a>: Fix bug where disabling the terminal plugin via <code>-p no:terminal</code> would cause crashes related to missing the <code>verbose</code> option.</p> <p>-- by <code>GTowers1</code>{.interpreted-text role="user"}</p> </li> </ul> <h2>Improved documentation</h2> <ul> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/12663">#12663</a>: Clarify that the [pytest_deselected]{.title-ref} hook should be called from [pytest_collection_modifyitems]{.title-ref} hook implementations when items are deselected.</li> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/12678">#12678</a>: Remove erroneous quotes from [tmp_path_retention_policy]{.title-ref} example in docs.</li> </ul> <h2>Miscellaneous internal changes</h2> <ul> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/12769">#12769</a>: Fix typos discovered by codespell and add codespell to pre-commit hooks.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pytest/commit/d0f136fe64f9374f18a04562305b178fb380d1ec"><code>d0f136f</code></a> build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12790">#12790</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/972f307c7861ae498e705d3d12e003fa4b035ac0"><code>972f307</code></a> Prepare release version 8.3.3</li> <li><a href="https://github.com/pytest-dev/pytest/commit/0dabdcfe4de99147a07bd577804b60818ea25bc4"><code>0dabdcf</code></a> Include co-authors in release announcement (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12795">#12795</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12797">#12797</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/a9910a413a691e1b216e2235a9cbec0921117702"><code>a9910a4</code></a> Do not discover properties when iterating fixtures (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12781">#12781</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12788">#12788</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/0f10b6b0d8138d3539de75cb7b2e33167b6fc882"><code>0f10b6b</code></a> Fix issue with slashes being turned into backslashes on Windows (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12760">#12760</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12">#12</a>...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/300d13d2231db85186729c2091ea33480cb39c1a"><code>300d13d</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/12785">#12785</a> from pytest-dev/patchback/backports/8.3.x/57cccf7f4...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/e5d32c73abcf4fa1362b15aaf660074de8f710d4"><code>e5d32c7</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/12784">#12784</a> from svenevs/fix/docs-example-parametrize-minor-typo</li> <li><a href="https://github.com/pytest-dev/pytest/commit/bc913d194ec009699194b016ca619d5ae7f22c91"><code>bc913d1</code></a> Streamline checks for verbose option (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12706">#12706</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12778">#12778</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/01cfcc9f2dda817b25511772593012fd93e092d0"><code>01cfcc9</code></a> Fix typos and introduce codespell pre-commit hook (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12769">#12769</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12774">#12774</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/4873394d53635ef62d1915d23972ed4281a784eb"><code>4873394</code></a> doc: Remove past training (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12772">#12772</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12773">#12773</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> 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 <dependency name> 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 <dependency name>` 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 <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.
First step for #534