Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ exclude_also = [
extend-select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
Expand Down
2 changes: 1 addition & 1 deletion src/wheel/_bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def write_wheelfile(
for impl in impl_tag.split("."):
for abi in abi_tag.split("."):
for plat in plat_tag.split("."):
msg["Tag"] = "-".join((impl, abi, plat))
msg["Tag"] = f"{impl}-{abi}-{plat}"

wheelfile_path = os.path.join(wheelfile_base, "WHEEL")
log.info(f"creating {wheelfile_path}")
Expand Down
6 changes: 3 additions & 3 deletions src/wheel/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def requires_to_requires_dist(requirement: Requirement) -> str:
if requirement.url:
return " @ " + requirement.url

requires_dist: list[str] = []
for spec in requirement.specifier:
requires_dist.append(spec.operator + spec.version)
requires_dist: list[str] = [
spec.operator + spec.version for spec in requirement.specifier
]

if requires_dist:
return " " + ",".join(sorted(requires_dist))
Expand Down
2 changes: 1 addition & 1 deletion src/wheel/macosx_libfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def calculate_macosx_platform_tag(archive_root: StrPath, platform_tag: str) -> s
versions_dict: dict[str, tuple[int, int]] = {}
for dirpath, _dirnames, filenames in os.walk(archive_root):
for filename in filenames:
if filename.endswith(".dylib") or filename.endswith(".so"):
if filename.endswith((".dylib", ".so")):
lib_path = os.path.join(dirpath, filename)
min_ver = extract_macosx_min_system_version(lib_path)
if min_ver is not None:
Expand Down
Loading