Replace setup.py with pyproject.toml, add pipeline CLI entrypoints - #93
Merged
Merged
Conversation
sbiquard
commented
Sep 17, 2026
sbiquard
marked this pull request as ready for review
September 17, 2026 13:54
sbiquard
commented
Sep 17, 2026
| main(args) | ||
|
|
||
|
|
||
| if __name__ == "__main__": |
Contributor
Author
There was a problem hiding this comment.
pip-installed console scripts need a callable without any arguments (entry = "module:func" calls bare func()). Wrapping the argument parser and main(args) call in a cli() function called from the if __name__ == "__main__": block is the most minimal fix to apply and it preserves main's signature.
adrien-laposta
requested changes
Sep 17, 2026
adrien-laposta
approved these changes
Sep 17, 2026
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.
Replaces
setup.pywithpyproject.toml(hatchling backend) and addssoopercool-*console-script entrypoints for the pipeline scripts, so they're runnable withoutpython pipeline/foo.py.List of changes:
pipeline/scripts incli()functions__init__.pyfiles to package so entrypoints resolve[project.scripts]tablescikit-learndependencysotodlibfor stdliblogginginprecompute_cov_couplings.py, using the same loglevel (warning)requirements.txt, deps now live inpyproject.tomlpython setup.py installbecomespip install .