Skip to content

Commit

Permalink
Fixed publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisspen committed Jun 28, 2024
1 parent dd94c79 commit f569ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions init_virtualenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 2 additions & 5 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
twine upload --repository django-chroniker $FN

0 comments on commit f569ed5

Please sign in to comment.