Skip to content

Commit

Permalink
Add build and upload scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cleanunicorn committed Jul 20, 2019
1 parent 308fbe4 commit 50b8eac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

rm -rf build dist

python3 setup.py sdist bdist_wheel
13 changes: 13 additions & 0 deletions scripts/upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Set TWINE_PASSWORD to the pip password

TEST_REPOSITORY=""

if [ $TEST = "true" ]; then
TEST_REPOSITORY="--repository-url https://test.pypi.org/legacy/"
fi

twine upload \
$TEST_REPOSITORY \
dist/* \
-u cleanunicorn

0 comments on commit 50b8eac

Please sign in to comment.