]> git.ipfire.org Git - thirdparty/psycopg.git/log
thirdparty/psycopg.git
3 years agoDrop Cursor._set_results()
Daniele Varrazzo [Sun, 2 Jan 2022 18:22:34 +0000 (19:22 +0100)] 
Drop Cursor._set_results()

Split it into a _check_results() and leave the caller manage the cursor state.

3 years agoShorten traceback on executemany
Daniele Varrazzo [Sun, 2 Jan 2022 19:06:45 +0000 (20:06 +0100)] 
Shorten traceback on executemany

3 years agoFix typo in comment
Daniele Varrazzo [Sun, 2 Jan 2022 18:59:02 +0000 (19:59 +0100)] 
Fix typo in comment

3 years agoFix test suite to run on database in locales different from English
Daniele Varrazzo [Sun, 2 Jan 2022 17:58:17 +0000 (18:58 +0100)] 
Fix test suite to run on database in locales different from English

3 years agoNote in news file that 3.0.8 is still unreleased
Daniele Varrazzo [Sun, 2 Jan 2022 17:03:08 +0000 (18:03 +0100)] 
Note in news file that 3.0.8 is still unreleased

3 years agoFix spurious warning about variable referenced before assignment
Daniele Varrazzo [Sun, 2 Jan 2022 16:54:36 +0000 (17:54 +0100)] 
Fix spurious warning about variable referenced before assignment

3 years agoAdd flake8 configuration in other package dirs
Daniele Varrazzo [Sun, 2 Jan 2022 15:57:47 +0000 (16:57 +0100)] 
Add flake8 configuration in other package dirs

Vim ALE is confused otherwise. I don't really get how is that it picks
the package directory as the starting one (maybe it finds the setup.py)?

3 years agoChange type of `wait` in `pool_async.py` 195/head
Nikita Sobolev [Sun, 2 Jan 2022 11:51:11 +0000 (14:51 +0300)] 
Change type of `wait` in `pool_async.py`

Will become an incompatible type in assignment with the release of
https://github.com/python/typeshed/pull/6783

3 years agoFix py_codecs data type
Daniele Varrazzo [Sun, 2 Jan 2022 15:37:09 +0000 (16:37 +0100)] 
Fix py_codecs data type

It doesn't contain str anymore since 3.0.4.

A stricter definition revealed a couple of wrong usages of the mapping.
Use more consistently the higher level `conninfo_encoding()` function
instead of directly the mapping.

3 years agoUse conninfo encoding to encode errors on connection
Daniele Varrazzo [Sun, 2 Jan 2022 14:37:54 +0000 (15:37 +0100)] 
Use conninfo encoding to encode errors on connection

PostgreSQL returns connection errors in the encoding specified in
lc_messages (e.g. EUC-JP for a server with `lc_messages=ja_JP.EUC-JP`).
However, because we don't have a connection, the message was decoded in
the fallback utf-8.

If the client has specified a client_encoding, use it to decode the
error message. Be more lenient than usual to look up the encoding
(because it is not normalised by the server and we don't care about
performance as this only happens on error handling). As for any other
error messages, still use an error=replace policy to avoid exploding
reporting an error in the wrong encoding.

Close #194.

3 years agoFix typo: a raw data -> raw data
Daniele Varrazzo [Wed, 29 Dec 2021 21:42:58 +0000 (22:42 +0100)] 
Fix typo: a raw data -> raw data

3 years agoFix doc link to transactions management
Daniele Varrazzo [Wed, 29 Dec 2021 21:32:41 +0000 (22:32 +0100)] 
Fix doc link to transactions management

Also, "transactions", not "transaction".

3 years agoAdd note about installing libpq via psql
Daniele Varrazzo [Fri, 24 Dec 2021 07:59:31 +0000 (08:59 +0100)] 
Add note about installing libpq via psql

3 years agoMerge branch 'dependencies-bounds'
Daniele Varrazzo [Thu, 23 Dec 2021 17:26:29 +0000 (18:26 +0100)] 
Merge branch 'dependencies-bounds'

3 years agoAdd constraint file to test dependencies minimum version
Daniele Varrazzo [Thu, 23 Dec 2021 15:34:49 +0000 (16:34 +0100)] 
Add constraint file to test dependencies minimum version

