You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Gabor Roczei (Jira)" <ji...@apache.org> on 2026/08/11 05:49:00 UTC

[jira] [Updated] (LIVY-1067) Bump CI Python to 3.11.11 and fix python-api PEP 440 version

     [ https://issues.apache.org/jira/browse/LIVY-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabor Roczei updated LIVY-1067:
-------------------------------
    Fix Version/s: 1.0.0

> Bump CI Python to 3.11.11 and fix python-api PEP 440 version
> ------------------------------------------------------------
>
>                 Key: LIVY-1067
>                 URL: https://issues.apache.org/jira/browse/LIVY-1067
>             Project: Livy
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: Gabor Roczei
>            Assignee: Gabor Roczei
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> h3. Background
> Livy's CI pipeline installs Python via pyenv inside the {{ghcr.io/apache/livy-ci}} container and pins {{pyenv global 3}} in the Integration Tests workflow. The installed version was 3.9.21, and the {{python-api}} package used a Maven-style {{1.0.0-SNAPSHOT}} version in its setup.py.
> Two problems surfaced:
> # Modern pip (>= 24) refuses to parse a {{-SNAPSHOT}} suffix and errors out with {{Invalid version: '1.0.0-SNAPSHOT'}} when resolving dependencies of {{livy-python-api}}. This surfaces as {{WARNING: Error parsing dependencies of livy-python-api}} on every {{pip3 install}} and blocks the {{validate Python-API requests}} integration test from resolving its dependencies.
> # Python 3.9.21 is below the lower bound of upcoming Spark releases: Spark 4.1's {{python/setup.py}} declares {{python_requires=">=3.10"}}. The CI image needs to stay on a Python version supported by both Spark 3.5 (>=3.8, up to 3.11) and Spark 4.1 (>=3.10). The intersection is 3.10 and 3.11.
> h3. Proposed change
> * Bump {{dev/docker/livy-dev-base/Dockerfile}} pyenv install from 3.9.21 to 3.11.11.
> * Pin {{pyenv global 3.11.11}} explicitly in {{.github/workflows/integration-tests.yaml}} (was {{pyenv global 3}}).
> * Change {{python-api/setup.py}} version from {{1.0.0-SNAPSHOT}} to {{1.0.0.dev0}} (canonical PEP 440 "pre-release under active development" form). The Maven {{python-api/pom.xml}} version stays {{1.0.0-SNAPSHOT}} -- Maven and pip have separate versioning conventions and only the pip-visible metadata needs to change.
> The Dockerfile and workflow both carry inline comments documenting the Spark 3.5 / Spark 4.1 intersection so future bumps stay in sync.
> h3. How to verify
> * {{pip3 install ./python-api}} no longer emits {{Invalid version: '1.0.0-SNAPSHOT'}}; the package installs cleanly on pip 24+.
> * {{python3 --version}} reports {{Python 3.11.11}} inside the rebuilt CI Docker image.
> * GitHub Actions Integration Tests workflow runs {{pyenv global 3.11.11}} successfully on the -Pspark3 -Pscala-2.12 matrix entry.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)