chore: migrate to Python 3.13 + hatchling + uv, modernize toolchain#183
Merged
Conversation
Build system: - Replace setup.py/pbr/tox with hatchling + uv (pyproject.toml) - Add uv.lock for reproducible installs - Version single-sourced from yabgp/__init__.__version__ - Add PEP 735 dependency-groups: test, dev, docs CI & Docker: - GitHub Actions: switch to uv sync + uv run pytest/ruff/pyright - Add windows-latest to CI matrix (ubuntu/macos/windows) - Dockerfile: migrate from pip to uv sync --locked --no-dev - Add .dockerignore to exclude .venv/.git/.claude/tools/doc from image Lint & type check: - Replace flake8 with ruff (E/W/F/I/UP, line-length=120, py313) - Add pyright (typeCheckingMode=off, reportDeprecated=error) - Fix 300+ lint issues across src and tests (auto-fix + manual) Bug fixes: - Use integer division // instead of / in community/largecommunity parse to avoid intermediate float values (len(value)//2, len(value)//4) Cleanup: - Remove setup.py, setup.cfg, tox.ini, .coveragerc, .testr.conf - Remove requirements.txt, test-requirements.txt (superseded by uv.lock) - Remove redhat/, run_test.py, tools/rabbit_mongo.sh, yabgp/hooks.py - Migrate .coveragerc into pyproject.toml [tool.coverage.run] Docs: - Update README/HACKING.rst to uv-based workflow - Update doc/source/install.rst and feature/extension/tutorial pages - Bump docs deps: sphinx>=8, sphinx-rtd-theme>=3 via dependency-group Verified: 284 unit tests pass; BGP-LS RIB output identical between py3.6 and py3.13 against live router (node/link/prefix/srv6_sid). Co-authored-by: Cursor <cursoragent@cursor.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.
Build system:
CI & Docker:
Lint & type check:
Bug fixes:
Cleanup:
Docs:
Verified: 284 unit tests pass; BGP-LS RIB output identical between py3.6 and py3.13 against live router (node/link/prefix/srv6_sid).