3 years agoSpecify test/dev dependencies only at minor level
Daniele Varrazzo [Thu, 23 Dec 2021 15:33:42 +0000 (16:33 +0100)] 
Specify test/dev dependencies only at minor level

Where possible. pytest 6.2.5 is required by Python 3.10.

3 years agoSpecify lower bound for required backport packages
Daniele Varrazzo [Thu, 23 Dec 2021 15:32:41 +0000 (16:32 +0100)] 
Specify lower bound for required backport packages

3 years agoRemove upper bound from dependencies
Daniele Varrazzo [Thu, 23 Dec 2021 01:54:05 +0000 (02:54 +0100)] 
Remove upper bound from dependencies

Giving upper bounds to libraries creates problems if there are
transitive dependencies.

Our dependencies are only on dev/test time, but I'd rather get the
habit.

3 years agoSchedule a daily test run and a weekly package run
Daniele Varrazzo [Thu, 23 Dec 2021 01:36:43 +0000 (02:36 +0100)] 
Schedule a daily test run and a weekly package run

This should help detecting breakages due to new depending packages. In
the future we may extend the tests to run on Python/Postgres master
branch too.

The intention is to remove the top bound from dependency packages,
because the practice is widely documented to be problematic. Thankfully
we have only dev/test dependencies, but I'd rather get the habit for
good.

This commit will be merged on master as it is because otherwise Github
won't pick the change.

3 years agoFix typos and grammar in documentation.
Walter Doerwald [Wed, 22 Dec 2021 20:39:34 +0000 (21:39 +0100)] 
Fix typos and grammar in documentation.

3 years agoAvoid mypy version 0.930
Daniele Varrazzo [Wed, 22 Dec 2021 19:46:51 +0000 (20:46 +0100)] 
Avoid mypy version 0.930

The release is affected by the issues:

- https://github.com/python/mypy/issues/11820
- https://github.com/python/typeshed/issues/6661

already acknowledged as bugs.

3 years agoUse mypy 0.920
Denis Laxalde [Tue, 21 Dec 2021 08:24:34 +0000 (09:24 +0100)] 
Use mypy 0.920

One 'type: ignore' is no longer needed, it seems.

3 years agoReuse fixture across test module
Daniele Varrazzo [Wed, 15 Dec 2021 00:24:28 +0000 (01:24 +0100)] 
Reuse fixture across test module

The fixture is duplicated. Funnily enough, the dupe in async is less
efficient than the one in the sync test module, but it allowed to spot
the bug at the previous commit, after using it more than the prepared
threshold.

Ungratefully dropping it.

3 years agoFix prepared statements clearing
Daniele Varrazzo [Tue, 14 Dec 2021 23:57:11 +0000 (00:57 +0100)] 
Fix prepared statements clearing

In the conditions illustrated by the test, i.e. with some statements
already prepared and a multiple statements query containing a DROP, the
check for multiple statements wouldn't have been triggered, and the
query would have eventually been asked for preparation, failing because
containing multiple statements.

3 years agoBump version to release 3.0.7
Daniele Varrazzo [Tue, 14 Dec 2021 21:59:28 +0000 (22:59 +0100)] 
Bump version to release 3.0.7

3 years agoFix Cursor.rowcount after an executemany hitting no result
Daniele Varrazzo [Tue, 14 Dec 2021 21:45:22 +0000 (22:45 +0100)] 
Fix Cursor.rowcount after an executemany hitting no result

Close #178

3 years agoFix executemany crash with empty input sequence
Daniele Varrazzo [Tue, 14 Dec 2021 21:42:18 +0000 (22:42 +0100)] 
Fix executemany crash with empty input sequence

Close #179.

3 years agoReduce the work done on the cursor by executemany
Daniele Varrazzo [Mon, 29 Nov 2021 01:13:23 +0000 (02:13 +0100)] 
Reduce the work done on the cursor by executemany

Certain functions were executed once per query (e.g. _make_row_maker(),
_tx.set_pgresult()) but we can run them only once.

3 years agoFinalise version 3.0.6 for release
Daniele Varrazzo [Mon, 13 Dec 2021 12:34:20 +0000 (13:34 +0100)] 
Finalise version 3.0.6 for release

3 years agoDon't run Mypy tests on Windows/macOS
Daniele Varrazzo [Thu, 9 Dec 2021 19:17:05 +0000 (20:17 +0100)] 
Don't run Mypy tests on Windows/macOS

