Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
7faab5ee
Commit
7faab5ee
authored
Dec 13, 2019
by
Jie Luo
Committed by
Paul Yang
Dec 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add python38 (#7009)
* add python38 * add python3.8 * fix tox
parent
fe1790ca
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
106 additions
and
0 deletions
+106
-0
Dockerfile
kokoro/linux/dockerfile/test/python_stretch/Dockerfile
+2
-0
build.sh
kokoro/linux/python38/build.sh
+18
-0
continuous.cfg
kokoro/linux/python38/continuous.cfg
+11
-0
presubmit.cfg
kokoro/linux/python38/presubmit.cfg
+11
-0
build.sh
kokoro/linux/python38_cpp/build.sh
+18
-0
continuous.cfg
kokoro/linux/python38_cpp/continuous.cfg
+11
-0
presubmit.cfg
kokoro/linux/python38_cpp/presubmit.cfg
+11
-0
build_artifacts.bat
kokoro/release/python/windows/build_artifacts.bat
+10
-0
build_single_artifact.bat
kokoro/release/python/windows/build_single_artifact.bat
+6
-0
tests.sh
tests.sh
+8
-0
No files found.
kokoro/linux/dockerfile/test/python_stretch/Dockerfile
View file @
7faab5ee
...
...
@@ -40,8 +40,10 @@ RUN apt-get update && apt-get -t testing install -y \
python3.5
\
python3.6
\
python3.7
\
python3.8
\
python3-all-dev
RUN
curl https://bootstrap.pypa.io/get-pip.py | python3.5
RUN
curl https://bootstrap.pypa.io/get-pip.py | python3.6
RUN
curl https://bootstrap.pypa.io/get-pip.py | python3.7
RUN
curl https://bootstrap.pypa.io/get-pip.py | python3.8
kokoro/linux/python38/build.sh
0 → 100755
View file @
7faab5ee
#!/bin/bash
#
# This is the top-level script we give to Kokoro as the entry point for
# running the "pull request" project:
#
# This script selects a specific Dockerfile (for building a Docker image) and
# a script to run inside that image. Then we delegate to the general
# build_and_run_docker.sh script.
# Change to repo root
cd
$(
dirname
$0
)
/../../..
export
DOCKERHUB_ORGANIZATION
=
protobuftesting
export
DOCKERFILE_DIR
=
kokoro/linux/dockerfile/test/python_stretch
export
DOCKER_RUN_SCRIPT
=
kokoro/linux/pull_request_in_docker.sh
export
OUTPUT_DIR
=
testoutput
export
TEST_SET
=
"python38"
./kokoro/linux/build_and_run_docker.sh
kokoro/linux/python38/continuous.cfg
0 → 100644
View file @
7faab5ee
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/python/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
kokoro/linux/python38/presubmit.cfg
0 → 100644
View file @
7faab5ee
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/python/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
kokoro/linux/python38_cpp/build.sh
0 → 100755
View file @
7faab5ee
#!/bin/bash
#
# This is the top-level script we give to Kokoro as the entry point for
# running the "pull request" project:
#
# This script selects a specific Dockerfile (for building a Docker image) and
# a script to run inside that image. Then we delegate to the general
# build_and_run_docker.sh script.
# Change to repo root
cd
$(
dirname
$0
)
/../../..
export
DOCKERHUB_ORGANIZATION
=
protobuftesting
export
DOCKERFILE_DIR
=
kokoro/linux/dockerfile/test/python_stretch
export
DOCKER_RUN_SCRIPT
=
kokoro/linux/pull_request_in_docker.sh
export
OUTPUT_DIR
=
testoutput
export
TEST_SET
=
"python38_cpp"
./kokoro/linux/build_and_run_docker.sh
kokoro/linux/python38_cpp/continuous.cfg
0 → 100644
View file @
7faab5ee
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/python_cpp/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
kokoro/linux/python38_cpp/presubmit.cfg
0 → 100644
View file @
7faab5ee
# Config file for running tests in Kokoro
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/python_cpp/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
kokoro/release/python/windows/build_artifacts.bat
View file @
7faab5ee
...
...
@@ -62,6 +62,16 @@ SET PYTHON_VERSION=3.7
SET PYTHON_ARCH=64
CALL build_single_artifact.bat || goto :error
SET PYTHON=C:\python38_32bit
SET PYTHON_VERSION=3.8
SET PYTHON_ARCH=32
CALL build_single_artifact.bat || goto :error
SET PYTHON=C:\python38
SET PYTHON_VERSION=3.8
SET PYTHON_ARCH=64
CALL build_single_artifact.bat || goto :error
goto :EOF
:error
...
...
kokoro/release/python/windows/build_single_artifact.bat
View file @
7faab5ee
...
...
@@ -18,6 +18,12 @@ if %PYTHON%==C:\python37_32bit set vcplatform=Win32
if %PYTHON%==C:\python37 set generator=Visual Studio 14 Win64
if %PYTHON%==C:\python37 set vcplatform=x64
if %PYTHON%==C:\python38_32bit set generator=Visual Studio 14
if %PYTHON%==C:\python38_32bit set vcplatform=Win32
if %PYTHON%==C:\python38 set generator=Visual Studio 14 Win64
if %PYTHON%==C:\python38 set vcplatform=x64
REM Prepend newly installed Python to the PATH of this build (this cannot be
REM done from inside the powershell script as it would require to restart
REM the parent CMD process).
...
...
tests.sh
View file @
7faab5ee
...
...
@@ -360,6 +360,10 @@ build_python37() {
build_python_version py37-python
}
build_python38
()
{
build_python_version py38-python
}
build_python_cpp
()
{
internal_build_cpp
export
LD_LIBRARY_PATH
=
../src/.libs
# for Linux
...
...
@@ -408,6 +412,10 @@ build_python37_cpp() {
build_python_cpp_version py37-cpp
}
build_python38_cpp
()
{
build_python_cpp_version py38-cpp
}
build_python_compatibility
()
{
internal_build_cpp
# Use the unit-tests extraced from 2.5.0 to test the compatibilty.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment