diff --git a/init_virtualenv.sh b/init_virtualenv.sh index 0de9dbe..809a661 100755 --- a/init_virtualenv.sh +++ b/init_virtualenv.sh @@ -14,6 +14,7 @@ echo "[$(date)] Activating virtual environment." echo "[$(date)] Upgrading pip." pip install -U pip +pip install -U pip setuptools wheel echo "[$(date)] Installing pip requirements." pip install -r requirements.txt -r requirements-test.txt diff --git a/publish.sh b/publish.sh index 7e72678..6d9d769 100755 --- a/publish.sh +++ b/publish.sh @@ -2,14 +2,11 @@ set -e if [ ! -d .env ]; then echo "[$(date)] Initializing environment." - virtualenv -p python3.7 .env - . .env/bin/activate - pip install -U pip setuptools wheel - pip install -r requirements-test.txt + ./init_virtualenv.sh fi . .env/bin/activate echo "[$(date)] Building package." python setup.py sdist FN=`find ./dist -name "*.tar.gz" -print0 | xargs -r -0 ls -1 -t | head -1` echo "[$(date)] Uploading $FN." -twine upload $FN \ No newline at end of file +twine upload --repository django-chroniker $FN \ No newline at end of file