Skip to content

Commit

Permalink
Add no binary tag for CPython
Browse files Browse the repository at this point in the history
# Conflicts:
#	crates/platform-tags/src/tags.rs
  • Loading branch information
zanieb committed Mar 16, 2024
1 parent 585d094 commit 7fa142d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/platform-tags/src/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ impl Tags {
}
}
// 4. no binary
if matches!(implementation, Implementation::CPython) {
tags.push((
format!("cp{}{}", python_version.0, python_version.1),
"none".to_string(),
"any".to_string(),
));
}
for minor in (0..=python_version.1).rev() {
tags.push((
format!("py{}{}", python_version.0, minor),
Expand Down Expand Up @@ -1361,6 +1368,7 @@ mod tests {
py30-none-manylinux_2_5_x86_64
py30-none-manylinux1_x86_64
py30-none-linux_x86_64
cp39-none-any
py39-none-any
py3-none-any
py38-none-any
Expand Down Expand Up @@ -1877,6 +1885,7 @@ mod tests {
py30-none-macosx_10_6_universal2
py30-none-macosx_10_5_universal2
py30-none-macosx_10_4_universal2
cp39-none-any
py39-none-any
py3-none-any
py38-none-any
Expand Down

0 comments on commit 7fa142d

Please sign in to comment.