Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add function to copy notebook templates #1420

Merged
merged 48 commits into from
Apr 20, 2022
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2cecff8
adding notebook template function
Mar 29, 2022
d181aa9
changing template path
Apr 1, 2022
57803cd
changing template path
Apr 1, 2022
54e16db
chore: add googleapis/yoshi-python to CODEOWNERS (#1380)
parthea Mar 30, 2022
7a9d26c
chore(python): add E231 to .flake8 ignore list (#1379)
parthea Mar 30, 2022
d02aa72
chore: Enable Size-Label bot in all googleapis Python notebook testin…
losalex Mar 30, 2022
55b0a55
chore(python): Enable size-label bot (#1383)
losalex Mar 30, 2022
8d8f411
chore(python): update .pre-commit-config.yaml to use black==22.3.0 (#…
parthea Mar 30, 2022
992b75e
chore(python): Enable size-label bot (#1385)
parthea Apr 1, 2022
ac05cf2
chore: remove dependency on google-api-core (#1372)
renovate-bot Apr 1, 2022
f19c2cf
chore(deps): update dependency numpy to v1.22.3 (#1387)
renovate-bot Apr 1, 2022
b139c2b
chore(deps): disable dependency dashboard (#1223)
dandhlee Apr 1, 2022
802863a
chore(deps): update dependency pandas to v1.4.1 (#1258)
renovate-bot Apr 1, 2022
1144bd6
build(deps): bump ipython (#1336)
dependabot[bot] Apr 1, 2022
b3b46aa
chore: remove use of googleapis-discovery (#1280)
bshaffer Apr 1, 2022
77b8cd3
chore: add classifiers for python 3.7, 3.8 and 3.9 (#1247)
anukaal Apr 1, 2022
0844f13
chore(python): refactor unit / system test dependency install (#1294)
tseaver Apr 1, 2022
bbeb643
chore(python_notebooks): update dependency black to v22 (#1396)
renovate-bot Apr 1, 2022
90c0e89
chore(deps): update dependency ipython to v8 (#1397)
renovate-bot Apr 1, 2022
39c2d19
chore: Enable Size-Label bot in all googleapis NodeJs repositories (#…
losalex Apr 1, 2022
a60843c
chore(deps): update dependency setuptools to v61 (#1398)
renovate-bot Apr 1, 2022
37b20a9
chore(deps): update dependency org.sonatype.plugins:nexus-staging-mav…
renovate-bot Apr 1, 2022
818677e
ci: update testing pipeline for notebooks (#1345)
loferris Apr 1, 2022
4a5191b
chore(deps): update actions/setup-python action to v3 (#1395)
renovate-bot Apr 1, 2022
0072664
chore: upgrade black in noxfile.py to 22.3.0 (#1377)
parthea Apr 1, 2022
e4f8bee
chore(deps): update dependency pandas to v1.4.2 (#1400)
renovate-bot Apr 2, 2022
a3166c6
chore(deps): update dependency setuptools to v61.3.1 (#1399)
renovate-bot Apr 2, 2022
196270c
chore(deps): update dependency nbqa to v1.3.1 (#1391)
renovate-bot Apr 2, 2022
ba8b7b4
chore(deps): update dependency protobuf to v3.19.4 (#1389)
renovate-bot Apr 2, 2022
0638c04
chore(deps): update dependency protobuf to v3.20.0 (#1403)
renovate-bot Apr 2, 2022
505e97f
chore(deps): update dependency setuptools to v62 (#1406)
renovate-bot Apr 4, 2022
99951ef
chore(python): Use python 3.10.4 base image for post processor (#1405)
parthea Apr 4, 2022
b9b3390
chore(deps): update actions/setup-node action to v3 (#1393)
renovate-bot Apr 5, 2022
d8c1225
chore(python): add license header to auto-label.yaml (#1404)
parthea Apr 6, 2022
a0a2279
chore: improve logic to configure release-please for previous major v…
busunkim96 Apr 6, 2022
13722ad
chore: Enable Size-Label bot in all googleapis Java repositories (#1381)
losalex Apr 6, 2022
4cd812b
chore(deps): update actions/checkout action to v3 (#1392)
renovate-bot Apr 6, 2022
dfa4da0
chore: run tests with Python 3.10 (#1407)
SurferJeffAtGoogle Apr 6, 2022
fd8b418
chore(deps): update dependency python to v3.10.4 (#1386)
renovate-bot Apr 6, 2022
75b8c33
fix: clarify the gax-nodejs usage in README (#1352)
summer-ji-eng Apr 7, 2022
212123b
Revert "fix: clarify the gax-nodejs usage in README (#1352)" (#1409)
bcoe Apr 7, 2022
3c349d2
chore(deps): update dependency pyupgrade to v2.32.0 (#1412)
renovate-bot Apr 10, 2022
dbc1d4c
chore(deps): update dependency nbconvert to v6.5.0 (#1414)
renovate-bot Apr 14, 2022
434798f
build: make ci testing conditional on engines field in package.json, …
sofisl Apr 14, 2022
905661c
build: sdd srs yaml file (#1419)
sofisl Apr 14, 2022
59f49e7
update names for template
Apr 19, 2022
f469bd0
Merge branch 'master' into notebook_template_update
loferris Apr 19, 2022
069e1a9
adding type annotation
Apr 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions synthtool/languages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@

SAMPLES_TEMPLATE_PATH = Path(CommonTemplates()._template_root) / "python_samples"

NOTEBOOK_TEMPLATE_PATH = (
Path(CommonTemplates()._template_root) / "python_notebooks_testing_pipeline"
)


def fix_pb2_headers(*, proto_root: str = "**/*_pb2.py") -> None:
s.replace(
Expand Down Expand Up @@ -94,6 +98,14 @@ def _get_sample_readme_metadata(sample_dir: Path) -> dict:
return sample_metadata


def python_notebooks_testing_pipeline() -> None:
in_client_library = Path("owlbot.py").exists()
if in_client_library:
excludes: List[str] = []
_tracked_paths.add(NOTEBOOK_TEMPLATE_PATH)
s.copy([NOTEBOOK_TEMPLATE_PATH], excludes=excludes)


def py_samples(*, root: PathOrStr = None, skip_readmes: bool = False) -> None:
"""
Find all samples projects and render templates.
Expand Down