Skip to content

Commit 33efc63

Browse files
authored
SLS-2757: Modify PyPI to use token for publishing (#265)
Modify PyPI to use token for publishing
1 parent 79eb36e commit 33efc63

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

scripts/publish_prod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity
3737
aws-vault exec prod-engineering -- aws sts get-caller-identity
3838

3939
# Ensure pypi registry access
40-
read -p "Do you have the PyPi login credentials for datadog account (y/n)?" CONT
40+
read -p "Do you have access to PyPI (y/n)?" CONT
4141
if [ "$CONT" != "y" ]; then
4242
echo "Exiting"
4343
exit 1

scripts/pypi.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ if [ -d "dist" ]; then
1414
rm -rf dist;
1515
fi
1616

17-
# Publish to pypi
18-
poetry publish --build
17+
echo "Please enter the PyPI token (password) for datadog-lambda-python"
18+
echo "This can be found in 1password under the shared-serverless vault"
19+
read -p "Token name: " TOKEN
1920

21+
# Publish to pypi
22+
poetry publish --build --username __token__ --password $TOKEN

0 commit comments

Comments
 (0)