-
Notifications
You must be signed in to change notification settings - Fork 245
[REL] Add git archival support for setuptools-scm #1609
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
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| node: $Format:%H$ | ||
| node-date: $Format:%cI$ | ||
| ref-names: $Format:%D$ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| cuda/_version.py export-subst | ||
|
Contributor
Author
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 is a file that hasn't existed in the repo for a long time. Just removing it for cleanup -- not strictly necessary. |
||
|
|
||
| * text eol=lf | ||
| *.cmd text eol=crlf | ||
|
|
||
|
|
@@ -16,3 +14,9 @@ cuda_core/cuda/core/_cpp/*.hpp -binary text diff | |
| *.svg binary | ||
| # SCM syntax highlighting & preventing 3-way merges | ||
| pixi.lock merge=binary linguist-language=YAML linguist-generated=true | ||
|
|
||
| # "export-subst" specifies that this file will get filled in with the current | ||
| # commit and tag information when running `git archive`. This allows | ||
| # `setuptools-scm` to correctly determine the version when building from a git | ||
| # archive. See #1609. | ||
| .git_archival.txt export-subst | ||
|
Collaborator
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. There is no immediately obvious connection from Maybe there is a better way to make the connection more discoverable?
Contributor
Author
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. I've added a comment here. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ repos: | |
| language: python | ||
| additional_dependencies: | ||
| - https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl | ||
| exclude: '.*pixi\.lock' | ||
| exclude: '(.*pixi\.lock)|(\.git_archival\.txt)' | ||
|
Contributor
Author
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't put any "extra" content in this file, including a copyright header, so we need to have the SPDX precommit ignore it. |
||
| args: ["--fix"] | ||
|
|
||
| - id: no-markdown-in-docs-source | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.git_archival.txt |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.git_archival.txt |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.git_archival.txt |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.git_archival.txt |
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.
To document this here: I asked Cursor(GPT-5.3 Codex Extra High):
The response:
I saw Cursor writing code to actually try it out locally, so I believe this is a reliable/conclusive finding.