feat: modernize to uv + pyproject.toml + src/ layout + python-semantic-release#316
Open
farhan wants to merge 3 commits into
Open
feat: modernize to uv + pyproject.toml + src/ layout + python-semantic-release#316farhan wants to merge 3 commits into
farhan wants to merge 3 commits into
Conversation
…python-semantic-release - Replace setup.py/setup.cfg with pyproject.toml (PEP 621 static metadata) - Switch from pip-compile to uv with PEP 735 dependency groups; commit uv.lock - Move codejail package into src/ layout (PyPI repo) - Retain pylint/isort/pycodestyle as on master (ruff deferred per #506) - Coverage config moved into pyproject.toml - Update tox.ini to use tox-uv with uv-venv-lock-runner - Update CI to use astral-sh/setup-uv; SHA-pin all actions; add workflow_call trigger - Add python-semantic-release + release.yml (OIDC trusted publishing) - Update Dockerfile to use uv instead of pip-compile requirements files Part of openedx/public-engineering#506 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
- Move memory_stress.py to src/codejail/ and declare it as a [project.scripts] entry so it is installed as a CLI command - Add NOTICE.txt to license-files so it is included in the wheel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
memory_stress.py was moved to src/codejail/ in the previous commit; drop the now-stale root-level path from the quality env commands since src/codejail already covers the file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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