-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Add release to PyPI. Change package name to sagemaker-pytorc…
…h-training. (#160) * feauture: Add release to PyPI. Change package name to sagemaker-pytorch-training.
- Loading branch information
Showing
9 changed files
with
76 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
recursive-include src/sagemaker_pytorch_container * | ||
|
||
include VERSION | ||
include LICENSE | ||
include README.rst | ||
|
||
prune test | ||
|
||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
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,9 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- PACKAGE_FILE="$CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker_pytorch_training-*.tar.gz" | ||
|
||
# publish to pypi | ||
- publish-pypi-package $PACKAGE_FILE |
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,34 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
# prepare the release (update versions, changelog etc.) | ||
- git-release --prepare | ||
|
||
# run linters | ||
- tox -e flake8,twine | ||
|
||
# run unit tests | ||
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN= | ||
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION= | ||
tox -e py27,py36 -- test/unit | ||
|
||
# run local integ tests | ||
#- $(aws ecr get-login --no-include-email --region us-west-2) | ||
#- IGNORE_COVERAGE=- tox -e py27,py36 -- test/integ/local | ||
|
||
# run sagemaker integ tests | ||
#- IGNORE_COVERAGE=- tox -e py27,py36 -- test/integ/sagemaker | ||
|
||
# generate the distribution package | ||
- python3 setup.py sdist | ||
|
||
# publish the release to github | ||
- git-release --publish | ||
|
||
artifacts: | ||
files: | ||
- dist/sagemaker_pytorch_training-*.tar.gz | ||
name: ARTIFACT_1 | ||
discard-paths: yes |
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
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