这是indexloc提供的服务,不要输入任何密码
Skip to content

Add PyPI publish workflow #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged

Add PyPI publish workflow #65

merged 1 commit into from
May 2, 2025

Conversation

aazuspan
Copy link
Owner

@aazuspan aazuspan commented May 2, 2025

Related issue

Description

Sets up automatic publishing to PyPI on tag pushes.

See https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Checklist

  • I have updated the CHANGELOG with any added features, changes, fixes, or removals.

@aazuspan aazuspan requested a review from Copilot May 2, 2025 20:54
@aazuspan aazuspan self-assigned this May 2, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a GitHub Actions workflow to automate publishing packages to PyPI whenever a tag is pushed.

  • Adds a build job to construct the package distribution using Hatch.
  • Adds a publish job to retrieve the artifact and publish it to PyPI.

- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install hatch
Copy link
Preview

Copilot AI May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider using 'python -m pip install hatch' instead of 'pip install hatch' to ensure that the pip used is associated with the intended Python interpreter.

Suggested change
pip install hatch
python -m pip install hatch

Copilot uses AI. Check for mistakes.

@aazuspan aazuspan merged commit 6a2de9b into main May 2, 2025
6 checks passed
@aazuspan aazuspan deleted the publish-ci branch May 2, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant