Modernize Python repo: pyproject.toml + uv + semantic-release#251
Modernize Python repo: pyproject.toml + uv + semantic-release#251salman2013 wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Thanks for the pull request, @salman2013! This repository is currently maintained by 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. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where 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. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0b62620 to
767f8d9
Compare
Summary
Modernizes the Python tooling for
xblocks-contribin three phases, aligning with the Open edX org standard established inopenedx/sample-plugin.Ticket: openedx/public-engineering#506
Commits
chore: migrate package metadata to pyproject.tomlpyproject.toml(PEP 621) with staticdependencieslist anddynamic = ["version"]setuptools-scm(version_scheme = "only-version",local_scheme = "no-local-version")license = "AGPL-3.0"+license-files = ["LICENSE.txt"]setup.pyandsetup.cfgchore: switch dependency management from pip-tools to uv[dependency-groups](PEP 735):test-base,test(Django 5.2),django42,quality,doc,ci,dev[tool.uv].conflictsto allow Django 4.2 and 5.2 to coexist in a singleuv.lockwith separate resolutions[tool.edx_lint].uv_constraintsholds repo-specific pins;[tool.uv].constraint-dependenciesmanaged byedx_lint write_uv_constraintstox.inito usetox-uv>=1anduv-venv-lock-runnerwithdependency_groupsMakefile:upgraderunsuv lock --upgrade,requirementsrunsuv sync --group devpython-tests.yml: addedastral-sh/setup-uv,uv sync --group ci,uv run toxrequirements/directory (11 files)chore: add python-semantic-release and commitlint workflows[tool.semantic_release]withbuild_commandexportingSETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSIONbeforeuv buildrelease.yml: runspython-tests.ymlas a reusable workflow, then PSR v10.5.3 onmain, publishes to PyPI via OIDC trusted publisher (no token needed)commitlint.yml: enforces conventional commit format on PRspypi-publish.yml(was causing duplicate publishes)upgrade-python-requirements.ymlto sharedopenedx/.githubreusable workflowREADME.rstwith uv-based setup instructionsTest plan
make requirementsuv run tox -e django42uv run tox -e django52uv run tox -e docs