Skip to content

Commit df803aa

Browse files
committed
Fix PyPI upload with manylinux tags
1 parent 3200584 commit df803aa

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.67.2.2] - 2024-11-24
9+
10+
### Fixed
11+
- Fixed PyPI upload by converting Linux wheel tags to manylinux2014 tags
12+
813
## [0.67.2.1] - 2024-11-24
914

1015
### Added

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = trivy_py_ecc
3-
version = 0.67.2.1
3+
version = 0.67.2.2
44
description = Python wrapper around invoking trivy (https://trivy.dev/)
55
long_description = file: README.md
66
long_description_content_type = text/markdown

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def finalize_options(self):
1515

1616
def get_tag(self):
1717
_, _, plat = orig_bdist_wheel.get_tag(self)
18+
# Convert linux tags to manylinux tags for PyPI compatibility
19+
if plat.startswith('linux'):
20+
plat = plat.replace('linux', 'manylinux2014')
1821
# We don't contain any python source, nor any python extensions
1922
return 'py2.py3', 'none', plat
2023

0 commit comments

Comments
 (0)