Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 1e58767

Browse files
committed
Install the correct python-api-core with AsyncIO support
1 parent 168d8c4 commit 1e58767

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

noxfile.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def unit(session):
3636
'pyfakefs',
3737
)
3838
session.install('-e', '.')
39-
session.install('git+https://github.com/lidizheng/python-api-core.git@aio-integration')
39+
# TODO(lidiz) Remove this install after api-core released with AsyncIO support
40+
session.install('-U', 'git+https://github.com/lidizheng/python-api-core.git@aio-integration#egg=google-api-core')
4041

4142
session.run(
4243
'py.test',
@@ -68,9 +69,18 @@ def showcase(
6869
session.log('-' * 70)
6970

7071
# Install pytest and gapic-generator-python
71-
session.install('pytest')
72+
session.install('pytest', 'git+https://github.com/pytest-dev/pytest-asyncio.git')
7273
session.install('-e', '.')
7374

75+
# TODO(lidiz) Remove this install after api-core released with AsyncIO support
76+
session.install('-U', 'git+https://github.com/lidizheng/python-api-core.git@aio-integration#egg=google-api-core')
77+
78+
# TODO(lidiz) Remove the daily build install once new API got released.
79+
session.install(
80+
"--pre", "--upgrade", "--force-reinstall",
81+
"--extra-index-url", "https://packages.grpc.io/archive/2020/04/3dca4a321326dfbf6e3656b6d5fc29cf5f4b6f95-76408568-daeb-49cd-b869-be2fd4066e8f/python",
82+
"grpcio")
83+
7484
# Install a client library for Showcase.
7585
with tempfile.TemporaryDirectory() as tmp_dir:
7686
# Download the Showcase descriptor.
@@ -119,15 +129,23 @@ def showcase_unit(
119129
"""Run the generated unit tests against the Showcase library."""
120130

121131
# Install pytest and gapic-generator-python
122-
session.install(
123-
"-e",
124-
"git+https://github.com/googleapis/python-api-core.git@ca6c41cf460e505e6b228263170927270626222a#egg=google-api-core",
125-
)
132+
# TODO(lidiz) Remove this install after api-core released with AsyncIO support
133+
session.install('-U', 'git+https://github.com/lidizheng/python-api-core.git@aio-integration#egg=google-api-core')
134+
# session.install(
135+
# "-e",
136+
# "git+https://github.com/googleapis/python-api-core.git@ca6c41cf460e505e6b228263170927270626222a#egg=google-api-core",
137+
# )
126138
session.install(
127139
'coverage', 'pytest', 'pytest-cov', 'pytest-xdist',
128140
'git+https://github.com/pytest-dev/pytest-asyncio.git')
129141
session.install('.')
130142

143+
# TODO(lidiz) Remove the daily build install once new API got released.
144+
session.install(
145+
"--pre", "--upgrade", "--force-reinstall",
146+
"--extra-index-url", "https://packages.grpc.io/archive/2020/04/3dca4a321326dfbf6e3656b6d5fc29cf5f4b6f95-76408568-daeb-49cd-b869-be2fd4066e8f/python",
147+
"grpcio")
148+
131149
# Install a client library for Showcase.
132150
with tempfile.TemporaryDirectory() as tmp_dir:
133151

0 commit comments

Comments
 (0)