Remove redundant requirements.txt in favor of pyproject.toml#56
Remove redundant requirements.txt in favor of pyproject.toml#56
Conversation
Co-authored-by: zimeg <18134219+zimeg@users.noreply.github.com>
README.md
Outdated
|
|
||
| ```sh | ||
| pip install -r requirements.txt | ||
| pip install -e ".[dev]" |
There was a problem hiding this comment.
@copilot Does this include all dependencies? Or just develeopment?
There was a problem hiding this comment.
@copilot Also What does this mean?
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /Users/user/programming/tools/slack-cli/my-app
(A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)
There was a problem hiding this comment.
Good catches! pip install ".[dev]" installs everything — all runtime dependencies from [project].dependencies (slack-sdk, slack-bolt, slack-cli-hooks, openai, python-dotenv) plus the dev tools from [project.optional-dependencies].dev (pytest, ruff).
The -e editable flag was the problem. The pyproject.toml has no [build-system] table, so pip doesn't know which build backend to use for editable installs, causing that error. Dropped the flag in 164897a — pip install ".[dev]" works correctly without editable mode, which is fine for an app template where you run the code rather than develop the package itself.
There was a problem hiding this comment.
That error was caused by the -e (editable mode) flag — pip needs a [build-system] section in pyproject.toml (or a setup.py/setup.cfg) to perform editable installs, and this project has neither. Fixed in 164897a by removing the -e flag: pip install ".[dev]" works without requiring a build backend.
Co-authored-by: zimeg <18134219+zimeg@users.noreply.github.com>
requirements.txt(redundant sincepyproject.tomlmanages dependencies)README.mdinstall command:pip install ".[dev]"(installs all runtime + dev deps without requiring editable mode)✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.