]> git.ipfire.org Git - thirdparty/psycopg.git/log
thirdparty/psycopg.git
6 months agodocs(ci): add notes about libpq caching
Daniele Varrazzo [Tue, 28 Jan 2025 13:39:51 +0000 (14:39 +0100)] 
docs(ci): add notes about libpq caching

6 months agoci(crdb): test with oldest supported Python release
Daniele Varrazzo [Sun, 19 Jan 2025 23:12:17 +0000 (00:12 +0100)] 
ci(crdb): test with oldest supported Python release

6 months agoci(crdb): test with the master release
Daniele Varrazzo [Sun, 19 Jan 2025 21:49:45 +0000 (22:49 +0100)] 
ci(crdb): test with the master release

6 months agoci(crdb): bump CockroachDB versions in tests
Daniele Varrazzo [Sun, 19 Jan 2025 10:44:30 +0000 (11:44 +0100)] 
ci(crdb): bump CockroachDB versions in tests

6 months agochore: bump psycopg package version to 3.2.4 3.2.4
Daniele Varrazzo [Wed, 15 Jan 2025 00:03:55 +0000 (01:03 +0100)] 
chore: bump psycopg package version to 3.2.4

6 months agodocs: mention the binary packages changes in news file
Daniele Varrazzo [Tue, 14 Jan 2025 23:54:40 +0000 (00:54 +0100)] 
docs: mention the binary packages changes in news file

6 months agochore(binary): bump libpq to 17.2
Daniele Varrazzo [Tue, 14 Jan 2025 11:24:47 +0000 (12:24 +0100)] 
chore(binary): bump libpq to 17.2

Note: on vcpkg, v17 is not available yet. Furthermore it's not easy to
pin the version. See https://github.com/microsoft/vcpkg/discussions/25622

6 months agochore(binary): bump OpenSSL to 3.4.0
Daniele Varrazzo [Tue, 14 Jan 2025 11:23:42 +0000 (12:23 +0100)] 
chore(binary): bump OpenSSL to 3.4.0

6 months agoMerge branch 'build-libpq-macos-3.2' into maint-3.2
Daniele Varrazzo [Tue, 14 Jan 2025 23:31:13 +0000 (00:31 +0100)] 
Merge branch 'build-libpq-macos-3.2' into maint-3.2

6 months agoci(binary): less verbose libpq build
Daniele Varrazzo [Fri, 10 Jan 2025 12:07:23 +0000 (13:07 +0100)] 
ci(binary): less verbose libpq build

6 months agoci(macos): drop Python 3.8 build on macOS arm64
Daniele Varrazzo [Tue, 14 Jan 2025 20:29:30 +0000 (21:29 +0100)] 
ci(macos): drop Python 3.8 build on macOS arm64

We weren't distributing this combination anyway even when linking to
Homebrew libraries.

6 months agoci(macos): build libpq instead of using Homebrew libraries
Daniele Varrazzo [Sun, 5 Jan 2025 23:48:36 +0000 (00:48 +0100)] 
ci(macos): build libpq instead of using Homebrew libraries

This avoids problems with MACOSX_DEPLOYMENT_TARGET drifting in builders
(see #858).

Largely contributed by @bwoodsend in https://github.com/psycopg/psycopg2/pull/1755.

6 months agorefactor: don't keep the notifiers backlog handler in the connection state
Daniele Varrazzo [Fri, 10 Jan 2025 14:17:01 +0000 (15:17 +0100)] 
refactor: don't keep the notifiers backlog handler in the connection state

Just keep the queue in the state and special-case its handling in the
`_notify_handler` connection method instead of registering a standard handler.
Set the queue to None to signify that we are in the `notifies()` generator.

This way we don't need the awkward weak-self + class method to avoid a
reference loop and to dereference the connection weak reference another
time, as we just did in `_notify_handler()`. Setting the queue to None
also feels cleaner than adding/removing the handler.

Relates to #975.

6 months agoMerge branch 'fix-clobbered-error-on-disconnect-3.2' into maint-3.2
Daniele Varrazzo [Fri, 10 Jan 2025 00:39:36 +0000 (01:39 +0100)] 
Merge branch 'fix-clobbered-error-on-disconnect-3.2' into maint-3.2

6 months agotest: soften disconnection tests on platforms knwon to behave differently
Daniele Varrazzo [Wed, 8 Jan 2025 13:10:16 +0000 (14:10 +0100)] 
test: soften disconnection tests on platforms knwon to behave differently

6 months agotest: add test to verify that a server disconnection now raises AdminShutdown
Daniele Varrazzo [Wed, 8 Jan 2025 12:36:26 +0000 (13:36 +0100)] 
test: add test to verify that a server disconnection now raises AdminShutdown

Previously it was raising OperationalError, but this was just the result
of the issue reported in #988. Note that AdminShutdown is a subclass of
OperationalError, therefore this change is backward compatible.

6 months agofix(c): don't clobber an error from the server with a server disconnection
Daniele Varrazzo [Wed, 8 Jan 2025 00:33:52 +0000 (01:33 +0100)] 
fix(c): don't clobber an error from the server with a server disconnection

Instead of raising the exception here, return the result and let the
caller handle the exception. This might make code paths more uniform and
helps the C implementation, because we actually never call
`error_from_result()` in the Cython code.

6 months agofix: don't clobber an error from the server with a server disconnection
Daniele Varrazzo [Wed, 8 Jan 2025 00:21:22 +0000 (01:21 +0100)] 
fix: don't clobber an error from the server with a server disconnection

The server error is assumed to contain more information, as it is
returned as a result, whereas a communication error caused by a server
disconnection will only make available the error message.

Close #988 (but we need to fix the Cython side too).

6 months agotest: add test to reproduce the wrong error on disconnect
Daniele Varrazzo [Wed, 8 Jan 2025 00:16:46 +0000 (01:16 +0100)] 
test: add test to reproduce the wrong error on disconnect

We raise `OperationalError` instead of `IdleInTransactionSessionTimeout`.

See #988.

6 months agofix(debug): print exceptions eventually raised by libpq calls
Daniele Varrazzo [Wed, 8 Jan 2025 00:23:41 +0000 (01:23 +0100)] 
fix(debug): print exceptions eventually raised by libpq calls

6 months agoMerge branch 'pre-commit-3.2' into maint-3.2
Daniele Varrazzo [Fri, 10 Jan 2025 00:38:02 +0000 (01:38 +0100)] 
Merge branch 'pre-commit-3.2' into maint-3.2

6 months agochore: fix problems reported by mypy 1.14.1
Daniele Varrazzo [Sat, 4 Jan 2025 01:11:16 +0000 (02:11 +0100)] 
chore: fix problems reported by mypy 1.14.1

6 months agodocs: document pre-commit usage
Daniele Varrazzo [Fri, 27 Dec 2024 02:34:00 +0000 (03:34 +0100)] 
docs: document pre-commit usage

6 months agoci: enable 3rd party tests on maint-3.2 branch
Daniele Varrazzo [Thu, 9 Jan 2025 13:43:41 +0000 (14:43 +0100)] 
ci: enable 3rd party tests on maint-3.2 branch

6 months agolint: add typing annotations to pass pre-commit
Daniele Varrazzo [Fri, 27 Dec 2024 02:30:28 +0000 (03:30 +0100)] 
lint: add typing annotations to pass pre-commit

Pre-commit seems to run mypy in parallel batches, each with about 20
files. In this mode, certain tests that pass when running mypy all in
once or file-by-file, fail.

In the current state, both running mypy without arguments or running it
in pre-commit seem to work.

6 months agoci: configure lint step to run pre-commit
Daniele Varrazzo [Fri, 27 Dec 2024 01:55:16 +0000 (02:55 +0100)] 
ci: configure lint step to run pre-commit

6 months agoci: add pre-commit configuration
Daniele Varrazzo [Fri, 27 Dec 2024 01:48:20 +0000 (02:48 +0100)] 
ci: add pre-commit configuration

6 months agochore: ignore certain files from mypy linting
Daniele Varrazzo [Fri, 27 Dec 2024 01:44:43 +0000 (02:44 +0100)] 
chore: ignore certain files from mypy linting

Something weird happens. Certain files pass mypy lint on their own, but
not in combination. This is mostly related to `psycopg/pq/pq_ctypes.py`
and `psycopg/pq/_pq_ctypes.py`. This problem seems largely related to
incomplete ctypes definitions.

6 months agochore: drop annotation on empty lists, now unneeded
Daniele Varrazzo [Thu, 26 Dec 2024 18:46:32 +0000 (19:46 +0100)] 
chore: drop annotation on empty lists, now unneeded

If needed, it is considered wrong anyway, because it should be annotated
as class attribute.

7 months agoMerge branch 'dont-lose-notifies' into maint-3.2
Daniele Varrazzo [Thu, 26 Dec 2024 16:32:14 +0000 (17:32 +0100)] 
Merge branch 'dont-lose-notifies' into maint-3.2

7 months agofix: always gather the notifications received
Daniele Varrazzo [Sun, 22 Dec 2024 19:38:58 +0000 (20:38 +0100)] 
fix: always gather the notifications received

Starting to register them after the first call to notifies() is somewhat
weird. We also risk to lose notifications in a case such as:

    conn.execute("listen foo")
    conn.execute("listen bar")
    for n in conn.notifies():
        ...

7 months agofix: don't lose notifications between notifies() calls
Daniele Varrazzo [Sat, 21 Dec 2024 01:16:57 +0000 (02:16 +0100)] 
fix: don't lose notifications between notifies() calls

This allows to stop periodically the generator to run some queries (for
example to LISTEN/UNLISTEN certain channels) and start the generator
again without fearing to lose notification in the window.

Cloes #962.

7 months agoci: move Python packages used for test into before-build script
Daniele Varrazzo [Sun, 22 Dec 2024 00:05:16 +0000 (01:05 +0100)] 
ci: move Python packages used for test into before-build script

7 months agoci(windows): use bash as default shell
Daniele Varrazzo [Sat, 21 Dec 2024 03:50:45 +0000 (04:50 +0100)] 
ci(windows): use bash as default shell

Make packages-bin and tests workflow consistent.

7 months agochore(deps): bump pypa/cibuildwheel in the actions group
dependabot[bot] [Sun, 1 Dec 2024 07:11:57 +0000 (07:11 +0000)] 
chore(deps): bump pypa/cibuildwheel in the actions group

Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel).

