Skip to content

fix: install [dev] extras in make install-dev to fix make test for new contributors#155

Open
acailic wants to merge 2 commits intomainfrom
fix/issue-154-install-dev-extras
Open

fix: install [dev] extras in make install-dev to fix make test for new contributors#155
acailic wants to merge 2 commits intomainfrom
fix/issue-154-install-dev-extras

Conversation

@acailic
Copy link
Copy Markdown
Owner

@acailic acailic commented Apr 13, 2026

Summary

  • make install-dev was manually listing pytest pytest-asyncio ruff but omitting the [dev] extras group from pyproject.toml
  • This left pytest-timeout, pytest-xdist, pytest-cov, and respx uninstalled
  • Since pyproject.toml sets addopts = "--timeout=120", running make test after make install-dev would immediately fail with unrecognized arguments: --timeout=120
  • Fixed by installing .[server,langchain,pydantic-ai,crewai,dev] — the dev extras already declare all required test tooling

Closes #154

Test plan

  • make install-dev completes without error
  • make test (python3 -m pytest -q) runs successfully after make install-dev
  • CI passes (pytest-timeout is installed both locally and in CI)

🤖 Generated with Claude Code

…154)

The install-dev target was manually listing pytest, pytest-asyncio, and
ruff but skipping the [dev] extras group, which meant pytest-timeout
(and pytest-xdist, pytest-cov, respx) were never installed. Since
pyproject.toml sets addopts = "--timeout=120", running make test after
make install-dev failed immediately with an unrecognized argument error.

Fixes #154

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 13, 2026 02:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the developer install workflow so new contributors can run make install-dev && make test without missing pytest plugins (e.g., pytest-timeout) required by pyproject.toml’s pytest configuration.

Changes:

  • Simplifies make install-dev to install the project with the dev extras instead of manually listing a partial set of test tools.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Makefile Outdated
install-dev:
pip install -e ".[server,langchain,pydantic-ai,crewai]"
pip install pytest pytest-asyncio ruff
pip install -e ".[server,langchain,pydantic-ai,crewai,dev]"
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install-dev installs editable extras .[server,...], but pyproject.toml does not define a server extra under [project.optional-dependencies]. With standard pip, this will fail with "does not provide the extra 'server'" before any dev deps are installed. Either define a server optional-dependency group in pyproject.toml (likely mirroring the FastAPI/SQLAlchemy deps currently listed in pyproject-server.toml) or remove server from this extras list and install server deps another way.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

@acailic acailic Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Removed server from the extras list in install-dev — it is not defined in pyproject.toml's [project.optional-dependencies], so it was a no-op. The dev extras group covers all required test tooling.

`server` is not defined in pyproject.toml's optional-dependencies, so
including it in `.[server,...]` produces a pip warning and installs no
server-specific deps. Remove it; the `dev` extras group already covers
all required test tooling.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

bug: make install-dev omits [dev] extras — pytest-timeout missing, make test fails for new contributors

2 participants