From f27b0ca8b52454a79de8cf4e1f7abceed6307def Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Fri, 8 Nov 2019 23:37:40 +0800 Subject: [PATCH] Fix some doc/rst issue --- README.rst | 4 ++-- scripts/publish.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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/*