Files
pypi_publish/install_pypi_config.sh
T
bryce ebd583a822
Push to main / Reset-Version-Tag (push) Successful in 6s
a
2026-05-14 12:54:56 -06:00

19 lines
414 B
Bash
Executable File

#!/bin/bash
config_template='
[distutils]
index-servers = repo
[repo]
repository = {repository}
username = {username}
password = {password}
'
# Replace placeholders with environment variables
config_output=$(echo "$config_template" | \
sed -e "s/{repository}/$PYPI_REPO_DOMAIN/g" \
-e "s/{username}/$PYPI_REPO_USER/g" \
-e "s/{password}/$PYPI_REPO_PASS/g")
echo "$config_output" > "$HOME/.pypirc"