iemejia opened a new pull request, #3922:
URL: https://github.com/apache/avro/pull/3922

   ## What
   
   Backports the Python tooling modernization from 
[AVRO-4232](https://issues.apache.org/jira/browse/AVRO-4232) (#3658) to 
`branch-1.12`.
   
   ## Why
   
   The Java interop workflow (`test-lang-java.yml`) on `branch-1.12` runs `uv 
sync --frozen` in `lang/py`, but that workflow change was previously backported 
**without** the accompanying `lang/py` migration. There was no `uv.lock` and no 
`[project]` table in `pyproject.toml`, so `uv sync --frozen` failed immediately 
and the workflow was red.
   
   ## Changes
   
   - Migrate `lang/py` from tox/setuptools to **uv + ruff**
   - Add `lang/py/uv.lock` and `[project]` / `[dependency-groups]` to 
`pyproject.toml`
   - Remove `tox.ini` and `setup.cfg`
   - Update `build.sh` (ruff / coverage / mypy targets)
   - Convert `test-lang-py.yml` to uv (drops Python 3.9 from CI, adds 3.14 — 
matches `main`)
   - Exclude `lang/py/uv.lock` from the RAT license check (`pom.xml`)
   
   ### branch-1.12 specifics
   - `pyproject.toml` version pinned to **1.12.2** (matches `share/VERSION.txt`)
   - `[tool.setuptools.packages.find] include = ["avro*"]` to fix flat-layout 
"multiple top-level packages" discovery error
   
   ## Verification (local)
   
   - `uv sync --frozen` ✅
   - `ruff check` / `ruff format --diff` ✅
   - `mypy avro/` — no issues ✅
   - `./build.sh coverage` — 561 tests pass (1 skipped) ✅
   - `./build.sh interop-data-generate` — produces 
null/deflate/bzip2/snappy/zstandard variants ✅
   
   ## Note
   
   This drops **Python 3.9** from CI (`requires-python = ">=3.10"`), consistent 
with `main`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to