Skip to content

Commit

Permalink
Add package building scripts. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCabeza committed May 14, 2022
1 parent 217e7d0 commit 704b78e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

SCRIPTS_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPOSITORY_ROOT_DIRECTORY=$SCRIPTS_DIRECTORY/..

python -m build
7 changes: 7 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

SCRIPTS_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPOSITORY_ROOT_DIRECTORY=$SCRIPTS_DIRECTORY/..

rm -rf $REPOSITORY_ROOT_DIRECTORY/dist
rm -rf $REPOSITORY_ROOT_DIRECTORY/rusty_results.egg-info
6 changes: 6 additions & 0 deletions scripts/clean_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

SCRIPTS_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

$SCRIPTS_DIRECTORY/clean.sh
$SCRIPTS_DIRECTORY/build.sh
6 changes: 6 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

SCRIPTS_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPOSITORY_ROOT_DIRECTORY=$SCRIPTS_DIRECTORY/..

python -m twine upload $REPOSITORY_ROOT_DIRECTORY/dist/*

0 comments on commit 704b78e

Please sign in to comment.