Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mshenhera/4bcad5b49de2c21598a03c8bebac558d to your computer and use it in GitHub Desktop.
Save mshenhera/4bcad5b49de2c21598a03c8bebac558d to your computer and use it in GitHub Desktop.
--- lib/poetry/masonry/builders/wheel.py 2019-05-10 07:25:57.479877000 +0000
+++ lib/poetry/masonry/builders/wheel.py 2019-05-10 12:44:53.680569000 +0000
@@ -199,7 +199,7 @@
def wheel_filename(self): # type: () -> str
return "{}-{}-{}.whl".format(
re.sub(r"[^\w\d.]+", "_", self._package.pretty_name, flags=re.UNICODE),
- re.sub(r"[^\w\d.]+", "_", self._meta.version, flags=re.UNICODE),
+ self._meta.version,
self.tag,
)
@@ -210,7 +210,7 @@
def dist_info_name(self, distribution, version): # type: (...) -> str
escaped_name = re.sub(r"[^\w\d.]+", "_", distribution, flags=re.UNICODE)
- escaped_version = re.sub(r"[^\w\d.]+", "_", version, flags=re.UNICODE)
+ escaped_version = version
return "{}-{}.dist-info".format(escaped_name, escaped_version)
--- lib/poetry/masonry/publishing/uploader.py 2019-05-10 12:48:01.206893000 +0000
+++ lib/poetry/masonry/publishing/uploader.py 2019-05-10 12:48:54.427640000 +0000
@@ -66,7 +66,7 @@
re.sub(
r"[^\w\d.]+", "_", self._package.pretty_name, flags=re.UNICODE
),
- re.sub(r"[^\w\d.]+", "_", version, flags=re.UNICODE),
+ version,
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment