Skip to content

Commit

Permalink
add a pubsub database implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Feb 12, 2025
1 parent 56ac872 commit 9e50226
Show file tree
Hide file tree
Showing 13 changed files with 789 additions and 23 deletions.
5 changes: 5 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RELEASE_TYPE: minor

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.

This feature is currently only used downstream in `hypofuzz <https://github.com/zac-hd/hypofuzz>`_.
1 change: 1 addition & 0 deletions hypothesis-python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def local_file(name):
# We also leave the choice of timezone library to the user, since it
# might be zoneinfo or pytz depending on version and configuration.
"django": ["django>=4.2"],
"watchdog": ["watchdog>=4.0.0"],
}

extras["all"] = sorted(set(sum(extras.values(), [])))
Expand Down
Loading

0 comments on commit 9e50226

Please sign in to comment.