Skip to content

chore: remove orphan requirements.txt#29

Open
MackDing wants to merge 1 commit into
cactus-compute:mainfrom
MackDing:chore/remove-orphan-requirements-txt
Open

chore: remove orphan requirements.txt#29
MackDing wants to merge 1 commit into
cactus-compute:mainfrom
MackDing:chore/remove-orphan-requirements-txt

Conversation

@MackDing
Copy link
Copy Markdown

What

Delete requirements.txt. It's not referenced anywhere and is out of sync with pyproject.toml.

Why

The documented install path in the README is:

cd needle && source ./setup

./setup calls pip install -e ., which reads only pyproject.toml. requirements.txt is consulted by nothing in the repo (no README, no setup, no CI, no docs).

It's also out of sync with pyproject.toml in both directions:

Package requirements.txt pyproject.toml Imported in needle/
pyyaml 0 imports (dead)
tqdm 5 imports
scipy — (transitive)

Net effect: anyone who guesses pip install -r requirements.txt ends up with a broken env (no tqdm, ImportError as soon as they run training/data scripts) and an unneeded dep.

How

- requirements.txt  (deleted)

That's the whole change. pyproject.toml stays the single source of truth.

Alternatives considered

  • Sync requirements.txt to match pyproject.toml — keeps two files in lockstep forever; nothing references requirements.txt today, so the second file would still drift. Happy to do this instead if you'd rather keep a generated requirements file (e.g. for Docker / non-pip install -e . consumers).

requirements.txt is not referenced anywhere in the repo (README,
'setup', pyproject.toml, or any docs) and is out of sync with
pyproject.toml in both directions:

  - lists 'pyyaml' (zero imports in needle/)
  - missing 'tqdm' (imported in 5 places in needle/)
  - missing 'scipy' (declared in pyproject.toml)

The documented install path is 'source ./setup', which calls
'pip install -e .' and only ever consults pyproject.toml.

Anyone trying 'pip install -r requirements.txt' as a guess gets a
broken environment (no tqdm). Deleting it removes a footgun and
leaves pyproject.toml as the single source of truth for deps.

Signed-off-by: Blossom <svip87@iCloud.com>
@MackDing MackDing force-pushed the chore/remove-orphan-requirements-txt branch from e87dfe6 to 4d7bde9 Compare May 26, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant