Skip to content

Commit

Permalink
Add test upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Jan 11, 2020
1 parent a062e78 commit 69b01d5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions scripts/test_upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
set -e

ROOT_PATH=$(dirname $(dirname $(realpath $0)))

mypy_boto3 --clean || true
pipenv clean
${ROOT_PATH}/scripts/build.sh -s sqs secretsmanager -b 1.11.0.10

OUTPUT_PATH=${ROOT_PATH}/mypy_boto3_output


cd ${OUTPUT_PATH}/master_package
rm -rf build *.egg-info dist/*
python setup.py build sdist
twine upload --repository-url http://localhost:8080/ --username user --password pass --non-interactive dist/*
cd -

cd ${OUTPUT_PATH}/boto3_stubs_package
rm -rf build *.egg-info dist/*
python setup.py build sdist
twine upload --repository-url http://localhost:8080/ --username user --password pass --non-interactive dist/*
cd -

cd ${OUTPUT_PATH}/mypy_boto3_sqs_package
rm -rf build *.egg-info dist/*
python setup.py build sdist
twine upload --repository-url http://localhost:8080/ --username user --password pass --non-interactive dist/*
cd -

cd ${OUTPUT_PATH}/mypy_boto3_secretsmanager_package
rm -rf build *.egg-info dist/*
python setup.py build sdist
twine upload --repository-url http://localhost:8080/ --username user --password pass --non-interactive dist/*
cd -

pip install --extra-index-url http://localhost:8080/ 'mypy-boto3==1.11.0.10' -v
pip install --extra-index-url http://localhost:8080/ 'boto3-stubs[sqs,secretsmanager]==1.11.0.10' -v

0 comments on commit 69b01d5

Please sign in to comment.