Skip to content

Commit

Permalink
rinfo: remove release_info file in the package data
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Aug 28, 2024
1 parent 4fd868e commit 2860e03
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pdm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def pdm_build_initialize(context: Context) -> None:
context.ensure_build_dir()
proj_name: str = context.config.metadata['name']
build_dir = pathlib.Path(context.build_dir)
data_path = context.root.joinpath(f"share/{proj_name}")
pkg_path = build_dir.joinpath(__package_name__)
pkg_path.mkdir(parents=True, exist_ok=True)
rinfo_path: pathlib.Path = pkg_path.joinpath("release_info")
Expand Down Expand Up @@ -80,9 +79,6 @@ def pdm_build_initialize(context: Context) -> None:
rinfo_data = rinfo_path.read_text()
else:
rinfo_data = ""
data_path.mkdir(parents=True, exist_ok=True)
if rinfo_data:
data_path.joinpath("release_info").write_text(rinfo_data)
git_ignore = build_dir.joinpath(".gitignore")
if git_ignore.is_file():
git_ignore.unlink()
Expand Down

0 comments on commit 2860e03

Please sign in to comment.