Upgrade Python to 3.10 for newer Django versions. (#11391)

This commit is contained in:
Florian Apolloner 2023-12-20 23:49:26 +01:00 committed by GitHub
parent 97887109e4
commit 4016dacde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,13 @@
FROM gcr.io/oss-fuzz-base/base-builder-python FROM gcr.io/oss-fuzz-base/base-builder-python
RUN apt-get update && apt-get install -y libgdal26 RUN apt-get update -y \
&& apt-get install -y libgdal26 software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get install -y python3.10 python3.10-dev \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \
&& python3.10 -m pip install -v --no-cache-dir "atheris>=2.1.1" "pyinstaller==5.0.1" "coverage==6.3.2" \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/django/django.git RUN git clone --depth 1 https://github.com/django/django.git
RUN git clone --depth 1 https://github.com/django/django-fuzzers.git RUN git clone --depth 1 https://github.com/django/django-fuzzers.git

View File

@ -17,7 +17,7 @@
# Build and install project (using current CFLAGS, CXXFLAGS). This is required # Build and install project (using current CFLAGS, CXXFLAGS). This is required
# for projects with C extensions so that they're built with the proper flags. # for projects with C extensions so that they're built with the proper flags.
pip3 install . python3.10 -m pip install .
export DJANGO_SETTINGS_MODULE=fuzzer_project.settings export DJANGO_SETTINGS_MODULE=fuzzer_project.settings