Open
Conversation
jandom
reviewed
Feb 6, 2026
Comment on lines
+254
to
+260
| 2) Sanity check locally (recommended) | ||
| ```bash | ||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
| python -m pip install -U pip build twine | ||
| python -m build | ||
| twine check dist/* |
Comment on lines
+16
to
+20
| def test_cli_align_fasta_to_stdout() -> None: | ||
| repo_root = Path(__file__).resolve().parents[2] | ||
| input_fasta = repo_root / "tests" / "data" / "tiny.fa" | ||
|
|
||
| result = subprocess.run( |
| user: __token__ | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| packages_dir: dist/ No newline at end of file | ||
| password: ${{ secrets.TEST_PYPI_API_TOKEN }} |
| if: env.PYPI_API_TOKEN != '' | ||
| with: | ||
| user: __token__ | ||
| password: ${{ env.PYPI_API_TOKEN }} |
There was a problem hiding this comment.
This should really be a secret, no?
One pattern to take is to have two secrets
- PYPI_API_TOKEN
- TEST_PYPI_API_TOKEN
And use the an input to decide which secret to read
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.
The PR improves aims to make kalign publishable to PyPI. It adds a publishing workflow and makes the python
kalignCLI work reliably. I have done my own test publish to TestPyPI to make sure it works. You can test it out usingChanges
kalignconsole script implementation to run the Python bindings directly (instead of shelling out to a separately-installedkalignbinary, which could recurse into itself afterpip install). (python-kalign/cli.py:1)kalign.__version__resolve from installed distribution metadata to avoid version drift. (python-kalign/__init__.py)README-python.mdfor PyPI long description.license = "GPL-3.0-or-later", includeCOPYINGvialicense-files, and removed the deprecatedLicense ::classifier to satisfy modern metadata validation. (pyproject.toml)workflow_dispatchinput to optionally publish to TestPyPI usingTEST_PYPI_API_TOKEN.macos-14to avoiddelocatefailures withlibompbuilt for macOS 15.kalign-test). (.github/workflows/wheels.yml:1)tests/python/test_cli.py)README.md:245)Let me know how it looks @TimoLassmann, and if you have any other recommendations! Thanks again for being open for a contribution like this.
I believe on your end once everything behaves as expected, you will have to make a PyPI account and add your token to the github repository secrets so that the
PYPI_API_TOKENvariable will be set in the workflow. I added instructions in the README about how to cut a new release in this workflow.cc: @jnwei, @jandom