Skip to content

Commit

Permalink
Release Artifact Instructions (#29)
Browse files Browse the repository at this point in the history
* Remove sleep_to_mimic_human_activity in favor of exp. backoff

* Remove utils.sleep_to_mimic_human_activity()

* Remove sleep_to_mimic_human_activity() from artist.py

* Format with Black

* Add file with instructions for release artifacts
  • Loading branch information
ebb-earl-co authored Jan 4, 2024
1 parent 12e7be4 commit a2b4d96
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions release_artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
VERSION="${1:-latest}"

command -v python3 >/dev/null 2>&1 || { echo >&2 "I require Python3 but it's not installed. Aborting."; exit 1; }

if ! command -v cargo &> /dev/null;
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # install cargo for pyapp
fi

/usr/bin/env python3 -m venv ./venv && \
source ./venv/bin/activate && \
python3 -m pip install --upgrade pip setuptools wheel && \
python3 -m pip install build shiv twine && \
python3 -m shiv --compressed --reproducible -c tidal-wave -o ~/tools/tidal-wave_${VERSION}.pyz . && \ # shiv executable
PYAPP_PROJECT_NAME=tidal-wave PYAPP_PROJECT_VERSION=${VERSION} cargo install pyapp --root out && \
mv out/bin/pyapp ~/tools/tidal-wave_${VERSION}.pyapp && \
PYAPP_PROJECT_NAME=tidal-wave PYAPP_PROJECT_VERSION=${VERSION} PYAPP_FULL_ISOLATION=1 PYAPP_DISTRIBUTION_EMBED=1 PYAPP_PYTHON_VERSION=3.11 cargo install pyapp --root out && \
mv out/bin/pyapp ~/tools/tidal-wave_${VERSION}_py311.pyapp && \
rm -r out/

0 comments on commit a2b4d96

Please sign in to comment.