Skip to content

Commit

Permalink
Added a script to deploy to pypi. Changed the pypi project (not packa…
Browse files Browse the repository at this point in the history
…ge) name because the name was too similar to an existing project.
  • Loading branch information
eriq-augustine committed Aug 9, 2024
1 parent 5145f4c commit c9b1be6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Deploy to PyPi Test and PyPi.
# Assume pypi credentials exist in one of the standard locations.

readonly THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

function main() {
if [[ $# -ne 0 ]]; then
echo "USAGE: $0"
exit 1
fi

set -e
trap exit SIGINT

cd "${THIS_DIR}"

rm -rf "dist"

python3 -m build
python3 -m twine upload -r testpypi dist/*
python3 -m twine upload dist/*
}

[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requires = [
]

[project]
name = "pacai"
name = "linqs-pacai"
version = "1.3.0"
description = "A modified version of the Pacman educational project from the Berkley AI Lab."
readme = "README.md"
Expand Down

0 comments on commit c9b1be6

Please sign in to comment.