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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ uv add --group indexer requests

# use the --all-groups flag to sync your venv for all dependencies
uv sync --all-groups
uv pip compile --group indexer -o core/requirements.txt
uv pip compile --group indexers -o core/requirements.txt
```

The last step writes the updated dependencies to a requirements.txt file, which is
Expand Down
1 change: 1 addition & 0 deletions alembic/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: run_migrations.sh uses psql, so we need that
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
RUN uv pip install alembic==1.13.2 psycopg2-binary==2.9.10 sqlalchemy==2.0.41 --system
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion alembic/init-script.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CREATE DATABASE chai;

CREATE EXTENSION IF NOT EXISTS "pgcrypto";
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- CREATE EXTENSION IF NOT EXISTS "pg_bigm";
CREATE EXTENSION IF NOT EXISTS pg_trgm;
2 changes: 1 addition & 1 deletion core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ markupsafe==3.0.2
# via mako
permalint==0.1.15
# via chai (pyproject.toml:indexers)
psycopg2==2.9.10
psycopg2-binary==2.9.10
# via chai (pyproject.toml:indexers)
pyyaml==6.0.2
# via chai (pyproject.toml:indexers)
Expand Down
6 changes: 3 additions & 3 deletions package_managers/crates/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim

# Copy everything from the root directory (build context)
COPY . .

# Install core requirements
# Install core requirements using uv
WORKDIR /core
RUN pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system -r requirements.txt

WORKDIR /

Expand Down
6 changes: 3 additions & 3 deletions package_managers/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim

# Copy everything
COPY . .

# Install core requirements
# Install core requirements using uv
WORKDIR /core
RUN pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system -r requirements.txt

WORKDIR /
# Run the main application
Expand Down
6 changes: 3 additions & 3 deletions package_managers/homebrew/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim

# Copy everything from the root directory (build context)
COPY . .

# Install core requirements
# Install core requirements using uv
WORKDIR /core
RUN pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system -r requirements.txt

WORKDIR /

Expand Down
6 changes: 3 additions & 3 deletions package_managers/pkgx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim

# Copy everything
COPY . .

# Install core requirements
# Install core requirements using uv
WORKDIR /core
RUN pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system -r requirements.txt

WORKDIR /
# Run the main application
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ indexers = [
"gitpython>=3.1.44",
"idna>=3.10",
"permalint>=0.1.15",
"psycopg2>=2.9.10",
"psycopg2-binary==2.9.10",
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from a range constraint (>=2.9.10) to an exact pin (==2.9.10) removes flexibility for patch updates that might contain security fixes. Consider using a more flexible constraint like ~=2.9.10 to allow patch-level updates.

Suggested change
"psycopg2-binary==2.9.10",
"psycopg2-binary~=2.9.10",

Copilot uses AI. Check for mistakes.
"pyyaml>=6.0.2",
"requests>=2.32.4",
"schedule>=1.2.2",
Expand Down
50 changes: 40 additions & 10 deletions uv.lock

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