add workflow for trusted publishing#16
Merged
molshape merged 2 commits intomolshape:mainfrom Aug 2, 2025
Merged
Conversation
- took info for pyproject.toml from pypi - restructured folders for hatchling build until tests passed - tried build and pytest using uv - added __all__ to __init__.py so import * should get "ChemFormula"
- took it from the pypi package
Contributor
Author
|
I added the conda-forge recipes here: conda-forge/staged-recipes#30634 |
Owner
|
Hi @HLinde, thanks a lot for your feedback - I really appreciate your contribution! 👍 I'll try to review the pull request next weekend, but I already like your suggestions and will add GitHub as a trusted publisher on PyPI. I also like that you've created a Conda recipe. No need to list me as a maintainer, though. |
Owner
|
Thanks for you pull request, @HLinde! I've successfully merged your pull request into |
Closed
Closed
Contributor
Author
|
I was happy to help and thanks for your continued work! :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi and thanks for your nice project! :)
I use chemformula in on of my projects and just went through learning to package it via github to pypi. As you mentioned in #15 that such PRs would be welcome, I put something together in case you are still interested.
I used uv (https://docs.astral.sh/uv/) as a project manager (just this basically:
uv run pytest) and it is used in the publish workflow.To finish this you would have to do those two steps:
Once that is set up, the workflow is triggered by creating a proper "release" on Github.
In case you are interested to publish also via conda-forge, setting up a recipe for them is not so complicated either (https://github.com/conda-forge/staged-recipes?tab=readme-ov-file#generating-recipes-with-grayskull). However you need to have all dependencies also in conda-forge apparently. So I would be quite interested to have chemformula also in conda-forge ;)