Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Configuration.strip_dev and strip dev info if set #1085

Closed
wants to merge 1 commit into from

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