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
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@awk -F ':.*?## ' '/^[a-zA-Z]/ && NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

.PHONY: help Makefile upgrade requirements install
.PHONY: help Makefile upgrade requirements install serve_docs check_docs

sync-constraints: ## download and sync common_constraints.txt to pyproject.toml
uv run python sync_constraints.py

upgrade: sync-constraints
upgrade: ## upgrade all packages in uv.lock and sync constraints from edx-lint
uv run --with edx-lint edx_lint write_uv_constraints pyproject.toml
uv lock --upgrade

requirements: ## install dependencies using uv
Expand Down
22 changes: 14 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,23 @@ Documentation = "https://docs.openedx.org/projects/openedx-aspects"
Repository = "https://github.com/openedx/openedx-aspects"
"Issue Tracker" = "https://github.com/openedx/openedx-aspects/issues"


[tool.uv]
# DO NOT EDIT constraint-dependencies DIRECTLY.
# This list is managed by `edx_lint write_uv_constraints`
# and will be overwritten the next time `make upgrade` is run.
# - GLOBAL constraints: edit edx_lint/files/common_constraints.txt
# - REPO-SPECIFIC constraints: edit [tool.edx_lint].uv_constraints in this file
constraint-dependencies = [
# Downloaded from edx-lint common_constraints.txt
# DO NOT EDIT - Use 'python sync_constraints.py' to update
"Django<6.0",
"elasticsearch<7.14.0",
# Local constraint
"greenlet>3.0.1", # playwright and sqlalchemy requirements conflict for greenlet<=3.0.1
"greenlet>3.0.1",
]
# Common constraints from edx-lint
override-dependencies = [
"Django<6.0", # using LTS django version
"elasticsearch<7.14.0", # 7.14.0+ contains breaking changes

[tool.edx_lint]
# Repo-specific uv constraints merged with edx-lint's global constraints.
# Local entries override global ones for the same package.
# Run `make upgrade` to regenerate [tool.uv].constraint-dependencies.
uv_constraints = [
"greenlet>3.0.1", # playwright and sqlalchemy requirements conflict for greenlet<=3.0.1
]
20 changes: 0 additions & 20 deletions requirements/common_constraints.txt

This file was deleted.

135 changes: 0 additions & 135 deletions sync_constraints.py

This file was deleted.