Updates `pypa/cibuildwheel` from 2.21.3 to 2.22.0
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.21.3...v2.22.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
7 months agoMerge pull request #966 from trim21/try-vcpkg
Daniele Varrazzo [Sat, 21 Dec 2024 14:31:21 +0000 (15:31 +0100)] 
Merge pull request #966 from trim21/try-vcpkg

Use vcpkg to install libpq on windows

7 months agorefactor: rewrite the pg_config stub in a more idiomatic way 966/head
Daniele Varrazzo [Sat, 21 Dec 2024 02:21:43 +0000 (03:21 +0100)] 
refactor: rewrite the pg_config stub in a more idiomatic way

7 months agoci: use vcpkg to install libpq on windows
Trim21 [Sun, 15 Dec 2024 22:38:08 +0000 (06:38 +0800)] 
ci: use vcpkg to install libpq on windows

7 months agotest(windows): verify that the libpq used is what expected
Daniele Varrazzo [Mon, 16 Dec 2024 12:44:37 +0000 (13:44 +0100)] 
test(windows): verify that the libpq used is what expected

7 months agofix: call the notifies callback while the notifies generator is used
Daniele Varrazzo [Fri, 20 Dec 2024 12:12:54 +0000 (13:12 +0100)] 
fix: call the notifies callback while the notifies generator is used

Close #972

7 months agoci: bump runner to macOS 13 973/head
Daniele Varrazzo [Fri, 20 Dec 2024 13:57:37 +0000 (14:57 +0100)] 
ci: bump runner to macOS 13

macOS 12 runners are now deprecated.

7 months agochore: bump mypy version to 1.14
Daniele Varrazzo [Fri, 20 Dec 2024 17:55:19 +0000 (18:55 +0100)] 
chore: bump mypy version to 1.14

