Skip to content

Python modernization - #2

Open
orlitzky wants to merge 6 commits into
clarkbox:masterfrom
orlitzky:pyproject-toml
Open

Python modernization#2
orlitzky wants to merge 6 commits into
clarkbox:masterfrom
orlitzky:pyproject-toml

Conversation

@orlitzky

Copy link
Copy Markdown
Contributor

Our distro package started throwing errors with python-3.14, so I took the opportunity to update to whatever is in fashion today:

  • Use pyproject.toml instead of setup.py
  • Let pip (or whatever build front-end is being used) generate the main script
  • Remove old < python-3.7 workarounds
  • Update the README for those changes
  • Test with python-3.14 and bump to v0.0.2

orlitzky added 6 commits May 13, 2026 09:33
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().
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.
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.

1 participant