You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a local_scheme in pyproject.toml using entrypoints, it is used correctly in python -m setuptools_scm but not used in the generated version file, and not used in the file names of the distribution archives when building them.
The pyroject.toml file has these relevant sections:
Here is the difference between the python -m setuptools_scm output and the version in the (freshly) generated _version_scm.py file:
Commit state Latest tag python -m setuptools_scm _version_scm.py
------------------------------------------------------------------------------------------------
Clean 1.23.0 on latest commit 1.23.0 1.23.0+unknown
Dirty 1.23.0 on latest commit 1.23.0.post1.dev0+dirty 1.23.0.post1.dev0+unknown
Clean 1.22.2 on 13 commits back 1.22.2.post1.dev13 1.22.2.post1.dev13+unknown
Dirty 1.22.2 on 13 commits back 1.22.2.post1.dev13+dirty 1.22.2.post1.dev13+unknown
The text was updated successfully, but these errors were encountered:
After some more investigation, it turns out that the result depends on whether "build" is run in an isolated environment or not:
The above results were for an isolated environment (default of "build").
When running "build" in a non-isolated environment (i.e. specify its --no-isolation option), the generated _version_scm.py file shows the same version that python -m setuptools_scm shows.
So my circumvention for now is to run "build" in a non-isolated environment. That's more transparent anyway.
When specifying a local_scheme in pyproject.toml using entrypoints, it is used correctly in
python -m setuptools_scm
but not used in the generated version file, and not used in the file names of the distribution archives when building them.The
pyroject.toml
file has these relevant sections:The
myproject/_local_scheme.py
file has this content:Here is the difference between the
python -m setuptools_scm
output and the version in the (freshly) generated_version_scm.py
file:The text was updated successfully, but these errors were encountered: