-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Tell setuptools_scm to ignore non-version tags #3193
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,16 @@ include-package-data = true | |
where = ["src"] | ||
|
||
[tool.setuptools_scm] | ||
tag_regex = "^v(?P<version>20\\d{2}\\.\\d{1,2}\\.\\d{1,2})$" | ||
git_describe_command = [ | ||
"git", | ||
"describe", | ||
"--dirty", | ||
"--tags", | ||
"--long", | ||
"--match", | ||
"v20*", | ||
] | ||
Comment on lines
+154
to
+162
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This changes the command which is used by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can deal with the eventual failure in 77 years :) |
||
|
||
[tool.ruff] | ||
select = [ | ||
|
@@ -263,9 +273,7 @@ filterwarnings = [ | |
"once:The behavior of DataFrame concatenation with empty or all-NA entries is deprecated.:FutureWarning", | ||
] | ||
|
||
markers = [ | ||
"slow: marks tests as slow (deselect with '-m \"not slow\"')", | ||
] | ||
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why this is all in red. Just a change in line-wrapping from my autoformatter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure either but it's very scary. |
||
# Oddly, despite the use of --cov-config=pyproject.toml here, pytest does not seem to | ||
# pick up the source directories specified in the [tool.coverage.run] section below. | ||
# (though it *does* pick up the omit parameters!). This means we need to specify the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tells
setuptools_scm
how to extract the "version" string.