Skip to content

Commit e9a62ca

Browse files
authored
Another fix for nightly builds (#2229)
We weren't replacing the package name properly.
1 parent f905bff commit e9a62ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pip_build.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ def ignore_files(_, filenames):
4343

4444

4545
def update_build_files(build_path, package, version, is_nightly=False):
46+
package_name = package.replace("-", "_")
4647
build_path = pathlib.Path(build_path)
4748
pyproj_file = build_path / "pyproject.toml"
4849
if is_nightly:
4950
pyproj_contents = pyproj_file.read_text().replace(
50-
f'name = "{package}"', f'name = "{package}-nightly"'
51+
f'name = "{package_name}"', f'name = "{package_name}-nightly"'
5152
)
5253
pyproj_file.write_text(pyproj_contents)
5354

0 commit comments

Comments
 (0)