From ea6b945d73bae163cff519f0bc69df4bde5c3339 Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Wed, 5 Aug 2026 10:19:53 +0200 Subject: [PATCH 1/2] Remove requirements.txt & suggest pyproject-only for Python projects - we pretty much always prefer Pixi workspaces over `requirements.txt` - for Python-only projects, it's worth to note that Pixi supports workspace definitions also from a single `pyproject.toml` --- requirements.txt | 1 - scripts/template_update.py | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9ee2dfb..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -rerun-sdk>=0.22.1,<0.23.0 diff --git a/scripts/template_update.py b/scripts/template_update.py index 2fa705e..b2f2788 100755 --- a/scripts/template_update.py +++ b/scripts/template_update.py @@ -32,7 +32,6 @@ "main.py", "pixi.lock", "README.md", - "requirements.txt", } # Files required by C++, but not by _both_ Python and Rust @@ -55,7 +54,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 @@ -107,6 +105,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: From eafc65b2513b62abeffa306006e0df0748dace17 Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Wed, 5 Aug 2026 10:26:57 +0200 Subject: [PATCH 2/2] fmt + do not overwrite --- scripts/template_update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/template_update.py b/scripts/template_update.py index b2f2788..9683b50 100755 --- a/scripts/template_update.py +++ b/scripts/template_update.py @@ -32,6 +32,7 @@ "main.py", "pixi.lock", "README.md", + "requirements.txt", # Removed from template, but may contain important content in existing forks. } # Files required by C++, but not by _both_ Python and Rust @@ -107,7 +108,7 @@ def init(languages: set[str], dry_run: bool) -> None: delete_files_and_folder(files_to_delete, dry_run) if languages == {"python"}: print( - "\nYou initialized a pure-Python repo.\n" \ + "\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/" )