mirror of
https://github.com/actions/setup-python.git
synced 2025-12-23 08:47:09 +00:00
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:
parent
83679a892e
commit
f054be5a92
5 changed files with 222 additions and 2 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue