diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 7bf0fb0d..cacd01d9 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.5.3 +current_version = 2.5.4 [bumpversion:file:.env] diff --git a/.env b/.env index f4e91d25..41780780 100644 --- a/.env +++ b/.env @@ -11,7 +11,7 @@ fi export PROJECT_NAME=$OPEN_PROJECT_NAME export PROJECT_DIR="$PWD" -export PROJECT_VERSION="2.5.3" +export PROJECT_VERSION="2.5.4" if [ ! -d "venv" ]; then if ! hash pyvenv 2>/dev/null; then diff --git a/ACKNOWLEDGEMENTS.md b/ACKNOWLEDGEMENTS.md index 1c841458..fced93a8 100644 --- a/ACKNOWLEDGEMENTS.md +++ b/ACKNOWLEDGEMENTS.md @@ -50,6 +50,8 @@ Code Contributors - Christopher Goes (@GhostOfGoes) - Stanislav (@atmo) - Lordran (@xzycn) +- Stephan Fitzpatrick (@knowsuchagency) + Documenters =================== @@ -81,6 +83,8 @@ Documenters - Chelsea Dole (@chelseadole) - Joshua Crowgey (@jcrowgey) - Antti Kaihola (@akaihola) +- Simon Ince (@Simon-Ince) + -------------------------------------------- diff --git a/CHANGELOG.md b/CHANGELOG.md index efeefe0a..604482ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ Ideally, within a virtual environment. Changelog ========= +### 2.5.4 hotfix - May 19, 2019 +- Fix issue #798 - Development runner `TypeError` when executing cli + ### 2.5.3 hotfix - May 15, 2019 - Fixed issue #794 - Restore support for versions of Marshmallow pre-2.17.0 diff --git a/documentation/TYPE_ANNOTATIONS.md b/documentation/TYPE_ANNOTATIONS.md index 1ee8b2d5..7db9393b 100644 --- a/documentation/TYPE_ANNOTATIONS.md +++ b/documentation/TYPE_ANNOTATIONS.md @@ -92,7 +92,7 @@ Here is a simple example of an API that does datetime addition. @hug.get('/dateadd', examples="value=1973-04-10&addend=63") - def dateadd(value: fields.DateTime(), + def dateadd(value: fields.Date(), addend: fields.Int(validate=Range(min=1))): """Add a value to a date.""" delta = dt.timedelta(days=addend) diff --git a/hug/_version.py b/hug/_version.py index dc9384a5..8f9fe1d0 100644 --- a/hug/_version.py +++ b/hug/_version.py @@ -21,4 +21,4 @@ """ from __future__ import absolute_import -current = "2.5.3" +current = "2.5.4" diff --git a/hug/development_runner.py b/hug/development_runner.py index aae06fde..196f0713 100644 --- a/hug/development_runner.py +++ b/hug/development_runner.py @@ -77,7 +77,7 @@ def hug( sys.exit(1) use_cli_router = slice( - start=(sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command")) + 2 + sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command") + 2 ) sys.argv[1:] = sys.argv[use_cli_router] api.cli.commands[command]() diff --git a/setup.py b/setup.py index 975b7577..a88874a6 100755 --- a/setup.py +++ b/setup.py @@ -78,7 +78,7 @@ def list_modules(dirname): setup( name="hug", - version="2.5.3", + version="2.5.4", description="A Python framework that makes developing APIs " "as simple as possible, but no simpler.", long_description=long_description,