René's URL Explorer Experiment


Title: Build releases with the pinned hatchling and a publish action that accepts Metadata 2.5 by maxisbey · Pull Request #3380 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Build releases with the pinned hatchling and a publish action that accepts Metadata 2.5 by maxisbey · Pull Request #3380 · modelcontextprotocol/python-sdk

X Title: Build releases with the pinned hatchling and a publish action that accepts Metadata 2.5 by maxisbey · Pull Request #3380 · modelcontextprotocol/python-sdk

Description: The v2.1.0 Publishing run built fine but the upload step rejected the distributions before anything reached PyPI: Checking dist/mcp-2.1.0-py3-none-any.whl: ERROR InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version Motivation and Context Two things combined: The build job runs uv 0.9.5, which does not apply [tool.uv].build-constraint-dependencies to uv build. The hatchling==1.29.0 pin in pyproject.toml therefore never applied to release builds (the 2.0.0 wheel on PyPI says Generator: hatchling 1.31.0), and since hatchling 1.32.0 (2026-08-11) the floating build writes Metadata-Version: 2.5. The publish step is pinned to gh-action-pypi-publish v1.14.0, whose bundled metadata check predates 2.5. The v1.x workflow floats on release/v1 (currently v1.14.2) and published a Metadata 2.5 wheel for v1.29.1 without complaint a few minutes earlier. This bumps uv to 0.12.5 in the build job only, so the existing constraint takes effect (verified locally: uv 0.9.5 builds with hatchling 1.32.0 / Metadata 2.5; uv 0.11.15 and 0.12.5 build with hatchling 1.29.0 / Metadata 2.4, version-from-tag and the mcp-types== pin unchanged), and moves the publish action pin to v1.14.2 so a future metadata bump is not fatal either. The uv pin used by CI (shared.yml, conformance.yml) is left alone here. How Has This Been Tested? Rebuilt both packages from this branch with uv 0.9.5, 0.11.15 and 0.12.5 and compared METADATA/WHEEL; twine check --strict passes on all of them. The workflow itself only runs on release: published, so the real test is re-cutting v2.1.0 from the merge commit. Breaking Changes None. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed AI Disclaimer

Open Graph Description: The v2.1.0 Publishing run built fine but the upload step rejected the distributions before anything reached PyPI: Checking dist/mcp-2.1.0-py3-none-any.whl: ERROR InvalidDistribution: Invalid distri...

X Description: The v2.1.0 Publishing run built fine but the upload step rejected the distributions before anything reached PyPI: Checking dist/mcp-2.1.0-py3-none-any.whl: ERROR InvalidDistribution: Invalid distri...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3380

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8335ccb0-46dc-6276-c4a1-3984b5786a19
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB7E:3F8AB1:21BAF2:2C8095:6B00BF28
html-safe-nonce7ec5c452bae87d88a1d87c740b7ba6ac75d569643a4ad9b0f29ace13ce405bba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjdFOjNGOEFCMToyMUJBRjI6MkM4MDk1OjZCMDBCRjI4IiwidmlzaXRvcl9pZCI6IjQzMDcyMDc4MzAwMzQ3NTk0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47c3aee2932eb7560156dec80508856064220c9f0fa5c6e529e5e47924894e21
hovercard-subject-tagpull_request:4351435845
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3380/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altThe v2.1.0 Publishing run built fine but the upload step rejected the distributions before anything reached PyPI: Checking dist/mcp-2.1.0-py3-none-any.whl: ERROR InvalidDistribution: Invalid distri...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1fee81a280ea86312b69448e261b418189bfd5b5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3380%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3380%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues308 (308)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fix-publish-metadata-2.5https://github.com/modelcontextprotocol/python-sdk/tree/fix-publish-metadata-2.5
Conversation 5 https://github.com/modelcontextprotocol/python-sdk/pull/3380
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/3380/commits
Checks 38 https://github.com/modelcontextprotocol/python-sdk/pull/3380/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Build releases with the pinned hatchling and a publish action that accepts Metadata 2.5 https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/3380/files
68fb7be Build releases with the pinned build backend and publish with an acti… maxisbey Aug 24, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3380/commits/68fb7be64a9e375107de5ed08514539c19289fb0
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
.github/workflows/publish-pypi.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4b
View file https://github.com/modelcontextprotocol/python-sdk/blob/68fb7be64a9e375107de5ed08514539c19289fb0/.github/workflows/publish-pypi.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3380/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4b
https://github.com/modelcontextprotocol/python-sdk/pull/3380/checks?check_run_id=97551511203
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
claudehttps://github.com/apps/claude
Aug 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#r3846545869
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
astral-sh/setup-uv#869https://github.com/astral-sh/setup-uv/issues/869
astral-sh/setup-uv#869https://github.com/astral-sh/setup-uv/issues/869
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4b
https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4b
https://github.com/modelcontextprotocol/python-sdk/pull/3380/files#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4b
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3380/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.