We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d63416b commit 8611a08Copy full SHA for 8611a08
src/scikit_build_core/build/metadata.py
@@ -1,6 +1,7 @@
1
from __future__ import annotations
2
3
import copy
4
+import dataclasses
5
from typing import TYPE_CHECKING, Any
6
7
from packaging.version import Version
@@ -43,7 +44,7 @@ def get_standard_metadata(
43
44
if settings.minimum_version is not None and settings.minimum_version < Version(
45
"0.5"
46
):
- metadata.name = metadata.canonical_name
47
+ metadata = dataclasses.replace(metadata, name=metadata.canonical_name)
48
49
# The description field is required to be one line. Instead of merging it
50
# or cutting off subsequent lines (setuptools), we throw a nice error.
0 commit comments