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 noxfile parameters for extra dependencies #906

Merged
merged 5 commits into from
Jan 26, 2021

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Jan 15, 2021

Also, add tests for some noxfile parameters for assurance that the
template generates valid Python.

Fixes #838

Also, add tests for some noxfile parameters for assurance that the
template generates valid Python.
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 15, 2021
t = templates.Templates(PYTHON_LIBRARY)
result = t.render("noxfile.py.j2", **template_kwargs,).read_text()
# Validate Python syntax.
result_code = compile(result, "noxfile.py", "exec")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about the compile() function. Thanks for adding these tests!

@busunkim96 busunkim96 changed the title feat: add noxfile parameters for extra dependencies chore: add noxfile parameters for extra dependencies Jan 15, 2021
@tswast
Copy link
Contributor Author

tswast commented Jan 15, 2021

In addition to the unit tests, I've tried these new parameters out here: googleapis/python-bigquery-storage#118

@SurferJeffAtGoogle
Copy link
Contributor

Tim, Bu Sun approved, so please merge at your earliest convenience.

@tswast
Copy link
Contributor Author

tswast commented Jan 26, 2021

@SurferJeffAtGoogle It looks like Bu Sun isn't in CODEOWNERS. I can't merge.

image

@SurferJeffAtGoogle
Copy link
Contributor

SurferJeffAtGoogle commented Jan 26, 2021 via email

@busunkim96 busunkim96 merged commit 778d8be into googleapis:master Jan 26, 2021
@tswast tswast deleted the issue838-extras branch January 26, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: noxfile support for extras
3 participants