-
Notifications
You must be signed in to change notification settings - Fork 317
chore: add split repo templates #1
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
Conversation
|
synth.py
Outdated
# we do not want override the custom noxfile with the generated one | ||
os.remove(os.path.join(templated_files, "noxfile.py")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at CommonTemplates.py_library(), I suppose there is no better way of excluding a particular template file? Cannot manipulate the excludes
list through kwargs
...
e5b24c5
to
6431098
Compare
templated_files = common.py_library(cov_level=100) | ||
# we do not want to override the custom noxfile with the generated one | ||
os.remove(os.path.join(templated_files, "noxfile.py")) | ||
s.move(templated_files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add an excludes list to s.move
.
s.move(templated_files, excludes=["noxfile.py"])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Since it's a minor thing, I'll do it separately to not block the main PR of the repo migration.
This is "step 6 - Add Repo Templates" of the repo split procedure.
Warning - no.kokoro
,.github/*
, etc. files generated by the synthtool. There might be something missingUpdate: BigQuery's customnoxfile.py
did not include templated files, had to add that manually. Mind thatnoxfile.py
is still autogenerated and would get overridden every time synthtool is run - we probably want to exclude it?Alternatively, we could go back to the autogenerated noxfile. @tswast do yo maybe remember why BigQuery uses a custom noxfile in the first place?Update 2: Managed to hack around overriding the custom noxfile in this library.