8 months agodocs: drop duplicate, out of place, statement
Daniele Varrazzo [Sat, 23 Nov 2024 23:26:57 +0000 (00:26 +0100)] 
docs: drop duplicate, out of place, statement

8 months agodocs(pool): fix ticket link in news page
Daniele Varrazzo [Sat, 16 Nov 2024 20:40:45 +0000 (21:40 +0100)] 
docs(pool): fix ticket link in news page

8 months agodocs: extend `libpq` install instructions for cross-platform use
Máté Gyöngyösi [Fri, 15 Nov 2024 13:58:02 +0000 (14:58 +0100)] 
docs: extend `libpq` install instructions for cross-platform use

See #950.

8 months agobuild_macos_arm64.sh: Upgrade to Python 3.13 production release
Christian Clauss [Tue, 15 Oct 2024 07:40:25 +0000 (09:40 +0200)] 
build_macos_arm64.sh: Upgrade to Python 3.13 production release

8 months agochore: bump psycopg_pool package version to 3.2.4
Daniele Varrazzo [Thu, 14 Nov 2024 13:56:03 +0000 (14:56 +0100)] 
chore: bump psycopg_pool package version to 3.2.4

8 months agofix(pool): print a warning if gather times out on del
Daniele Varrazzo [Wed, 13 Nov 2024 13:19:12 +0000 (14:19 +0100)] 
fix(pool): print a warning if gather times out on del

In Python 3.13 something changed on interpreter shutdown and now
stopping threads on __del__ fails.

See #930, #954.

8 months agodocs(pool): note compatibility with Python 3.13
Daniele Varrazzo [Sun, 15 Sep 2024 11:53:37 +0000 (13:53 +0200)] 
docs(pool): note compatibility with Python 3.13

8 months agochore: gitignore IntelliJ .idea file
Daniele Varrazzo [Thu, 14 Nov 2024 09:32:58 +0000 (10:32 +0100)] 
chore: gitignore IntelliJ .idea file

8 months agoci: bump SQLAlchemy test versions
Daniele Varrazzo [Wed, 13 Nov 2024 14:07:39 +0000 (15:07 +0100)] 
ci: bump SQLAlchemy test versions

8 months agodocs(pool): suggest closing the pool explicitly
Daniele Varrazzo [Wed, 13 Nov 2024 13:31:32 +0000 (14:31 +0100)] 
docs(pool): suggest closing the pool explicitly

On Python 3.13 threads may fail to stop.

See #930, #954.

8 months agotest(numpy): account for 32 bits systems in size checks
Stanley Kudrow [Thu, 31 Oct 2024 06:23:11 +0000 (09:23 +0300)] 
test(numpy): account for 32 bits systems in size checks

9 months agochore(deps): bump pypa/cibuildwheel in the actions group
dependabot[bot] [Fri, 1 Nov 2024 07:25:31 +0000 (07:25 +0000)] 
chore(deps): bump pypa/cibuildwheel in the actions group

Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel).

Updates `pypa/cibuildwheel` from 2.21.1 to 2.21.3
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.21.1...v2.21.3)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agorefactor: use StopIteration.value instead of args as return after waiting
Daniele Varrazzo [Wed, 30 Oct 2024 16:41:49 +0000 (17:41 +0100)] 
refactor: use StopIteration.value instead of args as return after waiting

Work around the issue reported in https://github.com/python/mypy/issues/18073

Thank you very much, @brianschubert, for pointing it out!

9 months agoMerge pull request #940 from 0xTiger/patch-1
Daniele Varrazzo [Wed, 30 Oct 2024 14:51:24 +0000 (15:51 +0100)] 
Merge pull request #940 from 0xTiger/patch-1

docs: ensure operator in text and code example matches

9 months agodocs: further wordsmith around IS/DISTINCT 940/head
Daniele Varrazzo [Wed, 30 Oct 2024 14:44:29 +0000 (15:44 +0100)] 
docs: further wordsmith around IS/DISTINCT

Also restore lost link reference.

