build: modernize packaging and release workflow#211
Merged
cheind merged 5 commits intoJul 13, 2026
Conversation
Contributor
Author
|
All these updates are much needed in order to publish an up-to-date version of this package, now that HOTA matches the trackeval results |
Owner
|
Hey, thanks again - you may want to add your name to the list of authors if you care! |
Contributor
Author
|
Glad to contribute to such a great package! I would love to be listed as author of this ❤️. Specially for the HOTA pypi release 🚀 |
Owner
|
yah, just open another pull request with your author details - I will merge in the coming days when I have a bit of spare time. thanks again! |
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.
Summary
setup.pypackaging with declarativepyproject.tomlmetadata and setuptools 77+pyproject.tomlpyproject.tomlpywrapgraphAPIs toSimpleLinearSumAssignmentWhy
The previous packaging and release process depended on manually parsed
setup.pymetadata, end-of-life Python and tool versions, and references to AppVeyor and Travis configurations that no longer exist. It had no current PyPI publishing workflow and retained several unreferenced legacy files.The existing OR-Tools integration also relied on
ortools.graph.pywrapgraph, which has been removed from supported OR-Tools releases.This change establishes one canonical package configuration, tests the complete supported Python range, updates the optional assignment backend, and publishes immutable artifacts through short-lived OIDC credentials.
Impact
pip install motmetricsuv venvand install thedevgroup withuv pip install --group devvX.Y.Ztag after merging a reviewed release PRpublish-to-pypi.ymland the protectedpypiGitHub environment as a Trusted Publisher before the first automated releaseTesting
python -m buildproduced the source distribution andpy3-none-anywheelpython -m twine checkpassed for both artifacts1.4.0git diff --checkpassedSuccessful matrix run: https://github.com/cheind/py-motmetrics/actions/runs/29200906225