diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 3e19efd..3499f50 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,10 @@ # Changelogs +## 0.4.0 + + * Support two abort mode. `cancel` to cancel the pending task, and the default + `abort` to abort either pending or running task. (#7) + ## 0.3.1 * Add `gevent` support (@FinnLidbetter, #12) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab1e79a..7860c64 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,3 +25,19 @@ tox ``` Successful `tox` run is a prerequisite for a Pull Request to be merged. + +# Release Guide + +Build source and wheel package. + +``` +python -m build --sdist +python -m build --wheel +``` + +Publish package: + +``` +twine check dist/* +twine upload dist/* +``` diff --git a/setup.py b/setup.py index 6fd3354..eed044b 100644 --- a/setup.py +++ b/setup.py @@ -66,6 +66,10 @@ def rel(*xs: str) -> str: # Docs "sphinx", "sphinx-autodoc-typehints", + # Build + "build", + "wheel", + "twine", ] setup( diff --git a/src/dramatiq_abort/__init__.py b/src/dramatiq_abort/__init__.py index 980094f..dbbbb6e 100644 --- a/src/dramatiq_abort/__init__.py +++ b/src/dramatiq_abort/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.3.1" +__version__ = "0.4.0" from .backend import EventBackend from .middleware import Abort, Abortable, abort