9 months agodocs: explicit wording to clarify correspondence between `IS NOT DISTINCT FROM` ...
0xTiger [Fri, 25 Oct 2024 17:50:11 +0000 (18:50 +0100)] 
docs: explicit wording to clarify correspondence between `IS NOT DISTINCT FROM` & `IS`

9 months agochore: ignore type error reported by mypy 1.12, 1.13
Daniele Varrazzo [Wed, 30 Oct 2024 13:26:34 +0000 (14:26 +0100)] 
chore: ignore type error reported by mypy 1.12, 1.13

If a generator returns None, the StopIteration.args tuple is empty. The
fact we explicitly checks for it and in that case we return none looks
now an error for Mypy.

I don't see an obvious way around it.

Maybe related to https://github.com/python/mypy/issues/1933 which is an
historical issue (opened in 2016).

Reported in https://github.com/python/mypy/issues/18073

9 months agotest: avoid peer authentication in password change test
Daniele Varrazzo [Wed, 30 Oct 2024 13:12:09 +0000 (14:12 +0100)] 
test: avoid peer authentication in password change test

9 months agodocs: document the version when TransactionTimeout was added
Daniele Varrazzo [Fri, 11 Oct 2024 00:29:30 +0000 (02:29 +0200)] 
docs: document the version when TransactionTimeout was added

10 months agotest: mark more tests as 'timing'
Augustin Trancart [Thu, 26 Sep 2024 08:32:26 +0000 (10:32 +0200)] 
test: mark more tests as 'timing'

When the machine is under load, any tests relying on a timeout or a sleep is
subject to fail. Let's mark some of them as 'timing'.

10 months agochore: bump psycopg package version to 3.2.4.dev1
Daniele Varrazzo [Sun, 29 Sep 2024 21:22:20 +0000 (23:22 +0200)] 
chore: bump psycopg package version to 3.2.4.dev1

10 months agochore: bump psycopg package version to 3.2.3 3.2.3
Daniele Varrazzo [Sun, 29 Sep 2024 15:54:40 +0000 (17:54 +0200)] 
chore: bump psycopg package version to 3.2.3

10 months agoMerge pull request #917 from psycopg/pg17
Daniele Varrazzo [Sun, 29 Sep 2024 15:42:09 +0000 (17:42 +0200)] 
Merge pull request #917 from psycopg/pg17

Create binary packages with PostgreSQL 17 libpq

10 months agodocs: mention PostgreSQL 17 in binary packages in the news file 917/head
Daniele Varrazzo [Sun, 29 Sep 2024 15:38:56 +0000 (17:38 +0200)] 
docs: mention PostgreSQL 17 in binary packages in the news file

10 months agoci: install flex to build libpq
Daniele Varrazzo [Sat, 28 Sep 2024 22:43:29 +0000 (00:43 +0200)] 
ci: install flex to build libpq

Required from PostgreSQL 17

10 months agoci(macos): fix dylib path for postgres 17 from brew
Daniele Varrazzo [Sat, 28 Sep 2024 16:50:23 +0000 (18:50 +0200)] 
ci(macos): fix dylib path for postgres 17 from brew

Libraries are now installed under `lib/postgresql/` under the brew
package directory instead of just `lib`.

10 months agoci(macos): update brew to install PostgreSQL 17
Daniele Varrazzo [Sat, 28 Sep 2024 12:40:47 +0000 (14:40 +0200)] 
ci(macos): update brew to install PostgreSQL 17

At the moment CI failed with:

    No available formula with the name "postgresql@17". Did you mean
    postgresql@16, postgresql@15, postgresql@14, postgresql@13,
    postgresql@12, postgresql@11 or postgresql@10?

But the formula appears available at https://formulae.brew.sh/formula/postgresql@17

So probably it's a problem that will disappear in a few days.

10 months agoci: bump to PostgreSQL 17 in binary packages
Daniele Varrazzo [Sat, 28 Sep 2024 11:20:54 +0000 (13:20 +0200)] 
ci: bump to PostgreSQL 17 in binary packages

It is not possible at the moment to Upgrade OpenSSL to 3.3.2 because of
https://github.com/openssl/openssl/issues/25366

Close #852

10 months agochore: add PostgreSQL 17 TRANSACTION_TIMEOUT error
Daniele Varrazzo [Sat, 28 Sep 2024 11:22:54 +0000 (13:22 +0200)] 
chore: add PostgreSQL 17 TRANSACTION_TIMEOUT error

10 months agoci: Add PostgreSQL 17 to CI test grid, remove PostgreSQL 11
Daniele Varrazzo [Sat, 28 Sep 2024 11:51:16 +0000 (13:51 +0200)] 
ci: Add PostgreSQL 17 to CI test grid, remove PostgreSQL 11

10 months agofix(windows): resolve absolute path to libpq
Alessandro Della Villa [Sat, 28 Sep 2024 14:12:40 +0000 (16:12 +0200)] 
fix(windows): resolve absolute path to libpq

Might solve the problem mentioned in the comments in #912.

10 months agotest(crdb): fix or skip tests that now run because libpq 17 is available
Daniele Varrazzo [Sat, 28 Sep 2024 16:01:22 +0000 (18:01 +0200)] 
test(crdb): fix or skip tests that now run because libpq 17 is available

10 months agotest: fix compatibility of tests with Python 3.8
Daniele Varrazzo [Sat, 28 Sep 2024 11:52:57 +0000 (13:52 +0200)] 
test: fix compatibility of tests with Python 3.8

Avoid using the |= operator on dictionaries, which is unsupported on
Python 3.8.

The test started mysteriously to fail... Turned out that it hadn't run
so far on Python 3.8 because the "latest" libpq was v16, but when it
switched to v17 it started to be executed.

10 months agofix: fix typo in PGRES_PIPELINE_ABORTED enum
Daniele Varrazzo [Sat, 28 Sep 2024 11:32:12 +0000 (13:32 +0200)] 
fix: fix typo in PGRES_PIPELINE_ABORTED enum

Only in Cython and not explicitly used. Python had the right name already.

10 months agochore: test readme cleanup
Daniele Varrazzo [Sat, 28 Sep 2024 11:16:10 +0000 (13:16 +0200)] 
chore: test readme cleanup

10 months agodocs(install): reorganise install page disclaimer
Daniele Varrazzo [Sat, 21 Sep 2024 20:16:15 +0000 (22:16 +0200)] 
docs(install): reorganise install page disclaimer

Show first the happy path and a GOTO usage, then all the possible
reasons why you are unhappy.

(I just learned that this is referred to as the Anna Karenina
principle).

10 months agodocs: polish grammar in the install disclaimer
Daniele Varrazzo [Sat, 21 Sep 2024 20:11:10 +0000 (22:11 +0200)] 
docs: polish grammar in the install disclaimer

10 months agodoc: explain better that binary packages are on a best-effort basis
Daniele Varrazzo [Sat, 21 Sep 2024 18:29:58 +0000 (20:29 +0200)] 
doc: explain better that binary packages are on a best-effort basis

Close #912.

10 months agochore: bump psycopg package version to 3.2.3.dev1
Daniele Varrazzo [Sat, 21 Sep 2024 17:14:45 +0000 (19:14 +0200)] 
chore: bump psycopg package version to 3.2.3.dev1

10 months agoci: fix SQLAlchemy 3rd party test
Daniele Varrazzo [Sun, 15 Sep 2024 17:14:46 +0000 (19:14 +0200)] 
ci: fix SQLAlchemy 3rd party test

Something changed upstream? The package is not found in SQLAlchemy case,
needs sqlalchemy.

10 months agochore: bump psycopg package version to 3.2.2 3.2.2
Daniele Varrazzo [Sun, 15 Sep 2024 11:40:47 +0000 (13:40 +0200)] 
chore: bump psycopg package version to 3.2.2

10 months agoMerge pull request #890 from edgarrmondragon/build-cp313-wheels
Daniele Varrazzo [Sun, 15 Sep 2024 11:39:18 +0000 (13:39 +0200)] 
Merge pull request #890 from edgarrmondragon/build-cp313-wheels

Build Python 3.13 wheels

10 months agodocs: add update instructions for new major Python releases 890/head
Edgar Ramírez-Mondragón [Thu, 15 Aug 2024 00:21:18 +0000 (18:21 -0600)] 
docs: add update instructions for new major Python releases

10 months agodocs: add Python 3.13 support news entries
Edgar Ramírez-Mondragón [Thu, 15 Aug 2024 00:13:43 +0000 (18:13 -0600)] 
docs: add Python 3.13 support news entries

10 months agodocs: mention Python 3.13 supported in install docs
Edgar Ramírez-Mondragón [Thu, 15 Aug 2024 00:11:38 +0000 (18:11 -0600)] 
docs: mention Python 3.13 supported in install docs

10 months agochore: add Python 3.13 to trove classifiers
Edgar Ramírez-Mondragón [Thu, 15 Aug 2024 00:11:11 +0000 (18:11 -0600)] 
chore: add Python 3.13 to trove classifiers

10 months agoci: build Python 3.13 wheels
Edgar Ramírez-Mondragón [Thu, 8 Aug 2024 17:44:37 +0000 (11:44 -0600)] 
ci: build Python 3.13 wheels

Related: https://github.com/psycopg/psycopg/issues/889

10 months agodocs: replace fastapi events with lifespan
Vinz [Sat, 14 Sep 2024 13:31:04 +0000 (15:31 +0200)] 
docs: replace fastapi events with lifespan

10 months agochore(deps): bump pypa/cibuildwheel in the actions group
dependabot[bot] [Sun, 1 Sep 2024 07:59:50 +0000 (07:59 +0000)] 
chore(deps): bump pypa/cibuildwheel in the actions group

Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel).

Updates `pypa/cibuildwheel` from 2.19.2 to 2.20.0
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.19.2...v2.20.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agoFix typo in cursor table
Nils K [Sun, 25 Aug 2024 10:59:16 +0000 (12:59 +0200)] 
Fix typo in cursor table

11 months agodocs: fix typo in Basic module usage
Artemy Vakhrushev [Mon, 19 Aug 2024 13:59:12 +0000 (18:59 +0500)] 
docs: fix typo in Basic module usage

11 months agochore: drop debug logging in pq import attempts
Daniele Varrazzo [Thu, 8 Aug 2024 11:59:02 +0000 (13:59 +0200)] 
chore: drop debug logging in pq import attempts

It confuses people who enable logging too broadly. See #807.

11 months agochore(deps): bump pypa/cibuildwheel in the actions group
dependabot[bot] [Thu, 1 Aug 2024 07:26:42 +0000 (07:26 +0000)] 
chore(deps): bump pypa/cibuildwheel in the actions group

Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel).

Updates `pypa/cibuildwheel` from 2.19.1 to 2.19.2
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.19.1...v2.19.2)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
12 months agorefactor(c): avoid violating strict aliasing rule in interval binary loader 879/head
Daniele Varrazzo [Thu, 25 Jul 2024 09:57:02 +0000 (11:57 +0200)] 
refactor(c): avoid violating strict aliasing rule in interval binary loader

See conversation in #877

12 months agoMerge pull request #877 from psycopg/fix-warnings
Daniele Varrazzo [Wed, 24 Jul 2024 19:56:12 +0000 (21:56 +0200)] 
Merge pull request #877 from psycopg/fix-warnings

Fix warnings

12 months agorefactor(c): more idiomatic type-punned pointer warning workaround 877/head
Daniele Varrazzo [Wed, 24 Jul 2024 08:37:30 +0000 (10:37 +0200)] 
refactor(c): more idiomatic type-punned pointer warning workaround

We are using memcpy in all the other cases.

12 months agochore(c): drop warnings related to breaking strict-aliasing rules
Daniele Varrazzo [Wed, 24 Jul 2024 08:32:32 +0000 (10:32 +0200)] 
chore(c): drop warnings related to breaking strict-aliasing rules

12 months agochore(c): drop warnings related to discarding const qualifiers
Daniele Varrazzo [Wed, 24 Jul 2024 08:31:00 +0000 (10:31 +0200)] 
chore(c): drop warnings related to discarding const qualifiers