[WebGPU plugin EP] Package improvements#28525
Open
edgchen1 wants to merge 5 commits into
Open
Conversation
Expand the [project] table in pyproject.toml.in with author, keywords, classifiers, and a [project.urls] table so the published wheel mirrors the metadata exposed by the main onnxruntime package on PyPI.
Switch to the PEP 639 license declaration (license = "MIT" plus license-files) and bundle LICENSE and ThirdPartyNotices.txt from the repo root by staging them next to setup.py during the wheel build. This requires setuptools >= 77, so bump the floor in both pyproject.toml.in and requirements-build-wheel.txt.
Classifiers omit specific Python minor versions because the wheel is tagged py3-none-{platform}; requires-python conveys the floor.
Switch the .nupkg license declaration from a bare PackageLicenseExpression to PackageLicenseFile, and bundle LICENSE and ThirdPartyNotices.txt at the package root so the actual license text and third-party notices ship with the package (parity with the Python wheel and the main ONNX Runtime NuGet). Add PackageProjectUrl pointing at https://onnxruntime.ai so nuget.org surfaces a project home-page link distinct from the source repository URL. pack_nuget.py now copies LICENSE and ThirdPartyNotices.txt from the repo root into the staging directory before dotnet pack so the staged csproj can reference them by simple relative paths.
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.
Description
Motivation and Context
WebGPU plugin EP packaging improvements.
Note: Similar updates can be considered for the CUDA plugin EP, but this PR is scoped to just the WebGPU EP for ease of cherry-picking into the WebGPU plugin EP release branch.