Files
pypi_publish/install_pypi_config.sh
T
bryce 5f3a1d21fb
Push to main / Reset-Version-Tag (push) Successful in 6s
a
2026-05-14 13:55:32 -06:00

21 lines
437 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"
echo "$config_output" > "$HOME/.pypirc"