Repository navigation
chore: modernize Python tooling (uv, pyproject.toml, src layout, semantic-release) - #258
salman2013 wants to merge 4 commits into
Conversation
|
Thanks for the pull request, @salman2013! This repository is currently unmaintained. 🔘 Find a technical reviewerTo get help with finding a technical reviewer, reach out to the community contributions project manager for this PR:
Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
cec23ca to
9992edf
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add release.yml with OIDC PyPI publishing via python-semantic-release - Add commitlint.yml workflow - Delete pypi-publish.yml - Migrate package to src/freetextresponse/ layout - Update tox.ini, Makefile, and i18n.mk for src/ paths - Fix CI: add npm install step, remove unnecessary permissions block - Use source_pkgs for coverage (src/ layout) - Remove unused __version__ from __init__.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9992edf to
9b5427b
Compare
Run CI on direct pushes to master, not just on PRs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feanil
left a comment
There was a problem hiding this comment.
A couple more things I noticed on review.
| @@ -3,5 +3,3 @@ | |||
| Instructors can specify a list of phrases, of which one must be | |||
| present in order for the student to receive credit. | |||
| """ | |||
|
|
|||
| __version__ = "5.1.0" | |||
There was a problem hiding this comment.
We should load the version variable from the package data rather than removing this.
| pip install -r requirements/pip.txt | ||
| pip install -r requirements/base.txt | ||
| requirements_py: ## Install required python packages | ||
| uv sync --group dev |
There was a problem hiding this comment.
It looks like before, this was just thebase requirements not the dev requirements. So I think this should just be a uv sync?
| license = "AGPL-3.0" | ||
| license-files = ["LICENSE"] | ||
| authors = [ | ||
| {name = "stv", email = "stv@stanford.edu"}, |
There was a problem hiding this comment.
we can update this to "Open edX" and "oscm@openedx.org"
| "tox-uv>=1", | ||
| ] | ||
| dev = [ | ||
| {include-group = "quality"}, |
|
@salman2013 We should close this as we have moved this xblock into xblocks-extras |
Summary
setup.pytopyproject.toml(PEP 621); replace hardcoded__version__withimportlib.metadata; configuresetuptools-scmfor git-tag-based versioningpip-tools+requirements/*.txtwithuvdependency groups anduv.lock; updatetox.inito usetox-uv/uv-venv-lock-runner; updateMakefileand CI workflow to useuv run toxpython-semantic-releaseworkflow (release.yml) with OIDC PyPI publishing; delete oldpypi-publish.ymlsrc/freetextresponse/; update all filesystem path references intox.ini,Makefile, andi18n.mkTest plan
uv run tox -e qualitypasses locally (pylint 10.00/10, pycodestyle clean ✅)release.yml🤖 Generated with Claude Code