actions / actions/setup-python
Optional ability to set the pypi repository and credentials to be used by pip on the runner
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.2k
- Forks
- 739
- Merge medio
- 6 d 18 h
- PR fusionados (30 d)
- 1
Descripción
Description:
Add option with flags to allow users of the action to setup a pip.conf or pip.ini file with a private registry and credentials.
Example usage:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
repository: ${{ secrets.PYPI_REPO_URL }}
username: ${{ secrets.PYPI_USER_TOKEN }}
password: ${{ secrets.PYPI_PASS_TOKEN }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Justification:
Using this action on ephemeral runners in environments where where companies have their own repository's to cache python dependencies. Great example (and my use case) is an enterprise nexus pypi repo where the open source pypi is blocked by firewall and dependencies need to be security scanned and placed in nexus prior to use internally. Having one setup-python action run and have the runner configured properly to use pip in any environment prevents the clutter having to manually write a pip.conf/pip.ini file every time we want to pip install.
Are you willing to submit a PR?
Absolutely, I am new to typescript but would love to put in a PR if others agree the work is useful.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza revisando los inputs existentes de la action setup-python y el flujo de configuración del runner; después, determina cómo se configurarían pip.conf o pip.ini para repositorios privados y credenciales. Se considera completado cuando la action puede aceptar los inputs solicitados del repositorio y las credenciales, configurar pip para las instalaciones posteriores y validar el comportamiento en los entornos de runner compatibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python, typescript
- Área
- ci-cd, devops
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100