feat: modernize packaging with uv, pyproject.toml and semantic-release - #288
Open
farhan wants to merge 1 commit into
Open
feat: modernize packaging with uv, pyproject.toml and semantic-release#288farhan wants to merge 1 commit into
farhan wants to merge 1 commit into
Conversation
Migrate from setup.py/pip-compile to PEP 621 static metadata in pyproject.toml, uv with PEP 735 dependency groups, a src/ layout, and python-semantic-release for OIDC-based PyPI publishing. This aligns the repo with the current Open edX packaging standard and removes the requirements/ compile toolchain. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #288 +/- ##
=======================================
Coverage 99.78% 99.78%
=======================================
Files 11 11
Lines 461 461
Branches 17 17
=======================================
Hits 460 460
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
3 tasks
farhan
marked this pull request as ready for review
September 4, 2026 17:10
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. Refined and validated before being submitted for code review.
Modernize
i18n-toolsPart of openedx/public-engineering#506
Summary
edx-i18n-toolspublishes to PyPI: https://pypi.org/project/edx-i18n-tools/src/layout (src/i18n/)setup.py/setup.cfgwithpyproject.toml(PEP 621 static metadata)uvwith PEP 735 dependency groups; commituv.lockpyproject.tomlastral-sh/setup-uv,uv sync --group ci, anduv run tox; all actions SHA-pinnedpython-semantic-release+release.yml(OIDC trusted publishing), replacing the legacypypi-publish.ymlRemoved/Updated
Deleted files:
setup.py,setup.cfg,.coveragerc,requirements/Removed workflows:
pypi-publish.yml(replaced byrelease.ymlwith OIDC publishing),upgrade-python-requirements.yml(depended on the deletedrequirements/+ pip-compile toolchain; dependency upgrades are now handled bymake upgradeviauv lock --upgrade)Removed Makefile targets:
piptoolspip-tools; the pip-compile toolchain is replaced byuvcommon_constraints.txt[tool.edx_lint].uv_constraintsUpdated Makefile targets:
upgradeedx_lint write_uv_constraints+uv lock --upgradeinstead of pip-compilerequirementsuv sync --group devinstead of pip-synctest-pythonuv run pytestdirectlyquality-pythonuv run pycodestyle/uv run pylintdirectly againstsrc/i18n(wastox -e quality)Versioning
setuptools-scmwithdynamic = ["version"]— the repo publishes to PyPI andpython-semantic-releasecontrols the version string at release time via git tags. Current version2.0.0is 1.x+, so no zero-version guard is set.Important Notes
commitlint.yml(already present on master).docstox environment was added: the repo has no docs infrastructure (nodocs/directory, no Sphinx config, nomake docstarget) on master, so there is nothing to build.ignore = E501,E731config lived in the deletedsetup.cfg; it was migrated to a[pycodestyle]section intox.ini(pycodestyle does not readpyproject.toml).quality,django42,django52) and the block-form matrix lists are kept in exact parity with master; the Codecov upload still runs ondjango42.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,make test,python -m build). Repo-owner is encouraged to run the repo's feature tests before merging.🤖 Generated with Claude Code