Skip to content

Release/2.0.0#7

Merged
decitre merged 8 commits into
mainfrom
release/2.0.0
Mar 16, 2026
Merged

Release/2.0.0#7
decitre merged 8 commits into
mainfrom
release/2.0.0

Conversation

@decitre
Copy link
Copy Markdown
Owner

@decitre decitre commented Mar 16, 2026

Added

  • ProtoModule now accepts file_path=None: a unique filename (definition_N.proto) is auto-generated via a class-level counter.
  • Python 3.13 and 3.14 support added to classifiers and CI matrix.
  • ty type-checker added to the lint tox environment.
  • ruff isort configuration added (combine-as-imports = true).

Fixed

  • KeyError in test_compile_simple_dependency caused by iterating duplicate ProtoModule values in ProtoCollection.modules. Fixed by deduplicating with set() before iterating.
  • compiler_version() now correctly returns None instead of raising when no output is produced.

Changed

  • Breaking: dropped Python 3.8 and 3.9 support; minimum is now Python 3.10.
  • requires-python updated from >=3.8 to >=3.10.
  • ProtoCollection.modules now indexes each module by both Path and str key for flexible lookup.
  • Tox configuration migrated from tox.ini into pyproject.toml; tox-uv added as a requirement.
  • urllib3 version constraint relaxed (removed <2 pin).
  • CI: removed py_39_proto_203 job; py_31x_proto_252 matrix extended to include Python 3.12, 3.13, 3.14.
  • CI: migrated test.yml from actions/setup-python + pip to astral-sh/setup-uv; replaced pip install steps with uv run --extra; removed Black from lint job.
  • CI: updated GitHub Actions plugins to latest versions: actions/checkout@v6, astral-sh/setup-uv@v7, actions/setup-python@v6.

decitre added 8 commits March 16, 2026 20:58
- Drop Python 3.8 and 3.9 support; require Python >=3.10
- Add Python 3.13 and 3.14 support to classifiers and CI matrix
- Allow `ProtoModule(file_path=None)`: auto-generate unique filename (`definition_N.proto`)
- Fix `KeyError` in `test_compile_simple_dependency` by deduplicating `ProtoCollection.modules` values with `set()`
- Migrate tox config from `tox.ini` into `pyproject.toml`; adopt `tox-uv`
- Migrate CI from `actions/setup-python` + pip to `astral-sh/setup-uv`
- Update GitHub Actions plugins to latest: `checkout@v6`, `setup-uv@v7`, `setup-python@v6`
- Add `ty` type-checker to lint tox environment; remove Black
- Fix README wording: replace "a `.proto` string" with "a protobuf definition string"
- Add CHANGELOG.md covering all releases from 0.0.2 to 2.0.0
@decitre decitre merged commit 8b2f78f into main Mar 16, 2026
21 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@decitre decitre deleted the release/2.0.0 branch March 17, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant