-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wheel tags does not remove existing build tags #587
Comments
The build tag is not the same as the distribution version, and most wheels don't have a build tag at all. So, the behavior you're describing seems correct to me. Though the name "build tag" confusingly includes the word However, I'm surprised by the " (I'm not affiliated with this project, just happened to notice your bug.) |
You can’t change the version since often the version is hardcoded into the wheel in the source as a The build tag is an optional thing that wheels don’t have by default. It’s called a tag and not a number since it can be anything. |
The build tag can be removed with |
Running wheel tags whilst attempting to modify the the build tag results in some strange behavior. This might be a documentation problem but the behavior was not what I was expecting.
Command
wheel tags --build=0.2.0 dist/mywheel-0.1.0-py3-none-any.whl
Expectation:
Resultant filename:
mywheel-0.2.0-py3-none-any.whl
,mywheel-0.2.0.dist-info/WHEEL
: Tag updated toBuild: 0.2.0
Instead:
Resultant filename:
mywheel-0.1.0-0.2.0-py3-none-any.whl
mywheel-0.1.0.dist-info/WHEEL
: Added tagBuild: 0.2.0
, andBuild: 0.1.0
also retained.Also attempted
I also attempted to remove the 0.1.0 build tag by prefixing with a
-
as per the documentation:wheel tags --build=-0.1.0 dist/mywheel-0.1.0-0.2.0-py3-none-any.whl
wheel tags: error: argument --build: build tag must begin with a digit
Usecase
My usecase for this is for my CI to be able to build and test a wheel prior to me tagging it ready for release, and so I will want to update the wheel from a prerelease to a release version.
wheel version
wheel 0.41.3
The text was updated successfully, but these errors were encountered: