File tree 5 files changed +88
-2
lines changed
5 files changed +88
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ build_file: " python-bigquery-dataframes/scripts/windows/build.bat"
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ build_file: " python-bigquery-dataframes/scripts/windows/build.bat"
Original file line number Diff line number Diff line change 62
62
UNIT_TEST_EXTRAS : List [str ] = []
63
63
UNIT_TEST_EXTRAS_BY_PYTHON : Dict [str , List [str ]] = {}
64
64
65
- SYSTEM_TEST_PYTHON_VERSIONS = ["3.9" , "3.12" ]
65
+ # 3.10 is needed for Windows tests.
66
+ SYSTEM_TEST_PYTHON_VERSIONS = ["3.9" , "3.10" , "3.12" ]
66
67
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
67
68
"jinja2" ,
68
69
"mock" ,
100
101
"docfx" ,
101
102
"unit" ,
102
103
"unit_noextras" ,
103
- "system" ,
104
+ "system-3.9" ,
105
+ "system-3.12" ,
104
106
"cover" ,
105
107
]
106
108
Original file line number Diff line number Diff line change
1
+ @ rem Copyright 2024 Google LLC
2
+ @ rem
3
+ @ rem Licensed under the Apache License, Version 2.0 (the "License");
4
+ @ rem you may not use this file except in compliance with the License.
5
+ @ rem You may obtain a copy of the License at
6
+ @ rem
7
+ @ rem http://www.apache.org/licenses/LICENSE-2.0
8
+ @ rem
9
+ @ rem Unless required by applicable law or agreed to in writing, software
10
+ @ rem distributed under the License is distributed on an "AS IS" BASIS,
11
+ @ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ @ rem See the License for the specific language governing permissions and
13
+ @ rem limitations under the License.
14
+
15
+ :; Change directory to repo root.
16
+ SET script_dir = " %~dp0 "
17
+ cd " %~dp0 " \..\..
18
+
19
+ echo " Listing available Python versions'
20
+ py -0 || goto :error
21
+
22
+ py -3.10 -m pip install --upgrade pip || goto :error
23
+ py -3.10 -m pip install --upgrade pip setuptools wheel || goto :error
24
+
25
+ echo " Building Wheel"
26
+ py -3.10 -m pip wheel . --wheel-dir wheels || goto :error/
27
+
28
+ echo " Built wheel, now running tests."
29
+ call " %script_dir% " /test.bat 3.10 || goto :error
30
+
31
+ echo " Windows build has completed successfully"
32
+
33
+ :; https://stackoverflow.com/a/46813196/101923
34
+ :; exit 0
35
+ exit /b 0
36
+
37
+ :error
38
+ exit /b %errorlevel%
Original file line number Diff line number Diff line change
1
+ @ rem Copyright 2024 Google LLC
2
+ @ rem
3
+ @ rem Licensed under the Apache License, Version 2.0 (the "License");
4
+ @ rem you may not use this file except in compliance with the License.
5
+ @ rem You may obtain a copy of the License at
6
+ @ rem
7
+ @ rem http://www.apache.org/licenses/LICENSE-2.0
8
+ @ rem
9
+ @ rem Unless required by applicable law or agreed to in writing, software
10
+ @ rem distributed under the License is distributed on an "AS IS" BASIS,
11
+ @ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ @ rem See the License for the specific language governing permissions and
13
+ @ rem limitations under the License.
14
+
15
+ @ rem This test file runs for one Python version at a time, and is intended to
16
+ @ rem be called from within the build loop.
17
+
18
+ :; Change directory to repo root.
19
+ SET script_dir = " %~dp0 "
20
+ cd " %~dp0 " \..\..
21
+
22
+ set PYTHON_VERSION = %1
23
+ if " %PYTHON_VERSION% " == " " (
24
+ echo " Python version was not provided, using Python 3.10"
25
+ set PYTHON_VERSION = 3.10
26
+ )
27
+
28
+ py -%PYTHON_VERSION% -64 -m pip install nox || goto :error
29
+
30
+ py -%PYTHON_VERSION% -64 -m nox -s unit-" %PYTHON_VERSION% " || goto :error
31
+
32
+ :; TODO(b/358148440): enable system tests on windows
33
+ :; py -%PYTHON_VERSION%-64 -m nox -s system-"%PYTHON_VERSION%" || goto :error
34
+
35
+ :; https://stackoverflow.com/a/46813196/101923
36
+ :; exit 0
37
+ exit /b 0
38
+
39
+ :error
40
+ exit /b %errorlevel%
You can’t perform that action at this time.
0 commit comments