Add support for custom PyPI repository configuration

- Add pypi-url, pypi-username, and pypi-password inputs to action.yml
- Implement configurePipRepository() function in utils.ts to create pip.conf/pip.ini
- Integrate pip configuration into setup-python.ts workflow
- Add comprehensive unit tests for pip configuration functionality
- Update README.md with usage examples and documentation
- Automatically mask credentials in logs for security

Fixes #814
This commit is contained in:
GitHub Copilot 2025-12-16 16:40:35 +00:00
parent 83679a892e
commit f054be5a92
5 changed files with 222 additions and 2 deletions

View file

@ -33,6 +33,15 @@ inputs:
description: "Used to specify the version of pip to install with the Python. Supported format: major[.minor][.patch]."
pip-install:
description: "Used to specify the packages to install with pip after setting up Python. Can be a requirements file or package names."
pypi-url:
description: "Used to specify a custom PyPI repository URL. When set, pip will be configured to use this repository."
required: false
pypi-username:
description: "Username for authentication with the custom PyPI repository. Used with 'pypi-url'."
required: false
pypi-password:
description: "Password or token for authentication with the custom PyPI repository. Used with 'pypi-url'."
required: false
outputs:
python-version:
description: "The installed Python or PyPy version. Useful when given a version range as input."