From f569ed5463e4d6544739912c3c1b2846aeee95f7 Mon Sep 17 00:00:00 2001 From: chrisspen Date: Fri, 28 Jun 2024 03:34:35 -0400 Subject: [PATCH] Fixed publish script --- init_virtualenv.sh | 1 + publish.sh | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) 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