Skip to content

Commit c395c91

Browse files
Merge pull request #981 from jamesbraza/documenting-dist-names
Documenting `SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME}`
2 parents 83d5e14 + b68e9bc commit c395c91

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/config.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,22 @@ Callables or other Python objects have to be passed in `setup.py` (via the `use_
108108
: used as the primary source for the version number
109109
in which case it will be an unparsed string
110110

111-
!!! warning "it is strongly recommended to use use distribution name specific pretend versions"
111+
!!! warning ""
112112

113+
it is strongly recommended to use distribution-specific pretend versions
114+
(see below).
113115

114116
`SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME}`
115-
: used as the primary source for the version number
116-
in which case it will be an unparsed string
117+
: used as the primary source for the version number,
118+
in which case it will be an unparsed string.
119+
Specifying distribution-specific pretend versions will
120+
avoid possible collisions with third party distributions
121+
also using ``setuptools_scm``
117122

118123
the dist name normalization follows adapted PEP 503 semantics, with one or
119124
more of ".-_" being replaced by a single "_", and the name being upper-cased
120125

121-
it takes precedence over ``SETUPTOOLS_SCM_PRETEND_VERSION``
126+
this will take precedence over ``SETUPTOOLS_SCM_PRETEND_VERSION``
122127

123128
`SETUPTOOLS_SCM_DEBUG`
124129
: enable the debug logging

0 commit comments

Comments
 (0)