-
Notifications
You must be signed in to change notification settings - Fork 27
Migrate dependency management to pyproject.toml with uv #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
matrixise
wants to merge
6
commits into
master
Choose a base branch
from
feature/migrate-to-uv-171
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
17dd086
🔧 chore: standardize on uv for dependency management
matrixise e62328f
chore: Migrate dependency management from requirements/*.in to pyproj…
matrixise b3987b2
fix: Use uv run to execute tests in CI/CD workflow
matrixise 5c619a4
fix: Pin Django to 5.2.x and Wagtail to 7.2.x
matrixise fbcf96e
🔧 chore: recreate requirements/ directory structure for Heroku compat…
matrixise 7ff27a6
🐳 fix: update Dockerfile for uv/pyproject.toml compatibility
matrixise File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| python 3.13.9 | ||
| task 3.37.2 | ||
| uv 0.9.18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "pythonie" | ||
| version = "2025.12.23" | ||
| description = "Python Ireland website - Django/Wagtail CMS for python.ie and pycon.ie" | ||
| readme = "README.md" | ||
| requires-python = ">=3.13.0" | ||
| license = {text = "MIT"} | ||
| authors = [{name = "Python Ireland", email = "info@python.ie"}] | ||
| keywords = ["django", "wagtail", "cms", "python-ireland", "pycon"] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Framework :: Django :: 5.2", | ||
| "Framework :: Wagtail :: 7", | ||
| "Programming Language :: Python :: 3.13", | ||
| "License :: OSI Approved :: MIT License", | ||
| ] | ||
|
|
||
| # Main production dependencies (from requirements/main.in) | ||
| dependencies = [ | ||
| "Delorean", | ||
| "Django>=5.2.0,<5.3", # Reste sur Django 5.2.x | ||
| "Willow", | ||
| "boto3", | ||
| "colander", | ||
| "defusedxml", | ||
| "dj-database-url", | ||
| "dj-static", | ||
| "django-compressor", | ||
| "django-extensions", | ||
| "django-libsass", | ||
| "django-modelcluster", | ||
| "django-storages", | ||
| "django-taggit", | ||
| "gunicorn", | ||
| "pandas", | ||
| "pydantic", | ||
| "python-dateutil", | ||
| "pytz", | ||
| "redis", | ||
| "requests>=2.32.5", | ||
| "wagtail>=7.2.0,<7.3", # Wagtail 7.2.x compatible avec Django 5.2 | ||
| "whitenoise", | ||
| ] | ||
|
|
||
| # PEP 735 Dependency Groups | ||
| [dependency-groups] | ||
| # Development dependencies (from requirements/dev.in) | ||
| dev = [ | ||
| "coverage", | ||
| "django-debug-toolbar", | ||
| "factory-boy", | ||
| "fakeredis", | ||
| "isort", | ||
| "model_mommy", | ||
| "pip-audit", | ||
| "pipdeptree", | ||
| "ruff", | ||
| "uv", | ||
| ] | ||
|
|
||
| # Production-specific dependencies (from requirements/production.in) | ||
| production = [ | ||
| "psycopg[binary]", | ||
| ] | ||
|
|
||
| # Tool configurations | ||
| [tool.ruff] | ||
| target-version = "py313" | ||
| line-length = 88 | ||
| exclude = [ | ||
| "migrations", | ||
| ".venv", | ||
| "venv", | ||
| "pythonie-venv", | ||
| ".git", | ||
| "__pycache__", | ||
| ] | ||
|
|
||
| [tool.ruff.lint] | ||
| select = [ | ||
| "E", # pycodestyle errors | ||
| "F", # pyflakes | ||
| "I", # isort | ||
| "N", # pep8-naming | ||
| "W", # pycodestyle warnings | ||
| "UP", # pyupgrade | ||
| "DJ", # django-specific rules | ||
| ] | ||
| ignore = [ | ||
| "E501", # Line too long (handled by formatter) | ||
| ] | ||
|
|
||
| [tool.ruff.lint.isort] | ||
| known-first-party = ["pythonie", "core", "meetups", "speakers", "sponsors"] | ||
| section-order = ["future", "standard-library", "third-party", "django", "wagtail", "first-party", "local-folder"] | ||
|
|
||
| [tool.ruff.lint.isort.sections] | ||
| "django" = ["django"] | ||
| "wagtail" = ["wagtail"] | ||
|
|
||
| [tool.ruff.format] | ||
| quote-style = "double" | ||
| indent-style = "space" | ||
| skip-magic-trailing-comma = false | ||
| line-ending = "auto" | ||
|
|
||
| [tool.coverage.run] | ||
| source = ["pythonie"] | ||
| omit = [ | ||
| "*/migrations/*", | ||
| "*/tests/*", | ||
| "*/test_*.py", | ||
| "*/__pycache__/*", | ||
| "*/venv/*", | ||
| "*/.venv/*", | ||
| ] | ||
|
|
||
| [tool.coverage.report] | ||
| exclude_lines = [ | ||
| "pragma: no cover", | ||
| "def __repr__", | ||
| "raise AssertionError", | ||
| "raise NotImplementedError", | ||
| "if __name__ == .__main__.:", | ||
| ] | ||
|
|
||
| [tool.django-stubs] | ||
| django_settings_module = "pythonie.settings.dev" | ||
|
|
||
| [tool.hatchling.build.targets.wheel] | ||
| packages = ["pythonie"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you consider setup-uv action instead of setup-python? It can install Python versions just fine, and yields a cleaner result in overall config in my experience.