These tests are kinda slow and these platforms are the slowest to run.
Testing Mypy on Linux covers other platforms too.

A sample GitHub tests run (with no other concurrent job) went down from
22m to 18m.

3 years agoMerge branch 'fix-177'
Daniele Varrazzo [Thu, 9 Dec 2021 16:14:58 +0000 (17:14 +0100)] 
Merge branch 'fix-177'

Detect out-of-order transactions exit when they have the same name too.

3 years agoDetect out-of-order transactions exit when they have the same name too
Daniele Varrazzo [Thu, 9 Dec 2021 14:24:57 +0000 (15:24 +0100)] 
Detect out-of-order transactions exit when they have the same name too

Close #177

3 years agoDon't try to execute transaction finalization with the connection closed
Daniele Varrazzo [Thu, 9 Dec 2021 13:56:53 +0000 (14:56 +0100)] 
Don't try to execute transaction finalization with the connection closed

3 years agoRefactor Transaction queries generation into internal methods
Daniele Varrazzo [Thu, 9 Dec 2021 13:55:28 +0000 (14:55 +0100)] 
Refactor Transaction queries generation into internal methods

3 years agoRefactor Transaction adding an internal push method
Daniele Varrazzo [Thu, 9 Dec 2021 13:30:33 +0000 (14:30 +0100)] 
Refactor Transaction adding an internal push method

Nice and symmetric w.r.t. the pop method recently introduced.

3 years agoAdd tests to verify out-of-order detections without threads
Daniele Varrazzo [Thu, 9 Dec 2021 13:27:33 +0000 (14:27 +0100)] 
Add tests to verify out-of-order detections without threads

3 years agoMerge branch 'transaction-concurrency'
Daniele Varrazzo [Thu, 9 Dec 2021 00:03:26 +0000 (01:03 +0100)] 
Merge branch 'transaction-concurrency'

3 years agoRaise ProgrammingError on out-of-order exit from transactions
Daniele Varrazzo [Wed, 8 Dec 2021 23:28:44 +0000 (00:28 +0100)] 
Raise ProgrammingError on out-of-order exit from transactions

Previously it would have failed an assert.

Further back in time, the condition was checked and reported as
ProgrammingError already. The check was dropped when
`conn.transaction()` started to return an entered transaction, so the
possibility of calling enter/exit manually was taken out of the public
API. However, we didn't consider the possibility of concurrent
threads operating on transaction independently.

Also fix the Transaction representation, which wouldn't have reported
`(terminated)` exiting on rollback, but only on commit.

Close #176.

3 years agoMake the test to detect out-of-order transaction exiting reliable
Daniele Varrazzo [Wed, 8 Dec 2021 19:54:34 +0000 (20:54 +0100)] 
Make the test to detect out-of-order transaction exiting reliable

3 years agoTest transactions with concurrence [skip ci]
Denis Laxalde [Wed, 8 Dec 2021 15:53:05 +0000 (16:53 +0100)] 
Test transactions with concurrence [skip ci]

3 years agoFix docs typo
Daniele Varrazzo [Wed, 8 Dec 2021 14:39:07 +0000 (15:39 +0100)] 
Fix docs typo

3 years agoImprove Dumper, Loader documentation
Daniele Varrazzo [Wed, 8 Dec 2021 14:28:13 +0000 (15:28 +0100)] 
Improve Dumper, Loader documentation

3 years agoReword the types package description with more links to relevant docs
Daniele Varrazzo [Wed, 8 Dec 2021 12:46:26 +0000 (13:46 +0100)] 
Reword the types package description with more links to relevant docs

3 years agoFix duplicate docs for Cursor.description
Daniele Varrazzo [Wed, 8 Dec 2021 03:39:09 +0000 (04:39 +0100)] 
Fix duplicate docs for Cursor.description

3 years agoAdd ConnStatus.CHECK_STANDBY enum value
Daniele Varrazzo [Wed, 8 Dec 2021 03:11:41 +0000 (04:11 +0100)] 
Add ConnStatus.CHECK_STANDBY enum value

Added in PostgreSQL 14, only visible during connection, if at all.

3 years agoReword PyFormat docs
Daniele Varrazzo [Wed, 8 Dec 2021 03:22:12 +0000 (04:22 +0100)] 
Reword PyFormat docs

