Skip to content

Commit 11976b9

Browse files
chore: update templates (#168)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: add 3.9 to noxfile template Since the python-docs-samples noxfile-template doesn't sync with this, I wanted to make sure the noxfile template matched the most recent change [here](https://github.com/GoogleCloudPlatform/python-docs-samples/pull/4968/files) cc @tmatsuo Source-Author: Leah E. Cole <[email protected]> Source-Date: Fri Jan 15 17:24:05 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 56ddc68f36b32341e9f22c2c59b4ce6aa3ba635f Source-Link: googleapis/synthtool@56ddc68 * build(python): make `NOX_SESSION` optional I added this accidentally in #889. `NOX_SESSION` should be passed down if it is set but not marked required. Source-Author: Bu Sun Kim <[email protected]> Source-Date: Tue Jan 19 09:38:04 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: ba960d730416fe05c50547e975ce79fcee52c671 Source-Link: googleapis/synthtool@ba960d7 * chore: Add header checker config to python library synth Now that we have it working in [python-docs-samples](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/header-checker-lint.yml) we should consider adding it to the 🐍 libraries :) Source-Author: Leah E. Cole <[email protected]> Source-Date: Mon Jan 25 13:24:08 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 573f7655311b553a937f9123bee17bf78497db95 Source-Link: googleapis/synthtool@573f765 * chore: add noxfile parameters for extra dependencies Also, add tests for some noxfile parameters for assurance that the template generates valid Python. Co-authored-by: Jeffrey Rennie <[email protected]> Source-Author: Tim Swast <[email protected]> Source-Date: Tue Jan 26 12:26:57 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: 778d8beae28d6d87eb01fdc839a4b4d966ed2ebe Source-Link: googleapis/synthtool@778d8be
1 parent 7cc7275 commit 11976b9

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

.github/header-checker-lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{"allowedCopyrightHolders": ["Google LLC"],
2+
"allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"],
3+
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt"],
4+
"sourceFileExtensions": [
5+
"ts",
6+
"js",
7+
"java",
8+
"sh",
9+
"Dockerfile",
10+
"yaml",
11+
"py",
12+
"html",
13+
"txt"
14+
]
15+
}

.trampolinerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
required_envvars+=(
1919
"STAGING_BUCKET"
2020
"V2_STAGING_BUCKET"
21-
"NOX_SESSION"
2221
)
2322

2423
# Add env vars which are passed down into the container here.

logging-v2-py.tar.gz

Whitespace-only changes.

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def default(session):
8484
session.install("asyncmock", "pytest-asyncio")
8585

8686
session.install("mock", "pytest", "pytest-cov", "flask", "webob", "django")
87+
8788
session.install("-e", ".")
8889

8990
# Run py.test against the unit tests.

samples/snippets/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8585

8686
# DO NOT EDIT - automatically generated.
8787
# All versions used to tested samples.
88-
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"]
88+
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"]
8989

9090
# Any default versions that should be ignored.
9191
IGNORED_VERSIONS = TEST_CONFIG['ignored_versions']

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-logging.git",
7-
"sha": "c89dea4899a2fd7175c2849f158fb921fc017a15"
7+
"sha": "3d765ae66979ae066bcea07fe9ca01008ec4e4d7"
88
}
99
},
1010
{
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "16ec872dd898d7de6e1822badfac32484b5d9031"
22+
"sha": "778d8beae28d6d87eb01fdc839a4b4d966ed2ebe"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "16ec872dd898d7de6e1822badfac32484b5d9031"
29+
"sha": "778d8beae28d6d87eb01fdc839a4b4d966ed2ebe"
3030
}
3131
}
3232
],
@@ -49,6 +49,7 @@
4949
".github/ISSUE_TEMPLATE/feature_request.md",
5050
".github/ISSUE_TEMPLATE/support_request.md",
5151
".github/PULL_REQUEST_TEMPLATE.md",
52+
".github/header-checker-lint.yml",
5253
".github/release-please.yml",
5354
".github/snippet-bot.yml",
5455
".gitignore",
@@ -131,7 +132,6 @@
131132
"google/cloud/logging_v2/types/logging.py",
132133
"google/cloud/logging_v2/types/logging_config.py",
133134
"google/cloud/logging_v2/types/logging_metrics.py",
134-
"logging-v2-py.tar.gz",
135135
"mypy.ini",
136136
"noxfile.py",
137137
"renovate.json",

0 commit comments

Comments
 (0)