Skip to content

Commit d27330f

Browse files
committed
PEP 825: update the examples to use more readable labels
Signed-off-by: Michał Górny <mgorny@quansight.com>
1 parent 189385d commit d27330f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

peps/pep-0825.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ Example
282282
283283
"variants": {
284284
// REQUIRED: in variant.json, always a single entry, with the key
285-
// matching the variant label ("x8664v3_openblas") and the value
285+
// matching the variant label ("x86_64_v3_openblas") and the value
286286
// specifying its properties (the system must be compatible with both):
287287
// - blas_lapack :: library :: openblas
288288
// - x86_64 :: level :: v3
289-
"x8664v3_openblas": {
289+
"x86_64_v3_openblas": {
290290
"blas_lapack": {
291291
"library": ["openblas"]
292292
},
@@ -347,10 +347,10 @@ like:
347347
// if a null variant is present
348348
"null": {},
349349
350-
// "x8664v3_openblas" label corresponds to:
350+
// "x86_64_v3_openblas" label corresponds to:
351351
// - blas_lapack :: library :: openblas
352352
// - x86_64 :: level :: v3
353-
"x8664v3_openblas": {
353+
"x86_64_v3_openblas": {
354354
"blas_lapack": {
355355
"library": ["openblas"]
356356
},
@@ -359,10 +359,10 @@ like:
359359
}
360360
},
361361
362-
// "x8664v4_mkl" label corresponds to:
362+
// "x86_64_v4_mkl" label corresponds to:
363363
// - blas_lapack :: library :: mkl
364364
// - x86_64 :: level :: v4
365-
"x8664v4_mkl": {
365+
"x86_64_v4_mkl": {
366366
"blas_lapack": {
367367
"library": ["mkl"]
368368
},
@@ -681,7 +681,7 @@ Example
681681
index = "https://pypi.anaconda.org/mgorny/simple"
682682
wheels = [
683683
{ url = "https://pypi.anaconda.org/mgorny/simple/numpy/2.3.4/numpy-2.3.4-cp314-cp314-linux_x86_64-openblas.whl", hashes = {} },
684-
{ url = "https://pypi.anaconda.org/mgorny/simple/numpy/2.3.4/numpy-2.3.4-cp314-cp314-linux_x86_64-x8664v4_mkl.whl", hashes = {} },
684+
{ url = "https://pypi.anaconda.org/mgorny/simple/numpy/2.3.4/numpy-2.3.4-cp314-cp314-linux_x86_64-x86_64_v4_mkl.whl", hashes = {} },
685685
{ url = "https://pypi.anaconda.org/mgorny/simple/numpy/2.3.4/numpy-2.3.4-cp314-cp314-macosx_13_0_x86_64-accelerate.whl", hashes = {} },
686686
{ url = "https://pypi.anaconda.org/mgorny/simple/numpy/2.3.4/numpy-2.3.4-cp314-cp314-macosx_13_0_x86_64-openblas.whl", hashes = {} },
687687
]
@@ -694,8 +694,8 @@ Example
694694
695695
[packages.variant_json.variants]
696696
null = { }
697-
x8664v3_openblas = { "blas_lapack" = { "library" = ["openblas"]}, "x86_64" = { "level" = ["v3"]} }
698-
x8664v4_mkl = { "blas_lapack" = { "library" = ["mkl"]}, "x86_64" = { "level" = ["v4"]} }
697+
x86_64_v3_openblas = { "blas_lapack" = { "library" = ["openblas"]}, "x86_64" = { "level" = ["v3"]} }
698+
x86_64_v4_mkl = { "blas_lapack" = { "library" = ["mkl"]}, "x86_64" = { "level" = ["v4"]} }
699699
700700
701701
Suggested implementation logic for tools (non-normative)
@@ -960,7 +960,7 @@ interpreter) incompatibility, while other tools could still use it.
960960
However, the authors decided it safer to break the backwards
961961
compatibility. Additionally, reusing tags posed a potential risk of
962962
wheel labels being incorrectly combined with compressed tag sets. For
963-
example, a ``manylinux_2_27_x86_64.manylinux_2_28_x86_64+x8664v3`` tag
963+
example, a ``manylinux_2_27_x86_64.manylinux_2_28_x86_64+x86_64_v3`` tag
964964
would be incorrectly deemed compatible because of the
965965
``manylinux_2_27_x86_64`` part.
966966

0 commit comments

Comments
 (0)