3 years agoFix a couple of typos in pool docs
Daniele Varrazzo [Wed, 8 Dec 2021 02:51:48 +0000 (03:51 +0100)] 
Fix a couple of typos in pool docs

3 years agoMerge pull request #167 from dlax/trace
Daniele Varrazzo [Tue, 7 Dec 2021 22:01:15 +0000 (23:01 +0100)] 
Merge pull request #167 from dlax/trace

Add bindings for PQ tracing functions

3 years agoMention addition of trace function in news file 167/head
Daniele Varrazzo [Tue, 7 Dec 2021 20:53:06 +0000 (21:53 +0100)] 
Mention addition of trace function in news file

3 years agoReport that trace is *currently* only supported on linux in errors
Daniele Varrazzo [Tue, 7 Dec 2021 21:02:59 +0000 (22:02 +0100)] 
Report that trace is *currently* only supported on linux in errors

We will add support for other platforms, if others care.

3 years agoAdd a --pq-tracefile pytest option
Denis Laxalde [Mon, 6 Dec 2021 07:44:02 +0000 (08:44 +0100)] 
Add a --pq-tracefile pytest option

When specified, we'd enable tracing of the client/server communication
to a file. The file is opened for the whole test session and we set a
title section before each test run.

3 years agoAdd bindings for PQ tracing functions
Denis Laxalde [Fri, 3 Dec 2021 07:05:16 +0000 (08:05 +0100)] 
Add bindings for PQ tracing functions

Since we cannot pass a file descriptor as a FILE value, as expected by
PQtrace(), PGconn.trace() method accepts a 'fileno: int' value. This is
then used to build an stdio's FILE value through fdopen(). The latter
also needs a binding in ctypes. This only works on Linux platform.

In _pq_ctypes.pyi, fdopen() and PQtrace() are not autogenerated because
of the needed '# type: ignore' (similar to existing ones).

PQsetTraceFlags() is new from libpq 14, so we declare it conditionally.

3 years agoFlag the bugfix version unreleased in the docs news
Daniele Varrazzo [Tue, 7 Dec 2021 21:30:12 +0000 (22:30 +0100)] 
Flag the bugfix version unreleased in the docs news

3 years agoDon't raise an exception using cur.description with closed connection
Daniele Varrazzo [Tue, 7 Dec 2021 20:31:07 +0000 (21:31 +0100)] 
Don't raise an exception using cur.description with closed connection

Close #172.

3 years agoRaise OperationalError on Connection.cursor() if closed
Daniele Varrazzo [Tue, 7 Dec 2021 20:01:13 +0000 (21:01 +0100)] 
Raise OperationalError on Connection.cursor() if closed

3 years agoDrop unneeded sort() in test
Daniele Varrazzo [Tue, 7 Dec 2021 19:49:15 +0000 (20:49 +0100)] 
Drop unneeded sort() in test

3 years agoFix whitespace excess
Daniele Varrazzo [Tue, 7 Dec 2021 19:40:51 +0000 (20:40 +0100)] 
Fix whitespace excess

Reported as error by new black version.

3 years agoDon't raise exceptions on ServerError.close() if the connection is closed
Daniele Varrazzo [Tue, 7 Dec 2021 19:31:00 +0000 (20:31 +0100)] 
Don't raise exceptions on ServerError.close() if the connection is closed

Close #173.

3 years agoDrop a few unused imports in pgconn.pyx
Denis Laxalde [Fri, 3 Dec 2021 11:15:45 +0000 (12:15 +0100)] 
Drop a few unused imports in pgconn.pyx

3 years agoAdd _PQencryptPasswordConn() in _pq_ctypes.pyi
Denis Laxalde [Fri, 3 Dec 2021 08:23:25 +0000 (09:23 +0100)] 
Add _PQencryptPasswordConn() in _pq_ctypes.pyi

Running the generation script produces this diff.

3 years agotest: run tests against PostgreSQL 14 on macOS
Daniele Varrazzo [Fri, 3 Dec 2021 09:23:33 +0000 (10:23 +0100)] 
test: run tests against PostgreSQL 14 on macOS

brew gives an error installing v. 13.

3 years agoMerge branch 'preparing-refactor'
Daniele Varrazzo [Mon, 29 Nov 2021 11:01:51 +0000 (12:01 +0100)] 
Merge branch 'preparing-refactor'

