You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Repository navigation
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
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.
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...
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
Activity
tswast commentedon Jan 7, 2021
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)
plamut commentedon Jan 7, 2021
As a quick check, I tried to install the library with Python 3.9, but failed, because
pyarrowpulled innumpy==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 installednumpy==1.19.5, pyarrow was still stubbornly pulling in1.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
pyarrowwheels 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 withpyarrow==3.0.0.It appears that we need to constrain the
bqstorageandpandasextras 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...tswast commentedon Jan 12, 2021
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
tswast commentedon Jan 25, 2021
Arrow 3.0 release with Python 3.9 support is in the works. apache/arrow#9245
kszucs commentedon Jan 26, 2021
The wheels are available now on pypi.
plamut commentedon Jan 27, 2021
@kszucs That's great, thanks a lot!
Edit: And I managed to successfully run all unit tests under Python 3.9, too. 🎉
deps: declare support for Python 3.9 (#488)
galuszkak commentedon Oct 28, 2022
@plamut I think this ticket can be closed.