feat: modernize to uv + pyproject.toml + src/ layout + python-semantic-release - #316
Closed
farhan wants to merge 0 commit into
Closed
feat: modernize to uv + pyproject.toml + src/ layout + python-semantic-release#316farhan wants to merge 0 commit into
farhan wants to merge 0 commit into
Conversation
3 tasks
farhan
marked this pull request as draft
August 24, 2026 10:28
farhan
force-pushed
the
farhan/modernize-python-repo
branch
from
September 14, 2026 07:48
6a58ed8 to
eed4add
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Important
PR implemented with the assistance of Claude Code, human-reviewed and improved before pushing to code review.
Summary
Modernize
codejailto uv + pyproject.toml (PEP 621/735) + src/ layout + python-semantic-release.Part of openedx/public-engineering#506.
setup.py/setup.cfgwithpyproject.toml(PEP 621 static metadata)uvwith PEP 735 dependency groups; commituv.locksrc/layoutpyproject.tomltox.inito usetox-uvwithuv-venv-lock-runnerastral-sh/setup-uv; SHA-pin all actions; addworkflow_calltrigger; split quality into a dedicated job (runs without Docker)python-semantic-release+release.yml(OIDC trusted publishing)commitlint.ymlto enforce conventional commit format on all future PRs to this repoDockerfileto useuvinstead of the deletedrequirements/*.txtfilesRemoved
Deleted files:
setup.py,setup.cfg,requirements/,.coveragerc,CHANGELOG.rst,.github/workflows/pypi-release.ymlRemoved Makefile targets:
$(COMMON_CONSTRAINTS_TXT)edx_lint write_uv_constraintsin theupgradetargetVersioning
[Dynamic]
setuptools-scmwithdynamic = ["version"]— master had a PyPI publish workflow;python-semantic-releasecontrols the version string at release time via git tags.Testing Notes
This PR has not been manually tested against the repo's own features. Testing relied on CI checks and local agent tooling (
make requirements,make quality,python -m build). Note: the test suite requires Docker with AppArmor (as on master) and cannot be run locally without that setup. Repo-owner is encouraged to run the repo's feature tests before merging.Code reviewer notes:
astral-sh/setup-uv. The Docker-based test approach is preserved exactly.openedx/codejail, workflowrelease.yml, no environment. The oldPYPI_UPLOAD_TOKENsecret can be removed after OIDC is confirmed.commitlint.ymlis already present on master — conventional commit format is already being enforced. The existingcommitlint.ymlis unchanged.requires-python = ">=3.12"formalizes what the repo already practiced (CI only ran Python 3.12); no support was actually dropped.qualitydependency group includesDjango>=5.2andpytestso pylint can import test modules cleanly (consistent with what master'stesting.txtprovided).🤖 Generated with Claude Code