Python modernization - #2
Open
orlitzky wants to merge 6 commits into
Open
Conversation
Python packaging now recommends using [project.scripts] in pyproject.toml to generate your project's "executables." In preparation for that, we move the bin/check_multiple script back into the library, as check_multiple.__main__.main().
A (mostly boilerplate) conversion according to, https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
Now that the script has been moved back into the library and the executable is generated by e.g. pip, you have to use $ PYTHONPATH=lib python -m check_multiple to invoke the __main__ module for testing.
It's 2026, and we no longer have to support python-3.6 and earlier. This allows us to simplify the call to subprocess.run() a bit.
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.
Our distro package started throwing errors with python-3.14, so I took the opportunity to update to whatever is in fashion today: