-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why is this change needed? -------------------------- Ideally releasing uses docker to prevent environment issues. How does it address the issue? ------------------------------ Add `script/release` to allowing scripting the process. Any links to any relevant tickets, articles, or other resources? --------------------------------------------------------------- https://3.basecamp.com/3093825/buckets/29124557/todos/5284412189 https://3.basecamp.com/3093825/buckets/29124557/todos/5284421778 Any screenshots? ---------------- Did you complete all of the following? -------------------------------------- - Run test suite? - Add new tests? - Consider security implications and practices?
- Loading branch information
1 parent
1e461a8
commit 92acc8d
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
TRACE | ||
TEST_OUTPUT_DIR=/app/tmp/test_output | ||
INSIDE_DOCKER=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
set -e | ||
[[ "$TRACE" == "true" ]] && set -x | ||
cd "$(dirname "$0")/.." | ||
|
||
if [[ "$INSIDE_DOCKER" != "true" ]]; then | ||
exec script/docker "/app/script/$(basename "$0")" | ||
fi | ||
|
||
echo "Clearing old packages..." | ||
[ -d dist ] && rm dist/* | ||
echo "Old packaged cleared." | ||
echo | ||
|
||
echo "Building packages..." | ||
# TODO: /usr/local/lib/python3.12/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. | ||
python setup.py sdist bdist_wheel | ||
echo "Packages built." | ||
echo | ||
|
||
echo "Installing twine to allow publishing..." | ||
pip install --upgrade twine | ||
echo "Twine installed." | ||
echo | ||
|
||
echo "Publishing packages to pypi..." | ||
twine upload dist/* | ||
echo "Packages published." | ||
echo |