Skip to content

Commit 66b781f

Browse files
authored
Merge pull request #1198 from takluyver/fix-wheel-filetype
2 parents 626423a + 5cd02a8 commit 66b781f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

twine/package.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
from twine import wheel
4747

4848
DIST_TYPES = {
49-
"wheel": wheel.Wheel,
49+
"bdist_wheel": wheel.Wheel,
5050
"sdist": pkginfo.SDist,
5151
}
5252

5353
DIST_EXTENSIONS = {
54-
".whl": "wheel",
54+
".whl": "bdist_wheel",
5555
".tar.bz2": "sdist",
5656
".tar.gz": "sdist",
5757
".zip": "sdist",
@@ -152,7 +152,7 @@ def from_filename(cls, filename: str, comment: Optional[str]) -> "PackageFile":
152152
)
153153
raise exceptions.InvalidDistribution(msg)
154154

155-
if dtype == "wheel":
155+
if dtype == "bdist_wheel":
156156
py_version = cast(wheel.Wheel, meta).py_version
157157
elif dtype == "sdist":
158158
py_version = "source"

0 commit comments

Comments
 (0)