forked from DataDog/datadog-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpypi.sh
More file actions
executable file
·22 lines (17 loc) · 710 Bytes
/
pypi.sh
File metadata and controls
executable file
·22 lines (17 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019 Datadog, Inc.
# Builds the lambda layer and upload to Pypi
set -e
# Clear previously built distributions
if [ -d "dist" ]; then
echo "Removing folder 'dist' to clear previously built distributions"
rm -rf dist;
fi
echo "Please enter the PyPI token (password) for datadog-lambda-python"
echo "This can be found in 1password under the shared-serverless vault"
read -p "Token name: " TOKEN
# Publish to pypi
poetry publish --build --username __token__ --password $TOKEN