From d46dba1522f022c86af32eb56d523cdb176ecf77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Mon, 16 Mar 2020 10:46:46 +0100 Subject: [PATCH] Initialize the project in new directory --- bin/freenit.sh | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/freenit.sh b/bin/freenit.sh index ba705e4..d44c83a 100755 --- a/bin/freenit.sh +++ b/bin/freenit.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + NAME="${1}" if [ -z "${NAME}" ]; then @@ -11,6 +13,8 @@ fi PROJECT_ROOT=`python${PY_VERSION} -c 'import os; import freenit; print(os.path.dirname(os.path.abspath(freenit.__file__)))'` +mkdir ${NAME} +cd ${NAME} echo 'freenit' >requirements.txt cp -r ${PROJECT_ROOT}/project/* . mv project ${NAME} diff --git a/setup.py b/setup.py index 41efe45..c41426d 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='freenit', - version='0.0.31', + version='0.0.32', description='REST API framework based on Flask-Smorest', long_description=README, long_description_content_type='text/markdown',