Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

9 changes: 7 additions & 2 deletions scripts/template_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"main.py",
"pixi.lock",
"README.md",
"requirements.txt",
"requirements.txt", # Removed from template, but may contain important content in existing forks.
}

# Files required by C++, but not by _both_ Python and Rust
Expand All @@ -55,7 +55,6 @@
"pixi.lock", # Pixi is only C++ & Python - For Rust we only use cargo
"pixi.toml", # Pixi is only C++ & Python - For Rust we only use cargo
"pyproject.toml",
"requirements.txt",
}

# Files required by Rust, but not by _both_ C++ and Python
Expand Down Expand Up @@ -107,6 +106,12 @@ def init(languages: set[str], dry_run: bool) -> None:
print("Removing all language-specific files not needed for languages {languages}.")
files_to_delete = calc_deny_set(languages)
delete_files_and_folder(files_to_delete, dry_run)
if languages == {"python"}:
print(
"\nYou initialized a pure-Python repo.\n"
"Consider merging pixi.toml into pyproject.toml for easier maintenance, see: "
"https://pixi.prefix.dev/latest/python/pyproject_toml/"
)


def remove_file(filepath: str) -> None:
Expand Down
Loading