Skip to content

feat: add --local-version option to wheel pack - #694

Merged
agronholm merged 6 commits into
pypa:mainfrom
pctablet505:fix-570-wheel-pack-local-version
Jul 19, 2026
Merged

feat: add --local-version option to wheel pack#694
agronholm merged 6 commits into
pypa:mainfrom
pctablet505:fix-570-wheel-pack-local-version

Conversation

@pctablet505

Copy link
Copy Markdown
Contributor

Fixes #570

Add a --local-version option to wheel pack that appends, replaces, or removes a PEP 440 local version identifier from the wheel. The command renames the .dist-info directory and updates the Version field in METADATA accordingly.

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.75000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.70%. Comparing base (4a63caf) to head (a3b96f9).

Files with missing lines Patch % Lines
src/wheel/_commands/pack.py 93.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #694      +/-   ##
==========================================
+ Coverage   55.60%   56.70%   +1.10%     
==========================================
  Files          15       15              
  Lines        1223     1252      +29     
==========================================
+ Hits          680      710      +30     
+ Misses        543      542       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

check-sdist's --inject-junk check (bumped to v1.5.0 in a recent
pre-commit autoupdate) caught that [tool.flit.sdist]'s tests/**/*.py
include glob is untracked-file-blind: an injected junk file under a
tests/**/*.egg-info/ dir leaked into the sdist even though .egg-info
is already gitignored. Add a matching exclude.
@pctablet505
pctablet505 marked this pull request as ready for review July 17, 2026 12:47
Comment thread tests/commands/test_pack.py Outdated

@agronholm agronholm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@agronholm
agronholm merged commit 0ca6f24 into pypa:main Jul 19, 2026
16 checks passed
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.

Add support for adding/changing local version identifiers

2 participants