diff --git a/README.rst b/README.rst index 07e20b2..def4831 100644 --- a/README.rst +++ b/README.rst @@ -184,7 +184,7 @@ This queue does not allow duplicate items. >>> Example usage of SQLite3 based ``SQLiteAckQueue``/``UniqueAckQ`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The core functions: - ``get``: get from queue and mark item as unack @@ -402,7 +402,7 @@ Explicit resource reclaim For some reasons, an application may require explicit reclamation for file handles or sql connections before end of execution. In these cases, user can - simply call: +simply call: .. code-block:: python q = Queue() # or q = persistqueue.SQLiteQueue('mypath', auto_commit=True) diff --git a/scripts/publish.sh b/scripts/publish.sh index 932bc1e..0adc3c3 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e BASE_DIR=`pwd` NAME=$(basename $BASE_DIR) if [[ "$NAME" != "persist-queue" ]];then @@ -7,4 +8,6 @@ if [[ "$NAME" != "persist-queue" ]];then fi python setup.py build sdist python setup.py build bdist_wheel +twine check ${BASE_DIR}/dist/*.tar.gz +twine check ${BASE_DIR}/dist/*.whl twine upload ${BASE_DIR}/dist/*