No unified requirements.txt or pyproject.toml at project root #6

Open
opened 2026-03-19 17:30:05 +00:00 by llabeyrie · 0 comments
Owner

Description

The project has no top-level dependency manifest. Dependencies are scattered:

  • clean-text-to-keywords/requirements.txt — only spacy>=3.7.0 and yake>=0.4.2
  • text-cleaner/ needs nltk but has no requirements file at all
  • card_generator_adapter.py needs diffusers, torch, peft, transformers, accelerate, safetensors
  • app.py needs streamlit, Pillow
  • fetch_card.py needs tcgdexsdk, Pillow

Problems

  • Impossible to set up the project with a single pip install command
  • No version pinning for most dependencies (torch, diffusers, etc.)
  • New contributors have to read every file to figure out what to install
  • No distinction between dev dependencies and runtime dependencies

Fix

Create a pyproject.toml or root requirements.txt with all dependencies, optionally with extras:

[project]
dependencies = ["Pillow", "nltk", "spacy>=3.7.0", "yake>=0.4.2"]

[project.optional-dependencies]
gpu = ["torch", "diffusers", "peft", "transformers", "accelerate", "safetensors"]
app = ["streamlit"]
fetch = ["tcgdexsdk"]
dev = ["pytest"]
## Description The project has **no top-level dependency manifest**. Dependencies are scattered: - `clean-text-to-keywords/requirements.txt` — only `spacy>=3.7.0` and `yake>=0.4.2` - `text-cleaner/` needs `nltk` but has no requirements file at all - `card_generator_adapter.py` needs `diffusers`, `torch`, `peft`, `transformers`, `accelerate`, `safetensors` - `app.py` needs `streamlit`, `Pillow` - `fetch_card.py` needs `tcgdexsdk`, `Pillow` ### Problems - Impossible to set up the project with a single `pip install` command - No version pinning for most dependencies (torch, diffusers, etc.) - New contributors have to read every file to figure out what to install - No distinction between dev dependencies and runtime dependencies ### Fix Create a `pyproject.toml` or root `requirements.txt` with all dependencies, optionally with extras: ```toml [project] dependencies = ["Pillow", "nltk", "spacy>=3.7.0", "yake>=0.4.2"] [project.optional-dependencies] gpu = ["torch", "diffusers", "peft", "transformers", "accelerate", "safetensors"] app = ["streamlit"] fetch = ["tcgdexsdk"] dev = ["pytest"] ```
llabeyrie added the dependenciespriority: medium labels 2026-03-19 17:31:42 +00:00
Sign in to join this conversation.