Skip to content

Update deps#231

Closed
norkans7 wants to merge 2 commits intomainfrom
update-deps
Closed

Update deps#231
norkans7 wants to merge 2 commits intomainfrom
update-deps

Conversation

@norkans7
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 24, 2026 11:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the project’s Python/Django dependency set and CI tooling, introducing a uv.lock and migrating GitHub Actions workflows from Poetry to uv to manage installs, checks, and releases.

Changes:

  • Added uv.lock and updated runtime dependency pins/constraints (including raising minimum Python to 3.12).
  • Updated pyproject.toml dependency constraints (e.g., Pillow, rapidpro-python, smartmin) and Python requirement.
  • Updated CI matrix and workflow steps to use uv instead of Poetry, and adjusted release publishing to use uv.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
uv.lock New uv lockfile capturing resolved runtime dependencies for Python >=3.12.
pyproject.toml Bumps requires-python to 3.12+ and updates dependency constraints (plus dev tool version bump).
.github/workflows/ci.yml Switches CI and release jobs from Poetry to uv; updates Python/Django matrices and action versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: |
poetry install --no-root
poetry add django@~${{ matrix.django-version }}
uv sync --extra dev
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

uv sync --extra dev won’t install the dev tooling used later in this workflow (e.g., coverage, ruff, djlint) because the project doesn’t define a dev extra in [project.optional-dependencies], and uv.lock doesn’t include those packages. This will make the subsequent uv run coverage ... / ./code_check.py steps fail. Define a dev dependency group/extra that uv can sync (and regenerate uv.lock to include it), or explicitly install the needed dev dependencies in CI before running checks/tests.

Suggested change
uv sync --extra dev
uv sync
uv pip install coverage ruff djlint

Copilot uses AI. Check for mistakes.
pyproject.toml Outdated
Comment on lines 44 to 48
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
black = "^26.3.1"
isort = "^5.13.2"
colorama = "^0.4.3"
coverage = {extras = ["toml"], version = "^7.2.2"}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

CI now uses uv sync --extra dev, but dev dependencies are still declared under [tool.poetry.group.dev.dependencies] rather than as a PEP 621 extra ([project.optional-dependencies]) or a uv-compatible dependency group. As a result, uv sync won’t reliably bring in tools like coverage/ruff for CI unless you expose them as an extra/group that uv can install (and lock).

Copilot uses AI. Check for mistakes.
@norkans7 norkans7 closed this Mar 24, 2026
@norkans7 norkans7 deleted the update-deps branch March 24, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants