Skip to content

Commit 8611a08

Browse files
committed
fix: support setting the name
Signed-off-by: Henry Schreiner <[email protected]>
1 parent d63416b commit 8611a08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scikit_build_core/build/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import copy
4+
import dataclasses
45
from typing import TYPE_CHECKING, Any
56

67
from packaging.version import Version
@@ -43,7 +44,7 @@ def get_standard_metadata(
4344
if settings.minimum_version is not None and settings.minimum_version < Version(
4445
"0.5"
4546
):
46-
metadata.name = metadata.canonical_name
47+
metadata = dataclasses.replace(metadata, name=metadata.canonical_name)
4748

4849
# The description field is required to be one line. Instead of merging it
4950
# or cutting off subsequent lines (setuptools), we throw a nice error.

0 commit comments

Comments
 (0)