Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Run checks to use latest supported Python (3.9) #462

Closed

Description

@plamut

In setup.py and in README we declare that we support Python >= 3.6, but the nox test sessions only use Python up to 3.8. Python 3.9 is also missing from the classifiers list in setup.py.

We should bump the maximum versions to 3.9 where applicable. If tests fail in 3.9, we should bound the python_requires version in setup.py until the failures are fixed (though - bound it in any case and manually increase only after we confirm that it works with the new minor Python release?).

If we first need to setup Kokoro environment to support Python 3.9 test environment, let's do that and keep this ticket open as a reminder.

cc: @tswast @busunkim96

Activity

  1. added
    type: processA process-related concern. May include testing, release, or the like.
    on Jan 7, 2021
  2. tswast commented on Jan 7, 2021

    @tswast
    Contributor

    This was blocked by grpcio and arrow, but wheels have been released for both packages now
    (grpc/grpc#24344 (comment), https://issues.apache.org/jira/browse/ARROW-10224)

  3. plamut commented on Jan 7, 2021

    @plamut
    ContributorAuthor

    As a quick check, I tried to install the library with Python 3.9, but failed, because pyarrow pulled in numpy==1.16.0, but the latter failed to compile on my machine (Ubuntu), and there is no wheel for it. It didn't help if I installed numpy==1.19.5, pyarrow was still stubbornly pulling in 1.16.0.

    TL; DR - I was not able to install BigQuery localy with Python3.9, and thus could not run the tests either.

    Update: @tswast Are you sure pyarrow wheels for Python 3.9 have actually been released? They are not listed on PyPI, and even the corresponding arrow ticket specifies that the changes will be released with pyarrow==3.0.0.

    It appears that we need to constrain the bqstorage and pandas extras for the time being - but in that case it would be quite bold to claim that the library supports Python 3.9 without the Pandas and BQ Storage extras...

  4. tswast commented on Jan 12, 2021

    @tswast
    Contributor

    I misunderstood the ticket. They have released 3.9 wheels to nightly but not public PyPI yet. See my thread talking to myself in: googleapis/python-bigquery-storage#99

  5. tswast commented on Jan 25, 2021

    @tswast
    Contributor

    Arrow 3.0 release with Python 3.9 support is in the works. apache/arrow#9245

  6. kszucs commented on Jan 26, 2021

    @kszucs

    The wheels are available now on pypi.

  7. plamut commented on Jan 27, 2021

    @plamut
    ContributorAuthor

    @kszucs That's great, thanks a lot!

    Edit: And I managed to successfully run all unit tests under Python 3.9, too. 🎉

  8. self-assigned this
    on Jan 27, 2021
  9. galuszkak commented on Oct 28, 2022

    @galuszkak

    @plamut I think this ticket can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions