]> git.ipfire.org Git - thirdparty/psycopg.git/log
thirdparty/psycopg.git
13 months agochore: bump psycopg package version to 3.1.20 maint-3.1 3.1.20
Daniele Varrazzo [Sat, 29 Jun 2024 18:20:26 +0000 (20:20 +0200)] 
chore: bump psycopg package version to 3.1.20

13 months agoMerge branch 'update-libs-3.1' into maint-3.1
Daniele Varrazzo [Fri, 28 Jun 2024 16:48:59 +0000 (18:48 +0200)] 
Merge branch 'update-libs-3.1' into maint-3.1

13 months agodocs: add release note about OpenSSL 3.3.x
Daniele Varrazzo [Wed, 26 Jun 2024 13:35:19 +0000 (15:35 +0200)] 
docs: add release note about OpenSSL 3.3.x

13 months agochore: bump ldap version to 2.6.8
Daniele Varrazzo [Sun, 23 Jun 2024 21:46:43 +0000 (23:46 +0200)] 
chore: bump ldap version to 2.6.8

13 months agochore: bump openssl to 3.3.1
Daniele Varrazzo [Sun, 23 Jun 2024 21:45:51 +0000 (23:45 +0200)] 
chore: bump openssl to 3.3.1

Drop fallback version in build_libpq.sh script. It was useful to save
some typing in development but now it is confusing to have two versions.

13 months agoci: more robust libpq build script
Daniele Varrazzo [Sun, 23 Jun 2024 21:46:24 +0000 (23:46 +0200)] 
ci: more robust libpq build script

13 months agoMerge branch 'tomllib' into maint-3.1
Daniele Varrazzo [Fri, 28 Jun 2024 16:40:03 +0000 (18:40 +0200)] 
Merge branch 'tomllib' into maint-3.1

13 months agostyle: shorter line in pyproject.toml
Daniele Varrazzo [Fri, 28 Jun 2024 16:35:26 +0000 (17:35 +0100)] 
style: shorter line in pyproject.toml

13 months agobuild: avoid installing tomli on recent python
Eli Schwartz [Wed, 26 Jun 2024 03:22:17 +0000 (23:22 -0400)] 
build: avoid installing tomli on recent python

It is in the stdlib. No need to have wheel building require downloading
yet another build dependency.

13 months agoMerge branch 'ci-binary-build-fix-3.1' into maint-3.1
Daniele Varrazzo [Mon, 24 Jun 2024 09:37:42 +0000 (11:37 +0200)] 
Merge branch 'ci-binary-build-fix-3.1' into maint-3.1

13 months agochore: drop Python 3.7 packages build for macOS
Daniele Varrazzo [Mon, 24 Jun 2024 09:28:32 +0000 (11:28 +0200)] 
chore: drop Python 3.7 packages build for macOS

The build infrastructure doesn't seem to support it anymore.

13 months agoci: set macOS deployment target env vars
Daniele Varrazzo [Sun, 23 Jun 2024 21:00:23 +0000 (23:00 +0200)] 
ci: set macOS deployment target env vars

Seems required moving from cibuildwheel 2.16.5 to maybe 2.18.1.

13 months agochore: bump libpq to 16.3
Daniele Varrazzo [Sun, 23 Jun 2024 20:44:52 +0000 (22:44 +0200)] 
chore: bump libpq to 16.3

Mostly with the intent to zap the cache.

13 months agoci: add openssl-dev dependency to build musllinux packages
Daniele Varrazzo [Sun, 23 Jun 2024 20:39:00 +0000 (22:39 +0200)] 
ci: add openssl-dev dependency to build musllinux packages

13 months agochore: bump cibuildwheel version
Daniele Varrazzo [Sun, 23 Jun 2024 14:03:02 +0000 (16:03 +0200)] 
chore: bump cibuildwheel version

14 months agofix(copy): fix count of chars to escape
Daniele Varrazzo [Wed, 29 May 2024 19:45:57 +0000 (21:45 +0200)] 
fix(copy): fix count of chars to escape

We missed to reset the number of chars to escape at every field. As a
consequence, we end up resizing and scanning all the fields after the
first one requiring an escape and allocating a bit more memory than
needed.

14 months agochore(deps): bump pypa/cibuildwheel in the actions group
dependabot[bot] [Thu, 30 May 2024 20:33:57 +0000 (20:33 +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.17.0 to 2.18.1
- [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.17.0...v2.18.1)

---
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>
14 months agoci: merge all produced artifacts into a single artifact for ease of downloading
Trenton Holmes [Sat, 18 May 2024 20:21:04 +0000 (13:21 -0700)] 
ci: merge all produced artifacts into a single artifact for ease of downloading

14 months agoci: updates action versions and add dependabot to check monthly for updates
Trenton Holmes [Sat, 18 May 2024 01:41:51 +0000 (18:41 -0700)] 
ci: updates action versions and add dependabot to check monthly for updates

14 months agochore: fix typo in comment
Daniele Varrazzo [Mon, 27 May 2024 14:20:38 +0000 (16:20 +0200)] 
chore: fix typo in comment

14 months agofix: use the simple query protocol to execute BEGIN/COMMIT out of pipeline
Daniele Varrazzo [Tue, 14 May 2024 11:18:40 +0000 (13:18 +0200)] 
fix: use the simple query protocol to execute BEGIN/COMMIT out of pipeline

We started using the extended protocol in e5079184 to fix #350, but,
probably to keep symmetry, we also changed the behaviour out of the
pipeline.

This turns out to be a problem for people connecting to the PgBouncer
admin console. They can use the `ClientCursor`, which tries to use the
simple protocol as much as it can, but they currently have to use
autocommit. With this changeset autocommit shouldn't be needed anymore.
See #808.

14 months agochore: don't codespell html files
Daniele Varrazzo [Tue, 14 May 2024 11:29:50 +0000 (13:29 +0200)] 
chore: don't codespell html files

14 months agochore: bump psycopg package version to 3.1.20.dev1
Daniele Varrazzo [Sat, 11 May 2024 15:32:17 +0000 (17:32 +0200)] 
chore: bump psycopg package version to 3.1.20.dev1

14 months agochore: bump psycopg package version to 3.1.19 3.1.19
Daniele Varrazzo [Fri, 10 May 2024 00:01:14 +0000 (02:01 +0200)] 
chore: bump psycopg package version to 3.1.19

14 months agochore(crdb): upgrade types to v23.1
Daniele Varrazzo [Thu, 9 May 2024 00:33:34 +0000 (02:33 +0200)] 
chore(crdb): upgrade types to v23.1

14 months agoci(macos): test and build macOS packages on M1 runners
Daniele Varrazzo [Tue, 9 Apr 2024 23:57:50 +0000 (01:57 +0200)] 
ci(macos): test and build macOS packages on M1 runners

Separate macos runners because:

The macos-14 runner can build amd64 images, but doesn't have Python <
3.10.

The macos-12 runner can only build x86_64 images.

Run Postgres from CI rather than from cibuildwheel, as cibw won't use a
docker image on macOS anyway. It makes it more uniform w.r.t. other
runners and doesn't require a "before" script.

14 months agoMerge branch 'fix-745' into maint-3.1
Daniele Varrazzo [Wed, 8 May 2024 09:55:26 +0000 (11:55 +0200)] 
Merge branch 'fix-745' into maint-3.1

14 months agoperf(copy): only flush at every row on copy on macOS
Daniele Varrazzo [Mon, 6 May 2024 16:43:10 +0000 (18:43 +0200)] 
perf(copy): only flush at every row on copy on macOS

Using some benchmark, it seems on Linux performances are worse.

Must look into how Windows behave.

14 months agoImprove performance of copy
Andrew Kane [Mon, 4 Mar 2024 22:34:56 +0000 (14:34 -0800)] 
Improve performance of copy

14 months agotest(copy): add minimal copy benchmark framework
Daniele Varrazzo [Fri, 3 May 2024 11:08:11 +0000 (13:08 +0200)] 
test(copy): add minimal copy benchmark framework

15 months agoMerge branch 'fix-734' into maint-3.1
Daniele Varrazzo [Sun, 21 Apr 2024 01:29:06 +0000 (03:29 +0200)] 
Merge branch 'fix-734' into maint-3.1

15 months agofix(c): solve undefined behaviour caused by unaligned access
Daniele Varrazzo [Sun, 11 Feb 2024 01:34:20 +0000 (02:34 +0100)] 
fix(c): solve undefined behaviour caused by unaligned access

Close #734

15 months agoci: add test to check for misaligned memory access
Daniele Varrazzo [Wed, 10 Apr 2024 23:24:02 +0000 (01:24 +0200)] 
ci: add test to check for misaligned memory access

15 months agofix: fix handling of floating point values for connect_timeout
Daniele Varrazzo [Thu, 18 Apr 2024 01:38:17 +0000 (03:38 +0200)] 
fix: fix handling of floating point values for connect_timeout

15 months agoMerge pull request #758 from psycopg/fix-752
Daniele Varrazzo [Mon, 1 Apr 2024 22:43:16 +0000 (23:43 +0100)] 
Merge pull request #758 from psycopg/fix-752

More careful stripping of error prefixes

15 months agochore: move codespell configuration to pyproject.toml 758/head
Daniele Varrazzo [Sun, 31 Mar 2024 22:13:20 +0000 (22:13 +0000)] 
chore: move codespell configuration to pyproject.toml

Configuration updated to ignore false positives in the errors l10n regexp.

15 months agofix: more careful stripping of error prefixes
Daniele Varrazzo [Sun, 31 Mar 2024 20:57:42 +0000 (20:57 +0000)] 
fix: more careful stripping of error prefixes

Only strip the known prefixes, both in English and in the currently
known localizations.

Added script to generate regexp to match every backend localization. The
script was executed on PostgreSQL commit f4ad0021af (on master branch,
before v17).

Close #752.

15 months agotest: add pool package to django tests
Daniele Varrazzo [Sun, 31 Mar 2024 22:22:07 +0000 (22:22 +0000)] 
test: add pool package to django tests

It seems needed in the current main branch.

16 months agodocs: fix a typo in FinishedPGconn docstring
Denis Laxalde [Fri, 8 Mar 2024 10:00:34 +0000 (11:00 +0100)] 
docs: fix a typo in FinishedPGconn docstring

17 months agofix: avoid to create reference loops in datetime adapters
Daniele Varrazzo [Wed, 7 Feb 2024 01:16:06 +0000 (01:16 +0000)] 
fix: avoid to create reference loops in datetime adapters

Setting the reference to a bound method in the state creates a reference
loop.

The issue is minimal because the gc will be able to break these loops
anyway and because it mostly happens with exotic or unsupported
date/interval styles.

17 months agochore: bump psycopg package version to 3.1.19.dev1
Daniele Varrazzo [Sun, 4 Feb 2024 21:12:19 +0000 (21:12 +0000)] 
chore: bump psycopg package version to 3.1.19.dev1

17 months agochore: bump psycopg package version to 3.1.18 3.1.18
Daniele Varrazzo [Sun, 4 Feb 2024 17:42:54 +0000 (17:42 +0000)] 
chore: bump psycopg package version to 3.1.18

17 months agofix(c): drop spurious loop break in pipeline_communicate
Daniele Varrazzo [Fri, 4 Nov 2022 22:17:13 +0000 (23:17 +0100)] 
fix(c): drop spurious loop break in pipeline_communicate

This makes the Python and the C implementation more similar. The
difference was unexpected but apparently harmless. See #431

17 months agochore: bump cibuildwheel version
Daniele Varrazzo [Sun, 4 Feb 2024 12:14:46 +0000 (12:14 +0000)] 
chore: bump cibuildwheel version

It should fix an error building Windows wheel
https://github.com/pypa/cibuildwheel/issues/1740

17 months agochore: bump checkout action to v4
Daniele Varrazzo [Sun, 4 Feb 2024 12:00:47 +0000 (12:00 +0000)] 
chore: bump checkout action to v4

18 months agodocs: fix tickets format
Daniele Varrazzo [Mon, 29 Jan 2024 02:23:28 +0000 (02:23 +0000)] 
docs: fix tickets format

18 months agoMerge branch 'musl-ctypes' into maint-3.1
Daniele Varrazzo [Mon, 29 Jan 2024 02:24:24 +0000 (02:24 +0000)] 
Merge branch 'musl-ctypes' into maint-3.1

18 months agodocs: mention musl-ctypes workaround in news file
Daniele Varrazzo [Mon, 29 Jan 2024 00:24:05 +0000 (00:24 +0000)] 
docs: mention musl-ctypes workaround in news file

18 months agofix: add `libc.so` fallback for musl systems to the ctypes impl
MichaÅ‚ Górny [Sat, 27 Jan 2024 14:28:34 +0000 (15:28 +0100)] 
fix: add `libc.so` fallback for musl systems to the ctypes impl

Add a fallback to `libc.so` library name to fix loading the ctypes
implementation on musl systems.  On musl, `find_library("c")` does
not work (the problem has been reported to CPython in 2014, and has not
been resolved yet), causing the module to fail on `assert libcname`.
Instead, add a fallback to using `libc.so` and let ctypes raise
an exception if such a library does not exist.

18 months agotest: drop ineffective marker on fixture
Daniele Varrazzo [Mon, 29 Jan 2024 00:08:47 +0000 (00:08 +0000)] 
test: drop ineffective marker on fixture

Previously ignored, it has become an error in PyTest 8.

18 months agoMerge branch 'fix-interval-overflow' into maint-3.1
Daniele Varrazzo [Sat, 27 Jan 2024 02:11:36 +0000 (02:11 +0000)] 
Merge branch 'fix-interval-overflow' into maint-3.1

18 months agodocs: add release note about interval overflow fix
Daniele Varrazzo [Sat, 27 Jan 2024 01:29:32 +0000 (01:29 +0000)] 
docs: add release note about interval overflow fix

18 months agofix(c): don't overflow intervals on windows either
Daniele Varrazzo [Sat, 27 Jan 2024 01:09:11 +0000 (01:09 +0000)] 
fix(c): don't overflow intervals on windows either

In MSVC, long is 4 bytes. Should use long long instead. int64_t is more
understandable.

18 months agofix(c): use long for seconds to prevent IntervalLoader from overflowing
Iacami Gevaerd [Tue, 16 Jan 2024 15:13:01 +0000 (12:13 -0300)] 
fix(c): use long for seconds to prevent IntervalLoader from overflowing

if the given interval is too long for a regular int it will become
negative an cause inconsistencies with the regular python implementation

18 months agochore: bump black to 24.1.0
Daniele Varrazzo [Fri, 26 Jan 2024 12:18:58 +0000 (12:18 +0000)] 
chore: bump black to 24.1.0

18 months agoMerge pull request #722 from psycopg/fix-deadlock-on-pipeline-exit
Daniele Varrazzo [Fri, 26 Jan 2024 09:45:14 +0000 (09:45 +0000)] 
Merge pull request #722 from psycopg/fix-deadlock-on-pipeline-exit

Fix deadline on pipeline exit

18 months agofix: force a sync exiting the pipeline mode 722/head
Daniele Varrazzo [Fri, 26 Jan 2024 00:29:29 +0000 (00:29 +0000)] 
fix: force a sync exiting the pipeline mode

Without it there may be a deadlock and we would be waiting to fetch a
result that will never come.

Close #685.

18 months agochore: bump psycopg package version to 3.1.18.dev1
Daniele Varrazzo [Sun, 7 Jan 2024 14:47:30 +0000 (15:47 +0100)] 
chore: bump psycopg package version to 3.1.18.dev1

18 months agoci: revert upload action to v3
Daniele Varrazzo [Sun, 7 Jan 2024 11:49:41 +0000 (12:49 +0100)] 
ci: revert upload action to v3

v4 requires to have every uploaded artifact in a separate directory.

- https://github.com/actions/upload-artifact/issues/478
- https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md

18 months agochore: bump psycopg package version to 3.1.17 3.1.17
Daniele Varrazzo [Sun, 7 Jan 2024 01:41:20 +0000 (02:41 +0100)] 
chore: bump psycopg package version to 3.1.17

18 months agochore(c): add missing enum entries
Daniele Varrazzo [Sat, 6 Jan 2024 19:37:37 +0000 (20:37 +0100)] 
chore(c): add missing enum entries

18 months agodocs: add note about checking enums and docs on PostgreSQL update
Daniele Varrazzo [Sat, 6 Jan 2024 19:36:56 +0000 (20:36 +0100)] 
docs: add note about checking enums and docs on PostgreSQL update

18 months agoMerge branch 'fix-699' into maint-3.1
Daniele Varrazzo [Sat, 6 Jan 2024 19:35:26 +0000 (20:35 +0100)] 
Merge branch 'fix-699' into maint-3.1

18 months agofix: perform multiple attemps if a host name resolve to multiple hosts
Daniele Varrazzo [Sat, 6 Jan 2024 16:24:48 +0000 (17:24 +0100)] 
fix: perform multiple attemps if a host name resolve to multiple hosts

We now perform DNS resolution in Python both in the sync and async code.
Because the two code paths are now very similar, make sure they pass the
same tests.

Close #699.

18 months agorefactor(test): make resolution monkeypatching common fixtures
Daniele Varrazzo [Sat, 6 Jan 2024 16:10:58 +0000 (17:10 +0100)] 
refactor(test): make resolution monkeypatching common fixtures

18 months agorefactor: separate ConnectionInfo object from conninfo module
Daniele Varrazzo [Sat, 6 Jan 2024 14:50:14 +0000 (15:50 +0100)] 
refactor: separate ConnectionInfo object from conninfo module

It was there just because the name is similar, but its purpose is
entirely different.

18 months agochore: upload github actions dependencies
Daniele Varrazzo [Tue, 2 Jan 2024 03:29:48 +0000 (04:29 +0100)] 
chore: upload github actions dependencies

18 months agorefactor: use Self to represent the return from `BaseConnection._connect_gen()`
Daniele Varrazzo [Wed, 3 Jan 2024 02:38:19 +0000 (03:38 +0100)] 
refactor: use Self to represent the return from `BaseConnection._connect_gen()`

18 months agochore: drop unneeded type annotations on self
Daniele Varrazzo [Wed, 3 Jan 2024 02:07:27 +0000 (03:07 +0100)] 
chore: drop unneeded type annotations on self

19 months agorefactor: use typing.Self 710/head
Daniele Varrazzo [Sat, 30 Dec 2023 00:30:39 +0000 (01:30 +0100)] 
refactor: use typing.Self

The object seems available for all the supported Python version and
should avoid problems with PyRight (see #708).

It is not a solution for #308 because we cannot use `Self[Row]`.

19 months agotest: add async driver to sqlalchemy pipeline
Federico Caselli [Mon, 18 Dec 2023 20:31:22 +0000 (21:31 +0100)] 
test: add async driver to sqlalchemy pipeline

19 months agochore: bump psycopg package version to 3.1.17.dev1
Daniele Varrazzo [Tue, 19 Dec 2023 01:27:19 +0000 (02:27 +0100)] 
chore: bump psycopg package version to 3.1.17.dev1

19 months agochore: bump psycopg package version to 3.1.16 3.1.16
Daniele Varrazzo [Tue, 19 Dec 2023 01:07:54 +0000 (02:07 +0100)] 
chore: bump psycopg package version to 3.1.16

19 months agofix: fix empty ports handling in async multiple connection attempts
Daniele Varrazzo [Mon, 18 Dec 2023 23:58:35 +0000 (00:58 +0100)] 
fix: fix empty ports handling in async multiple connection attempts

Close #703.

19 months agochore: bump psycopg package version to 3.1.16.dev1
Daniele Varrazzo [Tue, 19 Dec 2023 00:01:26 +0000 (01:01 +0100)] 
chore: bump psycopg package version to 3.1.16.dev1

19 months agochore: include codespell in dev dependencies
Daniele Varrazzo [Mon, 18 Dec 2023 01:54:26 +0000 (02:54 +0100)] 
chore: include codespell in dev dependencies

19 months agochore: bump psycopg package version to 3.1.15 3.1.15
Daniele Varrazzo [Thu, 14 Dec 2023 03:26:56 +0000 (04:26 +0100)] 
chore: bump psycopg package version to 3.1.15

19 months agoMerge pull request #700 from psycopg/fix-service-file
Daniele Varrazzo [Thu, 14 Dec 2023 03:25:23 +0000 (03:25 +0000)] 
Merge pull request #700 from psycopg/fix-service-file

19 months agorefactor: add compiled_default option to _get_params 700/head
Daniele Varrazzo [Wed, 13 Dec 2023 13:20:49 +0000 (14:20 +0100)] 
refactor: add compiled_default option to _get_params

Make it less awkward to come out with a 5432 when we really want a port
number (in name resolution) but still allow to leave it unspecified to
avoid mangling the conninfo.

19 months agofix: honour the PGLOADBALANCEHOSTS env var
Daniele Varrazzo [Wed, 13 Dec 2023 11:31:13 +0000 (12:31 +0100)] 
fix: honour the PGLOADBALANCEHOSTS env var

19 months agofix: honour the PGCONNECT_TIMEOUT env var
Daniele Varrazzo [Wed, 13 Dec 2023 03:55:51 +0000 (04:55 +0100)] 
fix: honour the PGCONNECT_TIMEOUT env var

19 months agofix: set minimum timeout to 2s
Daniele Varrazzo [Wed, 13 Dec 2023 03:35:48 +0000 (04:35 +0100)] 
fix: set minimum timeout to 2s

This is consistent with what the libpq does.

Move timeout calculation to a function in conninfo module and don't
change the connect_timeout parameter explicitly in the connection
string.

Drop awful drop_default_args_from_conninfo() from tests.

19 months agofix: add debug logging when a connection attempt is discarded
Daniele Varrazzo [Wed, 13 Dec 2023 03:34:40 +0000 (04:34 +0100)] 
fix: add debug logging when a connection attempt is discarded

19 months agorefactor: return lists from conninfo attempt functions
Daniele Varrazzo [Wed, 13 Dec 2023 00:33:04 +0000 (01:33 +0100)] 
refactor: return lists from conninfo attempt functions

19 months agofix: shuffle attempts when one host resolves to more than one IP
Daniele Varrazzo [Wed, 13 Dec 2023 00:03:55 +0000 (01:03 +0100)] 
fix: shuffle attempts when one host resolves to more than one IP

This behaviour (first resolve all the hosts, then shuffle the IPs) mimics
better what the libpq does in non-async mode.

19 months agofix: don't add defaults to connection strings
Daniele Varrazzo [Tue, 12 Dec 2023 19:33:20 +0000 (20:33 +0100)] 
fix: don't add defaults to connection strings

A default such as empty string for host may may shadow values defined in
a service file.

Fix #694.

19 months agofix: fix iteration resolving hosts with multiple IP addresses in async mode
Daniele Varrazzo [Tue, 12 Dec 2023 16:56:37 +0000 (17:56 +0100)] 
fix: fix iteration resolving hosts with multiple IP addresses in async mode

Fix #695 (not 100% sure, but probably).

19 months agotest: mark a couple of test slow
Daniele Varrazzo [Tue, 12 Dec 2023 17:02:22 +0000 (18:02 +0100)] 
test: mark a couple of test slow

Sub-second, but noticeable glitches in my stream of green dots.

19 months agotest: mark flaky ref count tests
nialov [Mon, 4 Dec 2023 17:33:46 +0000 (19:33 +0200)] 
test: mark flaky ref count tests

All tests that have the 'gc' fixture are now marked with the refcount mark. The
reasoning is that they demonstrate flaky behaviour and disabling them in
certain CI is necessary to ensure reliable testing. See #692

19 months agodocs: fix doc about the module gevent needs to patch
Daniele Varrazzo [Mon, 4 Dec 2023 09:35:40 +0000 (10:35 +0100)] 
docs: fix doc about the module gevent needs to patch

19 months agochore: bump psycopg package version to 3.1.15.dev1
Daniele Varrazzo [Sat, 2 Dec 2023 09:32:54 +0000 (10:32 +0100)] 
chore: bump psycopg package version to 3.1.15.dev1

19 months agochore: bump psycopg package version to 3.1.14 3.1.14
Daniele Varrazzo [Sat, 2 Dec 2023 02:20:04 +0000 (03:20 +0100)] 
chore: bump psycopg package version to 3.1.14

19 months agoMerge branch 'pypy-3.1' into maint-3.1
Daniele Varrazzo [Sat, 2 Dec 2023 02:19:45 +0000 (03:19 +0100)] 
Merge branch 'pypy-3.1' into maint-3.1

19 months agotest: skip some tests that raise an error on pypy 3.9
Daniele Varrazzo [Sat, 2 Dec 2023 01:56:35 +0000 (02:56 +0100)] 
test: skip some tests that raise an error on pypy 3.9

The error is:

    anyio/_backends/_asyncio.py:2039: in _cancel_all_tasks
        raise cast(BaseException, task.exception())
    ...
    >               result = coro.throw(exc)
    E               RuntimeError: can't do async_generator.athrow().throw()

The error only happens on Pypy 3.9, and doesn't happen on master, only
in the maint 3.1 branch. 3.1 uses anyio < 4, master uses anyio >= 4, so
I would say that the error is limited to only this combination and that
it is an anyio bug.

The problem affects just two tests, so let's just skip them. Whatever.

19 months agochore: add support for PyPy.
Nick Pope [Tue, 28 Nov 2023 12:46:59 +0000 (12:46 +0000)] 
chore: add support for PyPy.

19 months agoMerge branch 'fix-gevent' into maint-3.1
Daniele Varrazzo [Fri, 1 Dec 2023 23:40:56 +0000 (00:40 +0100)] 
Merge branch 'fix-gevent' into maint-3.1

19 months agorefactor: use `yield from` in connections attempts
Daniele Varrazzo [Thu, 30 Nov 2023 09:11:46 +0000 (10:11 +0100)] 
refactor: use `yield from` in connections attempts

19 months agoci: test gevent integration
Daniele Varrazzo [Thu, 30 Nov 2023 10:23:27 +0000 (11:23 +0100)] 
ci: test gevent integration

19 months agofix: ensure gevent collaboration
Daniele Varrazzo [Thu, 30 Nov 2023 09:05:33 +0000 (10:05 +0100)] 
fix: ensure gevent collaboration

Close #527

19 months agotest: let pytest show more info in summary
Denis Laxalde [Thu, 30 Nov 2023 20:01:01 +0000 (21:01 +0100)] 
test: let pytest show more info in summary

We add '-ra' to pytest options so as to get report about "(a)ll except
passed" tests. This is in particular useful to get the detailed message
about why some tests got skipped (especially useful in CI).