Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 720defe

Browse files
release-please[bot]gcf-owl-bot[bot]parthea
authored
chore(main): release 0.1.0 (#2)
* chore(main): release 0.1.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix(deps): require google-api-core >= 2.8.0 Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 1e652a1 commit 720defe

File tree

5 files changed

+63
-52
lines changed

5 files changed

+63
-52
lines changed

.kokoro/test-samples-impl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export PYTHONUNBUFFERED=1
3333
env | grep KOKORO
3434

3535
# Install nox
36-
python3.6 -m pip install --upgrade --quiet nox
36+
python3.9 -m pip install --upgrade --quiet nox
3737

3838
# Use secrets acessor service account to get secrets
3939
if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then
@@ -76,7 +76,7 @@ for file in samples/**/requirements.txt; do
7676
echo "------------------------------------------------------------"
7777

7878
# Use nox to execute the tests for the project.
79-
python3.6 -m nox -s "$RUN_TESTS_SESSION"
79+
python3.9 -m nox -s "$RUN_TESTS_SESSION"
8080
EXIT=$?
8181

8282
# If this is a periodic build, send the test log to the FlakyBot.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
# Changelog
2+
3+
## 0.1.0 (2022-07-08)
4+
5+
6+
### Features
7+
8+
* generate v1alpha2 ([bb0d40d](https://github.com/googleapis/python-dataform/commit/bb0d40d43efd4b9c546dbe7de4fa0374cdc0cff3))

noxfile.py

Lines changed: 52 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -331,42 +331,15 @@ def docfx(session):
331331
def prerelease_deps(session):
332332
"""Run all tests with prerelease versions of dependencies installed."""
333333

334-
prerel_deps = [
335-
"protobuf",
336-
# dependency of grpc
337-
"six",
338-
"googleapis-common-protos",
339-
"google-auth",
340-
"grpcio",
341-
"grpcio-status",
342-
"google-api-core",
343-
"proto-plus",
344-
# dependencies of google-auth
345-
"cryptography",
346-
"pyasn1",
347-
"google-cloud-testutils",
348-
# dependencies of google-cloud-testutils"
349-
"click",
350-
]
351-
352-
for dep in prerel_deps:
353-
session.install("--pre", "--no-deps", "--upgrade", dep)
354-
355-
# Remaining dependencies
356-
other_deps = ["requests"]
357-
session.install(*other_deps)
358-
359-
# Don't overwrite prerelease packages.
360-
unit_test_deps = [
361-
dep for dep in UNIT_TEST_STANDARD_DEPENDENCIES if dep not in prerel_deps
362-
]
363-
session.install(*unit_test_deps)
364-
365-
# Don't overwrite prerelease packages.
366-
system_deps = [
367-
dep for dep in SYSTEM_TEST_STANDARD_DEPENDENCIES if dep not in prerel_deps
368-
]
369-
session.install(*system_deps)
334+
# Install all dependencies
335+
session.install("-e", ".[all, tests, tracing]")
336+
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
337+
system_deps_all = (
338+
SYSTEM_TEST_STANDARD_DEPENDENCIES
339+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
340+
+ SYSTEM_TEST_EXTRAS
341+
)
342+
session.install(*system_deps_all)
370343

371344
# Because we test minimum dependency versions on the minimum Python
372345
# version, the first version we test with in the unit tests sessions has a
@@ -387,14 +360,37 @@ def prerelease_deps(session):
387360
)
388361
]
389362

390-
# Don't overwrite prerelease packages.
391-
constraints_deps = [dep for dep in constraints_deps if dep not in prerel_deps]
392-
if constraints_deps:
393-
session.install(*constraints_deps)
363+
session.install(*constraints_deps)
364+
365+
if os.path.exists("samples/snippets/requirements.txt"):
366+
session.install("-r", "samples/snippets/requirements.txt")
367+
368+
if os.path.exists("samples/snippets/requirements-test.txt"):
369+
session.install("-r", "samples/snippets/requirements-test.txt")
370+
371+
prerel_deps = [
372+
"protobuf",
373+
# dependency of grpc
374+
"six",
375+
"googleapis-common-protos",
376+
"grpcio",
377+
"grpcio-status",
378+
"google-api-core",
379+
"proto-plus",
380+
"google-cloud-testutils",
381+
# dependencies of google-cloud-testutils"
382+
"click",
383+
]
384+
385+
for dep in prerel_deps:
386+
session.install("--pre", "--no-deps", "--upgrade", dep)
394387

395-
# We use --no-deps to ensure that pre-release versions aren't overwritten
396-
# by the version ranges in setup.py.
397-
session.install("--no-deps", "-e", ".[all]")
388+
# Remaining dependencies
389+
other_deps = [
390+
"requests",
391+
"google-auth",
392+
]
393+
session.install(*other_deps)
398394

399395
# Print out prerelease package versions
400396
session.run(
@@ -403,5 +399,16 @@ def prerelease_deps(session):
403399
session.run("python", "-c", "import grpc; print(grpc.__version__)")
404400

405401
session.run("py.test", "tests/unit")
406-
session.run("py.test", "tests/system")
407-
session.run("py.test", "samples/snippets")
402+
403+
system_test_path = os.path.join("tests", "system.py")
404+
system_test_folder_path = os.path.join("tests", "system")
405+
406+
# Only run system tests if found.
407+
if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
408+
session.run("py.test", "tests/system")
409+
410+
snippets_test_path = os.path.join("samples", "snippets")
411+
412+
# Only run samples tests if found.
413+
if os.path.exists(snippets_test_path):
414+
session.run("py.test", "samples/snippets")

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
version = "0.1.0"
2525
release_status = "Development Status :: 3 - Alpha"
2626
dependencies = [
27-
# NOTE: Maintainers, please do not require google-api-core>=2.x.x
28-
# Until this issue is closed
29-
# https://github.com/googleapis/google-cloud-python/issues/10566
30-
"google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
27+
"google-api-core[grpc] >= 2.8.0, <3.0.0dev",
3128
"proto-plus >= 1.15.0, <2.0.0dev",
3229
"protobuf >= 3.19.0, <4.0.0dev",
3330
"grpc-google-iam-v1 >=0.12.4, <1.0.0dev",

testing/constraints-3.7.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Pin the version to the lower bound.
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
66
# Then this file should have google-cloud-foo==1.14.0
7-
google-api-core==1.31.5
7+
google-api-core==2.8.0
88
proto-plus==1.15.0
99
protobuf==3.19.0
1010
grpc-google-iam-v1==0.12.4

0 commit comments

Comments
 (0)