Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Packaging] Upload to PyPI from TravisCI
- Loading branch information
1 parent
fef07cb
commit e774779
Showing
3 changed files
with
29 additions
and
2 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
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,17 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
# NOTE: don't use "set -x" in this script | ||
set -e | ||
|
||
LOCAL_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
ROOT_DIR=$( dirname "$(dirname "$LOCAL_DIR")") | ||
|
||
cd $ROOT_DIR | ||
set +x # double-check that x is unset | ||
cat > ~/.pypirc << EOF | ||
[pypi] | ||
repository = https://pypi.python.org/pypi | ||
username = luke.yeager | ||
password = ${PYPI_PASSWORD} | ||
EOF | ||
twine upload -r pypi dist/* |