locakstackを利用することで、AWSのリソースをローカルで扱うことができる。
~/.aws/credentialsに、以下のようなアカウントを作成
[localstack]
aws_access_key_id = dummy
aws_secret_access_key = dummy
region=ap-northeast-1
aws --endpoint-url=http://localhost:4567 --profile localstack {awsコマンド}たとえばS3バケットを作成した場合は、以下のようなコマンドを実行する。
# バケット作成
aws --endpoint-url=http://localhost:4567 --profile localstack s3 mb s3://credold-sample
# バケット一覧表示
aws --endpoint-url=http://localhost:4567 --profile localstack s3 lspip install twine が完了しており、~/.pypircがある状態で、以下を実行
python setup.py sdist bdist_wheel
# テスト
twine upload --repository pypitest dist/*
# 本番
twine upload dist/*