@@ -262,7 +262,7 @@ Note that running this Dockerfile requires docker with BuildKit enabled
262
262
`[docs] <https://github.com/moby/buildkit/blob/v0.8.3/frontend/dockerfile/docs/syntax.md >`_.
263
263
264
264
To avoid BuildKit and mounting of the .git folder altogether, one can also pass the desired
265
- version as a build argument. Note that ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${UPPERCASED_DIST_NAME } ``
265
+ version as a build argument. Note that ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME } ``
266
266
is preferred over ``SETUPTOOLS_SCM_PRETEND_VERSION ``.
267
267
268
268
@@ -500,12 +500,15 @@ Environment variables
500
500
:SETUPTOOLS_SCM_PRETEND_VERSION:
501
501
when defined and not empty,
502
502
its used as the primary source for the version number
503
- in which case it will be a unparsed string
503
+ in which case it will be an unparsed string
504
504
505
- :SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${UPPERCASED_DIST_NAME }:
505
+ :SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME }:
506
506
when defined and not empty,
507
507
its used as the primary source for the version number
508
- in which case it will be a unparsed string
508
+ in which case it will be an unparsed string
509
+
510
+ the dist name normalization follows adapted PEP-503 semantics, with one or
511
+ more of ".-_" being replaced by a single "_", and the name being upper-cased
509
512
510
513
it takes precedence over ``SETUPTOOLS_SCM_PRETEND_VERSION ``
511
514
0 commit comments