Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ipython_config.py
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
#uv.lock
uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
Expand Down
13 changes: 7 additions & 6 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.13-slim

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
Expand All @@ -8,18 +8,19 @@ WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
gcc g++ cmake git \
libvulkan1 vulkan-tools \
libvulkan1 libvulkan-dev vulkan-tools glslang-tools glslc \
&& rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir uv

COPY pyproject.toml README.md LICENSE ./
COPY src/ ./src/

RUN uv pip install --system -e ".[llama-cpp]"
RUN mkdir -p src/cordon && touch src/cordon/__init__.py

RUN CMAKE_ARGS="-DGGML_VULKAN=on" \
uv pip install --system --no-cache-dir llama-cpp-python
uv pip install --system ".[llama-cpp]"

COPY src/ ./src/
RUN uv pip install --system --no-deps .

RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')" && \
python -c "from huggingface_hub import hf_hub_download; hf_hub_download('second-state/All-MiniLM-L6-v2-Embedding-GGUF', 'all-MiniLM-L6-v2-Q4_K_M.gguf')"
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "cordon"
version = "1.0.1"
description = "Semantic anomaly detection for system log files"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.10,<3.15"
license = { text = "Apache-2.0" }
authors = [
{ name = "Caleb Evans", email = "caevans@redhat.com" }
Expand All @@ -15,7 +15,7 @@ dependencies = [
"numpy>=1.24.0",
"huggingface-hub>=0.20.0",
"tqdm>=4.65.0",
"litellm>=1.80.0,<1.82.7",
"litellm>=1.83.0",
"tokenizers>=0.20.0",
]

Expand Down Expand Up @@ -89,9 +89,6 @@ ignore_missing_imports = true
module = "litellm.*"
ignore_missing_imports = true

[tool.uv]
exclude-newer = "7 days"

[tool.ruff]
line-length = 100
target-version = "py310"
Expand Down
Loading
Loading