Skip to content

Commit e718d5a

Browse files
committed
add a pubsub database implementation
1 parent 98cbeca commit e718d5a

File tree

13 files changed

+799
-23
lines changed

13 files changed

+799
-23
lines changed

hypothesis-python/RELEASE.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
RELEASE_TYPE: minor
2+
3+
The :doc:`Hypothesis database <database>` now supports a pub-sub interface to efficiently listen for changes in the database, via ``.add_listener`` and ``.remove_listener``. While all databases that ship with Hypothesis support this interface, implementing it is not required for custom database subclasses. Hypothesis will warn when trying to listen on a database without support.
4+
5+
This feature is currently only used downstream in `hypofuzz <https://github.com/zac-hd/hypofuzz>`_.

hypothesis-python/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def local_file(name):
7070
# We also leave the choice of timezone library to the user, since it
7171
# might be zoneinfo or pytz depending on version and configuration.
7272
"django": ["django>=4.2"],
73+
"watchdog": ["watchdog>=4.0.0"],
7374
}
7475

7576
extras["all"] = sorted(set(sum(extras.values(), [])))

0 commit comments

Comments
 (0)