Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Publish to PyPI with trusted publishing

Abierto
#824 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, python
Área
ci-cd, release

Línea de trabajo

Empieza inspeccionando los workflows existentes de GitHub Actions del repositorio y la documentación enlazada sobre Python packaging, PyPI trusted-publishers y pypa/gh-action-pypi-publish. Configura los jobs de build y publish del paquete, el entorno de GitHub y los permisos indicados para trusted publishing con attestations. El trabajo estará terminado cuando las releases se publiquen desde GitHub CI sin un twine upload local y el artefacto generado pueda verificarse en PyPI.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

SDK

Trusted publishing (with attestations) means I have high confidence that what I download from PyPI is the same artefact which was generated in GitHub CI, meaning that what I see in GitHub is the same as what is installed - handy for auditing.

This is instead of manually uploading via a local invocation of twine.

See the Python packaging documentation, the PyPI documentation, and the official pypi-publish GitHub action documentation on trusted publishing.

Implementation (using GitHub actions) (click to expand)
  • Configure a GitHub CI workflow for publishing the package to PyPI, with package build and publish jobs
  • Configure (or use an existing) GitHub environment, and register with PyPI
  • Add the environment definition to the publish job
  • Add id-token: write and contents: read permissions to the same publish job
Lenguaje dominante
Python
Estrellas
473
Forks
322
Merge medio
13 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle/oci-python-sdk

Todos los issues de oracle/oci-python-sdk

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.