Unverified Commit 9ecb7579 authored by Sébastien Eustace's avatar Sébastien Eustace
Browse files

Cleanup

parent c63da256
Loading
Loading
Loading
Loading
+1 −4
Changes for poetry/masonry/publishing/uploader.py: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -24,8 +24,6 @@ wheel_file_re = re.compile(
    re.VERBOSE
)

KEYWORDS_TO_NOT_FLATTEN = {'gpg_signature', 'content'}

_has_blake2 = hasattr(hashlib, 'blake2b')


@@ -284,8 +282,7 @@ class Uploader:
    def _prepare_data(self, data):
        data_to_send = []
        for key, value in data.items():
            if (key in KEYWORDS_TO_NOT_FLATTEN or
                    not isinstance(value, (list, tuple))):
            if not isinstance(value, (list, tuple)):
                data_to_send.append((key, value))
            else:
                for item in value:
+7 −1
Changes for poetry/masonry/utils/tags.py: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
"""Generate and work with PEP 425 Compatibility Tags."""
"""
Generate and work with PEP 425 Compatibility Tags.

Base implementation taken from
https://github.com/pypa/wheel/blob/master/wheel/pep425tags.py
and adapted to work with poetry's venv util.
"""

import distutils.util
import sys