Skip to content

Update cassandra driver specification for various python versions#61685

Merged
shahar1 merged 1 commit intoapache:mainfrom
potiuk:update-cassandra-spec
Feb 10, 2026
Merged

Update cassandra driver specification for various python versions#61685
shahar1 merged 1 commit intoapache:mainfrom
potiuk:update-cassandra-spec

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Feb 9, 2026

The official cassandra driver Python version support was not exactly in line with the version support - this PR adds proper version support. We still cannot remove setuptools limitation before the minimum version of cassandra driver supports it - but at least all the versions will use .whl distributions - which will make image builds and CI a bit faster.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@Dev-iL
Copy link
Collaborator

Dev-iL commented Feb 9, 2026

Should we run this for <all versions>?

Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice..

@potiuk
Copy link
Member Author

potiuk commented Feb 9, 2026

Should we run this for ?

Oh ... absolutely .. good call :)

@potiuk potiuk added the all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs label Feb 9, 2026
The official cassandra driver Python version support was not exactly
in line with the version support - this PR adds proper version
support. We still cannot remove setuptools limitation before the
minimum version of cassandra driver supports it - but at least
all the versions will use .whl distributions - which will make
image builds and CI a bit faster.
@potiuk potiuk force-pushed the update-cassandra-spec branch from 76bf413 to d053edc Compare February 9, 2026 20:44
@jscheffl jscheffl mentioned this pull request Feb 9, 2026
@shahar1 shahar1 merged commit c7f4814 into apache:main Feb 10, 2026
161 checks passed
potiuk added a commit to potiuk/airflow that referenced this pull request Feb 10, 2026
Follow-up after apache#61666 and apache#61685 - there are two small things to
fix:

* setuptools limit is not effective, because it is not taken
  into account when cassandra driver is built from sdist (which
  happens if the driver does not have wheels published for python
  version it is installed on). All the tools are using build
  isolation by default when installing sdist-build packages so the
  version specified in dependencies does not matter in this case -
  so We should remove it.

* the specification for >= 3.29.2 that limits the driver to versions
  that have wheels for relevant python versions was ambiguous
  >= 3.29.1 - both applied to `<3.13`. We needed to add >= as well
  to make sure that the ranges are not overlapping. Not a big
  issue because in this case resolver will handle it well, but it
  is still not exactly correct.
eladkal pushed a commit that referenced this pull request Feb 10, 2026
Follow-up after #61666 and #61685 - there are two small things to
fix:

* setuptools limit is not effective, because it is not taken
  into account when cassandra driver is built from sdist (which
  happens if the driver does not have wheels published for python
  version it is installed on). All the tools are using build
  isolation by default when installing sdist-build packages so the
  version specified in dependencies does not matter in this case -
  so We should remove it.

* the specification for >= 3.29.2 that limits the driver to versions
  that have wheels for relevant python versions was ambiguous
  >= 3.29.1 - both applied to `<3.13`. We needed to add >= as well
  to make sure that the ranges are not overlapping. Not a big
  issue because in this case resolver will handle it well, but it
  is still not exactly correct.
Alok-kumar-priyadarshi pushed a commit to Alok-kumar-priyadarshi/airflow that referenced this pull request Feb 11, 2026
Follow-up after apache#61666 and apache#61685 - there are two small things to
fix:

* setuptools limit is not effective, because it is not taken
  into account when cassandra driver is built from sdist (which
  happens if the driver does not have wheels published for python
  version it is installed on). All the tools are using build
  isolation by default when installing sdist-build packages so the
  version specified in dependencies does not matter in this case -
  so We should remove it.

* the specification for >= 3.29.2 that limits the driver to versions
  that have wheels for relevant python versions was ambiguous
  >= 3.29.1 - both applied to `<3.13`. We needed to add >= as well
  to make sure that the ranges are not overlapping. Not a big
  issue because in this case resolver will handle it well, but it
  is still not exactly correct.
Ratasa143 pushed a commit to Ratasa143/airflow that referenced this pull request Feb 15, 2026
…ache#61685)

The official cassandra driver Python version support was not exactly
in line with the version support - this PR adds proper version
support. We still cannot remove setuptools limitation before the
minimum version of cassandra driver supports it - but at least
all the versions will use .whl distributions - which will make
image builds and CI a bit faster.
Ratasa143 pushed a commit to Ratasa143/airflow that referenced this pull request Feb 15, 2026
Follow-up after apache#61666 and apache#61685 - there are two small things to
fix:

* setuptools limit is not effective, because it is not taken
  into account when cassandra driver is built from sdist (which
  happens if the driver does not have wheels published for python
  version it is installed on). All the tools are using build
  isolation by default when installing sdist-build packages so the
  version specified in dependencies does not matter in this case -
  so We should remove it.

* the specification for >= 3.29.2 that limits the driver to versions
  that have wheels for relevant python versions was ambiguous
  >= 3.29.1 - both applied to `<3.13`. We needed to add >= as well
  to make sure that the ranges are not overlapping. Not a big
  issue because in this case resolver will handle it well, but it
  is still not exactly correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs area:providers kind:documentation provider:apache-cassandra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments