Skip to content

Commit b6caad6

Browse files
authored
feat: prepare for initial release
Includes code from all commits in internal repo up to 6a7b313 Prepared in the following way: ``` git fetch github main git checkout -b prepare-0.1.0 github/main git merge --squash 6a7b313 ```
1 parent 765a7af commit b6caad6

File tree

241 files changed

+52741
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+52741
-4
lines changed

.flake8

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Generated by synthtool. DO NOT EDIT!
18+
[flake8]
19+
ignore = E203, E231, E266, E501, W503
20+
exclude =
21+
third_party/**
22+
23+
# Exclude generated code.
24+
**/proto/**
25+
**/gapic/**
26+
**/services/**
27+
**/types/**
28+
*_pb2.py
29+
30+
# Standard linting exemptions.
31+
**/.nox/**
32+
__pycache__,
33+
.git,
34+
*.pyc,
35+
conf.py

.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
*.py[cod]
2+
*.sw[op]
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
.eggs
14+
parts
15+
bin
16+
var
17+
sdist
18+
develop-eggs
19+
.installed.cfg
20+
lib
21+
lib64
22+
__pycache__
23+
24+
# Installer logs
25+
pip-log.txt
26+
27+
# Unit test / coverage reports
28+
.coverage
29+
.coverage.*
30+
.nox
31+
.cache
32+
.mypy_cache
33+
.pytest_cache
34+
.pytype
35+
36+
37+
# Mac
38+
.DS_Store
39+
40+
# JetBrains
41+
.idea
42+
43+
# VS Code
44+
.vscode
45+
46+
# emacs
47+
*~
48+
49+
# Built documentation
50+
docs/_build
51+
bigquery/docs/generated
52+
docs.metadata
53+
54+
# Virtual environment
55+
env/
56+
venv/
57+
58+
# Test logs
59+
coverage.xml
60+
*sponge_log.xml
61+
62+
# System test environment variables.
63+
system_tests/local_test_setup
64+
65+
# Make sure a generated file isn't accidentally committed.
66+
pylintrc
67+
pylintrc.test
68+
69+
# Notebook scratch
70+
.ipynb_checkpoints

.isort.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
profile=black
3+
force_sort_within_sections=True
4+
lexicographical=True
5+
single_line_exclusions=('typing',)
6+
order_by_type=False
7+
group_by_package=True

.kokoro/build.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
# Copyright 2023 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
18+
if [[ -z "${PROJECT_ROOT:-}" ]]; then
19+
PROJECT_ROOT="${KOKORO_ARTIFACTS_DIR}/git/bigframes"
20+
fi
21+
22+
cd "${PROJECT_ROOT}"
23+
24+
# Disable buffering, so that the logs stream through.
25+
export PYTHONUNBUFFERED=1
26+
27+
# Debug: show build environment
28+
env | grep KOKORO
29+
30+
# Install pip
31+
python3 -m pip install --upgrade --quiet pip
32+
python3 -m pip --version
33+
34+
# Remove old nox
35+
python3 -m pip uninstall --yes --quiet nox-automation
36+
37+
# Install nox
38+
python3 -m pip install --upgrade --quiet nox
39+
python3 -m nox --version
40+
41+
# If NOX_SESSION is set, it only runs the specified session,
42+
# otherwise run all the sessions.
43+
if [[ -n "${NOX_SESSION:-}" ]]; then
44+
python3 -m nox --stop-on-first-error -s ${NOX_SESSION:-}
45+
else
46+
python3 -m nox --stop-on-first-error
47+
fi

.kokoro/continuous/common.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
build_file: "bigframes/.kokoro/build.sh"

.kokoro/continuous/continuous.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto

.kokoro/continuous/e2e.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "system_prerelease system_noextras e2e notebook samples"
7+
}

.kokoro/continuous/nightly.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "NOX_SESSION"
5+
value: "unit unit_prerelease system system_prerelease cover lint lint_setup_py mypy format docs e2e notebook"
6+
}
7+
8+
build_file: "bigframes/.kokoro/release-nightly.sh"

.kokoro/presubmit/common.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
build_file: "bigframes/.kokoro/build.sh"

.kokoro/presubmit/e2e.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "system_prerelease system_noextras e2e notebook samples"
7+
}

.kokoro/presubmit/presubmit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto

0 commit comments

Comments
 (0)