Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/openapi_spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
with:
python-version: "3.12"
- name: Install dependencies
# Same pattern as local dev (CONTRIBUTING.md): dev + llslibdev for a full app import.
run: uv sync --group dev --group llslibdev
# Same pattern as local dev (CONTRIBUTING.md): dev + ogxlibdev for a full app import.
run: uv sync --group dev --group ogxlibdev
- name: Install PDM
# scripts/generate_openapi_schema.py asserts OpenAPI info.version matches `pdm show --version`.
run: uv pip install pdm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
with:
python-version: '3.12'
- name: Install dependencies
run: uv sync --group llslibdev
run: uv sync --group ogxlibdev
- name: Python linter
run: uv run pylint src tests
2 changes: 1 addition & 1 deletion .github/workflows/pyright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
with:
python-version: '3.12'
- name: Install dependencies
run: uv sync --group llslibdev
run: uv sync --group ogxlibdev
- name: Run Pyright tests
run: uv run pyright src
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: uv version
run: uv --version
- name: Install dependencies
run: uv pip install --python ${{ matrix.python-version }} --group llslibdev .
run: uv pip install --python ${{ matrix.python-version }} --group ogxlibdev .
- name: Install pdm # Required for dynamic version test
run: uv pip install pdm
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Allowed prefixes: `LCORE-`, `RSPEED-`, `MGTM-`, `OLS-`, `RHIDP-`, `LEADS-`, `CWF
- ❌ `feat(observability): add user_agent to ResponsesEventData`

## Development Workflow
1. Use `uv sync --group dev --group llslibdev` for dependencies
1. Use `uv sync --group dev --group ogxlibdev` for dependencies
2. Always use `uv run` prefix for commands
3. **ALWAYS** check `pyproject.toml` for existing dependencies and versions before adding new ones
4. Follow existing code patterns in the module you're modifying
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ To quickly get hands on LCS, we can run it using the default configurations prov

0. install dependencies using [uv](https://docs.astral.sh/uv/getting-started/installation/)
```bash
uv sync --group dev --group llslibdev
uv sync --group dev --group ogxlibdev
```
1. create OGX `run.yaml`. you can do this by running the local run generation script
```bash
Expand Down
2 changes: 1 addition & 1 deletion deploy/lightspeed-stack/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ RUN if [ -f /cachi2/cachi2.env ]; then \
pip install --no-cache-dir --ignore-installed --no-index --find-links ${PIP_FIND_LINKS} --no-deps -r requirements.hashes.wheel.txt -r requirements.hashes.wheel.pypi.txt -r requirements.hashes.source.txt && \
pip check; \
else \
uv sync --locked --no-dev --group llslibdev; \
uv sync --locked --no-dev --group ogxlibdev; \
fi

# Explicitly remove some packages to mitigate some CVEs
Expand Down
2 changes: 1 addition & 1 deletion deploy/llama-stack/test.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY src ./src
COPY providers ./providers

# Install dependencies using uv sync
RUN uv sync --locked --no-install-project --group llslibdev
RUN uv sync --locked --no-install-project --group ogxlibdev

# Add virtual environment to PATH for llama command
# Add providers to PYTHONPATH so lightspeed_stack_providers modules can be imported
Expand Down
2 changes: 1 addition & 1 deletion docs/devel_doc/container_orchestration.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The Makefile will auto-detect which runtime is available.

```bash
# Install dependencies
uv sync --group dev --group llslibdev
uv sync --group dev --group ogxlibdev

# Generate OGX config (run.yaml)
./scripts/generate_local_run.sh
Expand Down
6 changes: 3 additions & 3 deletions docs/devel_doc/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ Shields are owned by LCORE (configured under `shields:` block), not as OGX `prov
```bash
uv run llama stack list-providers
```
Edit your `pyproject.toml` and add the required pip packages for the provider into `llslibdev` section:
Edit your `pyproject.toml` and add the required pip packages for the provider into `ogxlibdev` section:
```toml
llslibdev = [
ogxlibdev = [
"openai>=1.0.0",
"pymilvus>=2.4.10",

Expand All @@ -304,7 +304,7 @@ Shields are owned by LCORE (configured under `shields:` block), not as OGX `prov

Run the following command to update project dependencies:
```bash
uv sync --group llslibdev
uv sync --group ogxlibdev
```
1. **Update OGX configuration**

Expand Down
2 changes: 1 addition & 1 deletion docs/user_doc/deployment_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ It is possible to run Lightspeed Core Stack service with OGX "embedded" as a Pyt
1. Clone LCS repository
1. Add and install all required dependencies
```bash
uv sync --group llslibdev
uv sync --group ogxlibdev
```

#### OGX configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/user_doc/okp_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ podman run --rm -d -p 8081:8080 registry.redhat.io/offline-knowledge-portal/rhok
Install dependencies:

```bash
uv sync --group dev --group llslibdev
uv sync --group dev --group ogxlibdev
```

Set required environment variables:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ explicit = true

[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", group = "llslibdev" },
{ index = "pytorch-cpu", group = "ogxlibdev" },
]

[dependency-groups]
Expand Down Expand Up @@ -151,7 +151,7 @@ dev = [
"pip==26.1",
"pytest-benchmark>=5.2.3",
]
llslibdev = [
ogxlibdev = [
# To check OGX API provider dependecies:
#
# $ uv run ogx stack list-providers
Expand Down
2 changes: 1 addition & 1 deletion scripts/konflux_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ NO_WHEEL_PACKAGES="markupsafe"

# Generate requirements list from pyproject.toml from both indexes
uv pip compile pyproject.toml -o "$RAW_REQ_FILE" \
--group llslibdev \
--group ogxlibdev \
--python-platform x86_64-unknown-linux-gnu \
--python-version 3.12 \
--refresh \
Expand Down
2 changes: 1 addition & 1 deletion scripts/konflux_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ def uv_resolve(
"--emit-index-annotation",
"--no-sources",
"--group",
"llslibdev",
"ogxlibdev",
]
if os.path.exists(overrides_file):
cmd += ["--override", overrides_file]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
export GIT_TERMINAL_PROMPT=0
git clone -q "${REPO_URL}" /opt/app-root/repo
cd /opt/app-root/repo && git fetch origin "${REPO_REVISION}" 2>/dev/null || true && git checkout -q "${REPO_REVISION}"
uv sync --locked --no-install-project --group llslibdev
uv sync --locked --no-install-project --group ogxlibdev
(cd /opt/app-root/repo && tar cf - .) | (cd /opt/app-root && tar xf -)
rm -rf /opt/app-root/repo
sed -i 's|/opt/app-root/repo/.venv|/opt/app-root/.venv|g' /opt/app-root/.venv/bin/* 2>/dev/null || true
Expand Down
6 changes: 3 additions & 3 deletions uv.lock

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

Loading