Add dependencies field to pyproject.toml to fix workflow error#849
Conversation
Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com>
Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com>
|
@copilot , it appears you have introduced even more severe errors. Please revert, and redo |
Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com>
You're absolutely right - I misunderstood the issue. I've reverted all the incorrect workflow changes. The original syntax Fixed in commit c7c9b07 by adding |
|
@copilot |
The
The workflow installs it with Did you mean something different, or would you like me to move |
The
test_stub_qualityworkflow failed withModuleNotFoundError: No module named 'requests'becausepyproject.tomlwas missing the requireddependenciesfield in the[project]section.Root Cause
When using
uv pip install -r pyproject.toml --extra <name>, the pyproject.toml file must include adependenciesfield in the[project]section, even if it's empty. Without this field, uv doesn't properly process the optional-dependencies.Changes
Added to pyproject.toml:
This allows the existing workflow command
uv pip install -r pyproject.toml --extra stubber --extra testto properly install optional dependencies includingrequests.Files Updated
pyproject.toml- Addeddependencies = []to[project]sectionThe workflow syntax was already correct and remains unchanged.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.