There's a test run in test_python.yml that is non-trivial to get working with Python 3.12 due to some refactoring of our Docker images that would be needed. But this change updates everything else to add coverage for Python 3.12. The main changes necessary to get the builds working were to upgrade some Pip packages via requirements.txt, including in a patch to `rules_fuzzing` that I plan to upstream soon. I also had to take an explicit dependency on `setuptools`. I removed tox.ini, since it was outdated and we have not been actively maintaining it. PiperOrigin-RevId: 580548224pull/14664/head
parent
2bcfbd8aa0
commit
24fef03259
10 changed files with 22 additions and 36 deletions
@ -1 +1,2 @@ |
||||
numpy<=1.24.4 |
||||
numpy<=1.26.1 |
||||
setuptools<=68.2.2 |
||||
|
@ -1,21 +0,0 @@ |
||||
[tox] |
||||
envlist = |
||||
py{37,38,39,310}-{cpp,python} |
||||
|
||||
[testenv] |
||||
usedevelop=true |
||||
passenv = |
||||
CC PYTHONPATH KOKORO_BUILD_ID KOKORO_BUILD_NUMBER |
||||
setenv = |
||||
cpp: LD_LIBRARY_PATH={toxinidir}/../bazel-bin/src/google |
||||
cpp: DYLD_LIBRARY_PATH={toxinidir}/../bazel-bin/src/google |
||||
cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp |
||||
python: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python |
||||
commands = |
||||
python setup.py -q build_py |
||||
python: python setup.py -q build |
||||
py{37,38,39,310}-cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension |
||||
python: python setup.py -q test -q |
||||
cpp: python setup.py -q test -q --cpp_implementation |
||||
python: python setup.py -q test_conformance |
||||
cpp: python setup.py -q test_conformance --cpp_implementation |
Loading…
Reference in new issue