3 years agoRemove prepared statement maintenance command out of the normal loop
Daniele Varrazzo [Wed, 17 Nov 2021 14:26:43 +0000 (15:26 +0100)] 
Remove prepared statement maintenance command out of the normal loop

Accumulate the maintenance commands in the state of the prepared
processor manager and decide when to process them.

3 years agoSplit the internal state of prepared statements into names and counts
Daniele Varrazzo [Wed, 17 Nov 2021 13:15:20 +0000 (14:15 +0100)] 
Split the internal state of prepared statements into names and counts

3 years agoRefactor away internal prepared statements manager function
Daniele Varrazzo [Wed, 17 Nov 2021 13:27:35 +0000 (14:27 +0100)] 
Refactor away internal prepared statements manager function

3 years agoDrop PrepareManger.maintain()
Daniele Varrazzo [Tue, 16 Nov 2021 14:19:40 +0000 (15:19 +0100)] 
Drop PrepareManger.maintain()

3 years agoreimplement PrepareManager.maintain() calling other public methods
Daniele Varrazzo [Tue, 16 Nov 2021 14:13:49 +0000 (15:13 +0100)] 
reimplement PrepareManager.maintain() calling other public methods

This makes clearer that, in pipeline mode, we call them in two different
moments, whereas in non-pipeline we call them in a single place.

3 years agoRename prepare manager methods
Daniele Varrazzo [Tue, 16 Nov 2021 13:58:08 +0000 (14:58 +0100)] 
Rename prepare manager methods

Underscore the methods that are only called internally.

Change some of the public names. However this is just temporary, to
reason about who calls what.

3 years agoUse the clear() method in PrepareManager.maintain()
Daniele Varrazzo [Tue, 16 Nov 2021 13:16:57 +0000 (14:16 +0100)] 
Use the clear() method in PrepareManager.maintain()

3 years agoAdd handle() and validate() methods to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:42:11 +0000 (11:42 +0200)] 
Add handle() and validate() methods to PrepareManager

These essentially perform the same steps as maintain() but with only
query information first, and then once results become available.

3 years agoAdd a rotate() method to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:31:33 +0000 (11:31 +0200)] 
Add a rotate() method to PrepareManager

3 years agoAdd a check_results() method to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:31:33 +0000 (11:31 +0200)] 
Add a check_results() method to PrepareManager

3 years agoAdd a setdefault() method to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:28:03 +0000 (11:28 +0200)] 
Add a setdefault() method to PrepareManager

3 years agoAdd a should_discard() method to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:18:12 +0000 (11:18 +0200)] 
Add a should_discard() method to PrepareManager

3 years agoAdd a key() method to PrepareManager
Denis Laxalde [Mon, 18 Oct 2021 09:00:28 +0000 (11:00 +0200)] 
Add a key() method to PrepareManager

3 years agoPeg version of the docs theme package
Daniele Varrazzo [Sun, 28 Nov 2021 23:16:24 +0000 (00:16 +0100)] 
Peg version of the docs theme package

3 years agoInstall the pool in the docs environment in editable mode
Daniele Varrazzo [Sun, 28 Nov 2021 22:49:40 +0000 (23:49 +0100)] 
Install the pool in the docs environment in editable mode

3 years agoAdd sphinx link to docs footer, drop page source link
Daniele Varrazzo [Sun, 28 Nov 2021 22:39:36 +0000 (23:39 +0100)] 
Add sphinx link to docs footer, drop page source link

3 years agoMerge branch 'two-phase-commit'
Daniele Varrazzo [Sun, 28 Nov 2021 19:24:46 +0000 (20:24 +0100)] 
Merge branch 'two-phase-commit'

3 years agoClose connections in TPC tests to avoid warnings in tests
Daniele Varrazzo [Sun, 28 Nov 2021 18:50:59 +0000 (19:50 +0100)] 
Close connections in TPC tests to avoid warnings in tests

3 years agoAdd documentation for two-phase commit support
Daniele Varrazzo [Sun, 28 Nov 2021 18:26:24 +0000 (19:26 +0100)] 
Add documentation for two-phase commit support

3 years agoAdd type annotations to two-phase commit tests
Daniele Varrazzo [Mon, 8 Nov 2021 14:43:39 +0000 (15:43 +0100)] 
Add type annotations to two-phase commit tests

3 years agoMove two-phase transaction fixture to a common place
Daniele Varrazzo [Sat, 30 Oct 2021 17:44:37 +0000 (19:44 +0200)] 
Move two-phase transaction fixture to a common place

Importing it across test cases requires too silly workarounds.

Also do without attrgetter.

3 years agoAdd two-phase support method to async connection
Daniele Varrazzo [Sat, 30 Oct 2021 17:35:28 +0000 (19:35 +0200)] 
Add two-phase support method to async connection

3 years agoAdd two-phase commit DBAPI Connection methods
Daniele Varrazzo [Tue, 26 Oct 2021 23:50:45 +0000 (01:50 +0200)] 
Add two-phase commit DBAPI Connection methods

3 years agoDrop in dbapi tests for two-phase commit support
Daniele Varrazzo [Tue, 26 Oct 2021 15:58:21 +0000 (16:58 +0100)] 
Drop in dbapi tests for two-phase commit support

3 years agoStart working on Psycopg 3.1
Daniele Varrazzo [Sun, 28 Nov 2021 17:02:32 +0000 (18:02 +0100)] 
Start working on Psycopg 3.1

3 years agoBump to next release number 3.0.5
Daniele Varrazzo [Sun, 28 Nov 2021 16:52:07 +0000 (17:52 +0100)] 
Bump to next release number

3 years agoMerge branch 'fix-165'
Daniele Varrazzo [Sun, 28 Nov 2021 16:40:37 +0000 (17:40 +0100)] 
Merge branch 'fix-165'

3 years agoDon't clobber exception if rollback fails on transaction exit
Daniele Varrazzo [Sun, 28 Nov 2021 16:15:16 +0000 (17:15 +0100)] 
Don't clobber exception if rollback fails on transaction exit

Just raise a warning, consistently with what happens to the connection.

Close #165.

3 years agoMerge branch 'fix-158'
Daniele Varrazzo [Sun, 28 Nov 2021 16:39:54 +0000 (17:39 +0100)] 
Merge branch 'fix-158'

3 years agoMake sure to close selectors after usage
Daniele Varrazzo [Sat, 27 Nov 2021 22:30:53 +0000 (23:30 +0100)] 
Make sure to close selectors after usage

Failing to do so leaks file descriptors and may lead to "Too many open
files" errors (experienced on macOS, using kqueue selector).

Close #158

3 years agodocs: fetch libpq functions index from PostgreSQL 14 docs
Daniele Varrazzo [Sat, 27 Nov 2021 23:08:27 +0000 (00:08 +0100)] 
docs: fetch libpq functions index from PostgreSQL 14 docs

3 years agoImprove a few adaptation-related error messages
Daniele Varrazzo [Tue, 23 Nov 2021 20:23:47 +0000 (21:23 +0100)] 
Improve a few adaptation-related error messages

3 years agoGitignore the build directories, but not /tools/build/
Daniele Varrazzo [Tue, 23 Nov 2021 20:22:30 +0000 (21:22 +0100)] 
Gitignore the build directories, but not /tools/build/

Consolidate other local ignores into the main one, as all the ignores
are generic.

3 years agoGuard delay_connection in tests for negative sleep argument
Daniele Varrazzo [Mon, 22 Nov 2021 01:44:49 +0000 (02:44 +0100)] 
Guard delay_connection in tests for negative sleep argument

It happens if connection time was slow enough.

3 years agoUse an empty string instead on None in the copy work queue
Daniele Varrazzo [Mon, 22 Nov 2021 01:23:36 +0000 (02:23 +0100)] 
Use an empty string instead on None in the copy work queue

The test for copy end is just "if not item", so the empty string is
actually never used as a piece of data. This simplifies the type of the
queue.

3 years agoFix typo in comment
Daniele Varrazzo [Sun, 21 Nov 2021 20:24:48 +0000 (21:24 +0100)] 
Fix typo in comment

3 years agoAdd a minimal coverage configuration
Denis Laxalde [Sun, 21 Nov 2021 08:49:58 +0000 (09:49 +0100)] 
Add a minimal coverage configuration

We use pytest-cov, as it enables running coverage with pytest in a
single command.
We exclude 'if TYPE_CHECKING:' and ellipsis lines from report.

3 years agoMerge pull request #120 from dlax/waiting
Daniele Varrazzo [Tue, 16 Nov 2021 10:31:42 +0000 (11:31 +0100)] 
Merge pull request #120 from dlax/waiting

support RW ready in waiting functions