Skip to content
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

Fix: Update publish pypi workflow to use hatch #108

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

lwasser
Copy link
Member

@lwasser lwasser commented Feb 25, 2024

this closes #100 #82

NOTE: i haven't set this up before with hatch but because hatch is using setuptools_scm i suspect it's the same workflow. let's see how this runs.

@@ -45,6 +44,7 @@ jobs:
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
# Haven't setup trusted workflow on test pypi yet
Copy link
Member Author

Choose a reason for hiding this comment

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

The weird part here is i'm not sure whether we want to use hatch publish vs just the pypi publish workflow which is easy and i've used before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it is fine to keep pypa/gh-action-pypi-publish

Copy link
Collaborator

Choose a reason for hiding this comment

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

Using hatch to build the wheel and sdist

@lwasser lwasser marked this pull request as ready for review February 25, 2024 21:14
@lwasser
Copy link
Member Author

lwasser commented Feb 26, 2024

merging. we can see if it goes to testpypi

@lwasser lwasser merged commit bee8f3d into pyOpenSci:main Feb 26, 2024
2 checks passed
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.

Set up a github action using hatch to release to PyPI
2 participants