Skip to content

Migrate from Poetry to uv for Python package management#8

Merged
jeffabailey merged 3 commits intomainfrom
claude/migrate-to-uv-011CUS7mi8zHcNq4qZtRLdFw
Oct 24, 2025
Merged

Migrate from Poetry to uv for Python package management#8
jeffabailey merged 3 commits intomainfrom
claude/migrate-to-uv-011CUS7mi8zHcNq4qZtRLdFw

Conversation

@jeffabailey
Copy link
Owner

  • Convert pyproject.toml to modern PEP 621 format using setuptools backend
  • Update GitHub Actions workflow to use astral-sh/setup-uv action
  • Replace all Poetry commands with uv equivalents (sync, run)
  • Update documentation in TESTING.md and README.md
  • Remove poetry.lock and add uv.lock

This migration improves dependency resolution speed and aligns with modern Python packaging standards while maintaining full compatibility.

🤖 Generated with Claude Code

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test coverage improvement
  • Code refactoring

Testing

Tests Added/Modified

  • Added unit tests for new functionality
  • Updated existing tests to reflect changes
  • All tests pass locally
  • Test coverage meets or exceeds 80% threshold (for JavaScript)

Test Commands Run

# Add the commands you ran to test your changes
# Example:
# cd programming/python && pytest --cov

Coverage

  • Coverage reports have been reviewed
  • No decrease in overall coverage
  • New code has appropriate test coverage

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Related Issues

Closes #

Additional Notes

- Convert pyproject.toml to modern PEP 621 format using setuptools backend
- Update GitHub Actions workflow to use astral-sh/setup-uv action
- Replace all Poetry commands with uv equivalents (sync, run)
- Update documentation in TESTING.md and README.md
- Remove poetry.lock and add uv.lock

This migration improves dependency resolution speed and aligns with
modern Python packaging standards while maintaining full compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…xt_lazy

The ugettext_lazy function was deprecated in Django 3.0 and removed in
Django 4.0+. Updated to use the modern gettext_lazy import instead.

Changes:
- tasks/views.py: Replace ugettext_lazy import
- users/views.py: Replace ugettext_lazy import

This fixes the ImportError that prevented Django checks and migrations
from running successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Django's LogoutView requires POST requests by default for security
(CSRF protection). Updated two failing tests to use POST instead of GET.

Fixed tests:
- UserViewTest.test_logout_view_accessible
- UserAuthenticationTest.test_user_logout

This resolves the 405 Method Not Allowed errors that were causing
test failures.

Test results: All 21 tests now pass (previously 2 failed, 19 passed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jeffabailey jeffabailey merged commit 2dc4692 into main Oct 24, 2025
18 checks passed
@jeffabailey jeffabailey deleted the claude/migrate-to-uv-011CUS7mi8zHcNq4qZtRLdFw branch October 24, 2025 14:37
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