Skip to content

Commit

Permalink
Adds uv.lock files to repo (#81)
Browse files Browse the repository at this point in the history
And updates production installs (in Dockerfiles and in workflows) to use
lock files and not update them
  • Loading branch information
markwaddle authored Oct 2, 2024
1 parent c9f6c8d commit 2b8b44f
Show file tree
Hide file tree
Showing 30 changed files with 18,632 additions and 113 deletions.
5 changes: 1 addition & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
"nvmVersion": "latest"
},
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {
"version": 15
}
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workbench-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: pnpm install
working-directory: ./workbench-app
run: pnpm install
run: pnpm install --frozen-lockfile

- name: pnpm build
env:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

- name: pnpm install
working-directory: ./workbench-app
run: pnpm install
run: pnpm install --frozen-lockfile

- name: pnpm build
env:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ appsettings.*.json

# Dependencies and build cache
node_modules
poetry.lock
uv.lock
.venv
__pycache__
.pytest_cache
Expand Down
1,612 changes: 1,612 additions & 0 deletions assistants/prospector-assistant/uv.lock

Large diffs are not rendered by default.

1,630 changes: 1,630 additions & 0 deletions assistants/skill-assistant/uv.lock

Large diffs are not rendered by default.

766 changes: 766 additions & 0 deletions examples/python/python-01-echo-bot/uv.lock

Large diffs are not rendered by default.

1,393 changes: 1,393 additions & 0 deletions examples/python/python-02-simple-chatbot/uv.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import google.generativeai as genai
import openai
from anthropic import AsyncAnthropic
from azure.identity.aio import (DefaultAzureCredential,
get_bearer_token_provider)
from azure.identity.aio import DefaultAzureCredential, get_bearer_token_provider
from content_safety.evaluators import CombinedContentSafetyEvaluatorConfig
from pydantic import BaseModel, ConfigDict, Field
from semantic_workbench_assistant import config
Expand Down Expand Up @@ -359,10 +358,7 @@ class OllamaServiceConfig(ServiceConfig):
] = "ollama"

def new_client(self, **kwargs) -> openai.AsyncOpenAI:
return openai.AsyncOpenAI(
base_url=f"{self.ollama_endpoint}",
api_key=self.openai_api_key
)
return openai.AsyncOpenAI(base_url=f"{self.ollama_endpoint}", api_key=self.openai_api_key)


# endregion
Expand Down
1,753 changes: 1,753 additions & 0 deletions examples/python/python-03-multimodel-chatbot/uv.lock

Large diffs are not rendered by default.

777 changes: 777 additions & 0 deletions libraries/python/chat-driver/uv.lock

Large diffs are not rendered by default.

1,295 changes: 1,295 additions & 0 deletions libraries/python/content-safety/uv.lock

Large diffs are not rendered by default.

203 changes: 203 additions & 0 deletions libraries/python/context/uv.lock

Large diffs are not rendered by default.

185 changes: 185 additions & 0 deletions libraries/python/events/uv.lock

Large diffs are not rendered by default.

739 changes: 739 additions & 0 deletions libraries/python/function-registry/uv.lock

Large diffs are not rendered by default.

604 changes: 604 additions & 0 deletions libraries/python/semantic-workbench-api-model/uv.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ async def get(self, context: ConversationContext) -> AssistantConversationInspec

service = app.fastapi_app()

monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda:httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda:AllOKTransport())
monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda: httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda: AllOKTransport())

async with LifespanManager(service):
assistant_id = uuid.uuid4()
Expand Down Expand Up @@ -280,8 +280,8 @@ async def import_(self, conversation_context: ConversationContext, stream: IO[by

service = app.fastapi_app()

monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda:httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda:AllOKTransport())
monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda: httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda: AllOKTransport())

async with LifespanManager(service):
assistant_id = uuid.uuid4()
Expand Down Expand Up @@ -355,8 +355,8 @@ class TestConfigModel(BaseModel):

service = app.fastapi_app()

monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda:httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda:AllOKTransport())
monkeypatch.setattr(assistant_service_client, "httpx_transport_factory", lambda: httpx.ASGITransport(app=service))
monkeypatch.setattr(workbench_service_client, "httpx_transport_factory", lambda: AllOKTransport())

async with LifespanManager(service):
assistant_id = uuid.uuid4()
Expand Down
766 changes: 766 additions & 0 deletions libraries/python/semantic-workbench-assistant/uv.lock

Large diffs are not rendered by default.

1,189 changes: 1,189 additions & 0 deletions libraries/python/skills/notebooks/uv.lock

Large diffs are not rendered by default.

735 changes: 735 additions & 0 deletions libraries/python/skills/skill-library/uv.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from document_skill.document_skill import Attachment, DocumentContext # temp for dev testing purposes
from document_skill.document_skill import Attachment, DocumentContext # temp for dev testing purposes
from document_skill.document_skill import DocumentSkill


__all__ = [
"Attachment",
"DocumentContext",
"DocumentSkill",
]
]
Loading

0 comments on commit 2b8b44f

Please sign in to comment.