Skip to content

Conversation

kalfa
Copy link

@kalfa kalfa commented Nov 14, 2024

There is no easy way to just do the equivalent of python -m setuptools_scm --strip-dev via pyproject.toml

This adds a field strip_dev:bool to the Configuration dataclass which maps to

[tool.setuptools_scm]
strip_dev = true

and when true makes any version computed a non-dev version. the same of --strip-dev.

It seems that any other way is to fiddle with python code.

Having python code in large projects means either having the code repeated for each repo, or having to have a single package from which all the build setups needs to depends. This would be ok, but is largely prerible adding a description line to pyproject and avoid the hassle.

@kalfa kalfa marked this pull request as draft November 14, 2024 14:41
@kalfa kalfa closed this Nov 14, 2024
@kalfa
Copy link
Author

kalfa commented Nov 14, 2024

exploring various schema configurations.

they don't seem to work for me, but I'd rather use those if they do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant