Skip to content

Commit

Permalink
fix: support setting the name
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 28, 2024
1 parent d63416b commit 8611a08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scikit_build_core/build/metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import copy
import dataclasses
from typing import TYPE_CHECKING, Any

from packaging.version import Version
Expand Down Expand Up @@ -43,7 +44,7 @@ def get_standard_metadata(
if settings.minimum_version is not None and settings.minimum_version < Version(
"0.5"
):
metadata.name = metadata.canonical_name
metadata = dataclasses.replace(metadata, name=metadata.canonical_name)

Check warning on line 47 in src/scikit_build_core/build/metadata.py

View check run for this annotation

Codecov / codecov/patch

src/scikit_build_core/build/metadata.py#L47

Added line #L47 was not covered by tests

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

0 comments on commit 8611a08

Please sign in to comment.