Skip to content

we should publish rc to pypi as part of the release process #1409

@kevinjqliu

Description

@kevinjqliu

Is your feature request related to a problem or challenge?

During the release process, we only upload rust artifacts to apache SVN https://rust.iceberg.apache.org/release.html#upload-artifacts-to-the-svn-dist-repo

it would be helpful to upload the RC python artifacts to pypi for testing. This is located at

pypi-publish:
name: Publish Python 🐍 distribution 📦 to Pypi
needs: [sdist, wheels]
runs-on: ubuntu-latest
# Only publish to PyPi if the tag is not a pre-release OR if manually triggered
if: ${{ (startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')) || github.event_name == 'workflow_dispatch' }}
environment:
name: pypi
url: https://pypi.org/p/pyiceberg-core
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: bindings/python/dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: bindings/python/dist

We should absolutely make sure that the pypi artifacts are published as RC and not the actual release (0.9.0rc1 vs 0.9.0).

Describe the solution you'd like

No response

Willingness to contribute

None

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions