Skip to content

Commit cc25427

Browse files
kkraus14cursoragent
andcommitted
Revert unrelated changes to .pre-commit-config, .gitattributes, cuda_python
These files had incidental changes (whitespace, quoting style, setuptools_scm config) that are outside the scope of the uv migration. Copyright year auto-updated by pre-commit hook. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 650e80f commit cc25427

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cuda_core/cuda/core/_cpp/*.hpp -binary text diff
1414
*.svg binary
1515
# SCM syntax highlighting & preventing 3-way merges
1616
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
17+
1718
# "export-subst" specifies that this file will get filled in with the current
1819
# commit and tag information when running `git archive`. This allows
1920
# `setuptools-scm` to correctly determine the version when building from a git

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repos:
4646
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
4747
hooks:
4848
- id: check-added-large-files
49-
exclude: 'cuda_bindings/cuda/bindings/nvml\.pyx'
49+
exclude: cuda_bindings/cuda/bindings/nvml.pyx
5050
- id: check-case-conflict
5151
- id: check-docstring-first
5252
- id: check-merge-conflict

cuda_python/pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ documentation = "https://nvidia.github.io/cuda-python/"
4141
repository = "https://github.com/NVIDIA/cuda-python/"
4242
issues = "https://github.com/NVIDIA/cuda-python/issues/"
4343

44-
# Version from git tags; setup.py still overrides install_requires at wheel build
45-
# for exact version pinning (~= for release, == for dev).
46-
[tool.setuptools_scm]
47-
root = ".."
48-
version_file = "cuda_python/_version.py"
49-
tag_regex = "^(?P<version>v\\d+\\.\\d+\\.\\d+)"
50-
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"]
44+
# The [tool.setuptools_scm] section is handled in setup.py since we need to
45+
# dynamically set the dependency to cuda_bindings based on the dynamically
46+
# determinded version

0 commit comments

Comments
 (0)