Skip to content

Commit

Permalink
Merge pull request #120 from peter-wangxu/pre-v0.5.0
Browse files Browse the repository at this point in the history
Prepare for the release of v0.5.0
  • Loading branch information
peter-wangxu authored Nov 8, 2019
2 parents 5b71c6b + b48ef9d commit 194f3b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ Close the python console, and then we restart the queue from the same path,
Example usage with an auto-saving file based queue
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

*Available since: v0.5.0*

By default, items added to the queue are persisted during the ``put()`` call,
and items removed from a queue are only persisted when ``task_done()`` is
called.
Expand Down Expand Up @@ -381,8 +384,8 @@ Due to the limitation of file queue described in issue `#89 <https://github.com/

Serialization via msgpack/json
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- v0.4.1: Currently only available for file based Queue**
- v0.4.2: Also available for SQLite3 based Queues**
- v0.4.1: Currently only available for file based Queue
- v0.4.2: Also available for SQLite3 based Queues

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion persistqueue/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding=utf-8
__author__ = 'Peter Wang'
__license__ = 'BSD'
__version__ = '0.4.2'
__version__ = '0.5.0'

from .exceptions import Empty, Full # noqa
from .queue import Queue # noqa
Expand Down
10 changes: 10 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
BASE_DIR=`pwd`
NAME=$(basename $BASE_DIR)
if [[ "$NAME" != "persist-queue" ]];then
echo "must run this in project root"
exit 1
fi
python setup.py build sdist
python setup.py build bdist_wheel
twine upload ${BASE_DIR}/dist/*

0 comments on commit 194f3b6

Please sign in to comment.