Skip to content

Commit

Permalink
make install now installs extras (microsoft#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
markwaddle authored Oct 16, 2024
1 parent 99eeacc commit 03750a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
8 changes: 2 additions & 6 deletions assistants/prospector-assistant/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions libraries/python/assistant-extensions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ description = "Add your description here"
authors = [{ name = "Semantic Workbench Team" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"assistant-drive>=0.1.0",
"docx2txt>=0.8",
"openai>=1.51.2",
"pdfplumber>=0.11.4",
"semantic-workbench-assistant>=0.1.0",
]
dependencies = ["openai>=1.51.2", "semantic-workbench-assistant>=0.1.0"]

[project.optional-dependencies]
attachments = ["docx2txt>=0.8", "pdfplumber>=0.11.2"]
attachments = ["docx2txt>=0.8", "pdfplumber>=0.11.2", "assistant-drive>=0.1.0"]

[tool.uv]
package = true
Expand Down
8 changes: 2 additions & 6 deletions libraries/python/assistant-extensions/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tools/makefiles/python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ else
venv_dir = .venv
endif

UV_SYNC_ARGS ?= --all-extras

## Rules

.PHONY: install
Expand All @@ -35,5 +37,5 @@ format:
ifneq ($(findstring pytest,$(if $(shell command -v uv $(null_stderr)),$(shell uv tree --depth 1),)),)
.PHONY: test
test:
uv run pytest $(PYTEST_ARGS)
uv run $(uv_project_args) pytest $(PYTEST_ARGS)
endif

0 comments on commit 03750a0

Please sign in to comment.