jiayuasu opened a new pull request, #2588:
URL: https://github.com/apache/sedona/pull/2588

   ## Did you read the Contributor Guide?
   
   - Yes, I have read the [Contributor 
Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor 
Development Guide](https://sedona.apache.org/latest/community/develop/)
   
   ## Is this PR related to a ticket?
   
   - No:
     - this is a CI update. The PR name follows the format `[CI] my subject`
   
   ## What changes were proposed in this PR?
   
   This pull request updates the Python packaging workflow to automate building 
and publishing both wheel and source distributions to PyPI when a GitHub 
Release is published. The workflow is restructured into separate jobs for 
building wheels, building source distributions, and uploading to PyPI, and now 
uses the latest versions of key actions.
   
   **Workflow automation and publishing:**
   
   * The workflow is renamed to "Python build and publish wheels" and is now 
triggered both on code changes and when a GitHub Release is published, enabling 
automatic publishing to PyPI upon release. 
[[1]](diffhunk://#diff-5e0d1baa80851a063baf6e488a4cc9ac256e8b289cf5186dc8f87c6d0b4a3a7aL18-R18)
 
[[2]](diffhunk://#diff-5e0d1baa80851a063baf6e488a4cc9ac256e8b289cf5186dc8f87c6d0b4a3a7aR41-R43)
   * A new `upload_pypi` job is added, which gathers built wheels and source 
distributions, and publishes them to PyPI using the 
`pypa/gh-action-pypi-publish` action, with appropriate permissions for Trusted 
Publishing.
   
   **Build process improvements:**
   
   * The workflow is split into separate jobs: `build_wheels` (for wheels on 
multiple OSes) and `build_sdist` (for the source distribution using `uv`). 
[[1]](diffhunk://#diff-5e0d1baa80851a063baf6e488a4cc9ac256e8b289cf5186dc8f87c6d0b4a3a7aL50-R54)
 
[[2]](diffhunk://#diff-5e0d1baa80851a063baf6e488a4cc9ac256e8b289cf5186dc8f87c6d0b4a3a7aR87-R131)
   * The `pypa/cibuildwheel` action is updated from version 3.3.0 to 3.3.1 for 
building wheels.
   
   **Linter configuration:**
   
   * The linter configuration is updated to allow the use of the 
`pypa/gh-action-pypi-publish` action.
   
   ## Did this PR include necessary documentation updates?
   
   - Yes, I have updated the documentation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to