feat: make Pytorch-Wildlife the release-ready framework home (port fixes + PyPI Trusted Publishing)#17
Open
rain-Brian wants to merge 2 commits into
Open
feat: make Pytorch-Wildlife the release-ready framework home (port fixes + PyPI Trusted Publishing)#17rain-Brian wants to merge 2 commits into
rain-Brian wants to merge 2 commits into
Conversation
Completes the repo split so this repo is the canonical PytorchWildlife source. - Port the 2 post-split bug fixes that landed in microsoft/Biodiversity after the 2026-05-14 source copy, so this repo is a complete superset: - batch-classification ImageFolder fix (ClassificationImageFolder) - upstream PR #616 - default MegaDetectorV6 version identifiers - upstream PR #613 src/PytorchWildlife now matches Biodiversity's package byte-for-byte. - Bump version 1.3.0 -> 1.3.1 (PyPI rejects re-uploading an existing version). - Add a tokenless PyPI Trusted Publishing (OIDC) workflow that builds and uploads on a published GitHub Release. No API token or stored secret. One-time maintainer setup is documented in the workflow header. Verified: python -m build produces pytorchwildlife-1.3.1 sdist + wheel; wheel METADATA Homepage resolves to github.com/microsoft/Pytorch-Wildlife.
Validate sdist + wheel metadata (twine check) between build and Trusted-Publishing upload, so a malformed long_description or metadata is caught before it reaches PyPI.
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.
What
Completes the repo split so microsoft/Pytorch-Wildlife is the canonical, complete, release-ready home for the
PytorchWildlifeframework. Prepares the PyPI cut-over so the maintainer's remaining action is minimal.Changes
ClassificationImageFolderfix (upstream PR #616) and the default MegaDetectorV6 version identifiers (upstream PR #613). After this,src/PytorchWildlifematches Biodiversity's package exactly (verifieddiff -rqclean) — so removing the leftover from Biodiversity loses nothing..github/workflows/publish.yml): builds + uploads on a published GitHub Release via OIDC. No API token, no stored secret.Why
PyPI's
PytorchWildlifeHome-page still points at the old CameraTraps/Biodiversity repo. This repo'spyproject.tomlalready declaresHomepage = github.com/microsoft/Pytorch-Wildlife, so the next release cut from here auto-corrects the PyPI link.Verification
diff -rq Biodiversity/PytorchWildlife Pytorch-Wildlife/src/PytorchWildlife→ clean (complete superset).ClassificationImageFolderalready defined. No behavior breakage.python -m build→pytorchwildlife-1.3.1sdist + wheel; wheel METADATAHomepage= github.com/microsoft/Pytorch-Wildlife.Maintainer action to publish (documented in the workflow header)
PytorchWildlifePyPI project — ownermicrosoft, repoPytorch-Wildlife, workflowpublish.yml, environmentpypi.Part of resolving the hub/framework duplication (ADO Epic 506340). No reviewer set per current instruction.