-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Provide setup overrides #285
Provide setup overrides #285
Conversation
ea54c6c
to
9cdfe98
Compare
This appears to be working, but would like to hear your thoughts on it, @pelson. |
9cdfe98
to
15cf837
Compare
I think I see the usecase (dealing with the recursive issue of building conda-forge-build-setup with conda-forge-build-setup). I'm more in favour of making this a configuration item in |
15cf837
to
93fd34f
Compare
It might get a bit hairy if we try to add the override script to the config. Might I suggest we just inject the script contents into the CI scripts as we did with |
93fd34f
to
6ccc948
Compare
Copying you on this, @jjhelmus. Basically this is the only safe way I know of to re-render |
6ccc948
to
70857cb
Compare
So I had another look at trying to inject the contents of these files into the CI YAML files. TBH I'm not sure it is such a good idea. There are lots of things that might not behave right or as expected. For instance, one can provide arguments to the intended shell on POSIX systems in the shebang. Other examples include things like These are the options I see for us. Accept this basically as is with whatever minor tweaks are needed. Reject it and come up with another way to re-render things like |
70857cb
to
0d9127f
Compare
@pelson can you please let me know your thoughts on this when you have a chance? |
eaf6513
to
810e0dd
Compare
195e564
to
8d793c4
Compare
Am sure you are utterly swamped, but would definitely appreciate your feedback on this when you have a chance @pelson . As we need to get some of the re-rendering changes at |
Thanks @jakirkham. I'll take a look at this in the context of https://github.com/conda-forge/conda-forge-build-setup-feedstock today (its already Friday here 😉 ). |
14d327a
to
9ce6d79
Compare
So I have rewritten this entirely. It is a large departure from its original form as it attempts to detect the scripts from The result is this is a no-op for an ordinary feedstock. This should hopefully address the noise concerns raised. Also it should keep this as a feature of As we cannot inject these scripts into the CI scripts due to the aforementioned problems, we still don't do that for Would be curious to know your thoughts on these changes @pelson . 😄 |
0c3b643
to
a2c1578
Compare
This is handy when the upload script works fine, but the setup step needs to be overridden. In these cases, we want to be sure `conda-forge-build-setup` is still provided so the upload script can be used from it if needed.
a2c1578
to
0bc7374
Compare
Coverage dips, but I'm not worried about that. |
cc-ing @jjhelmus for awareness. Have tested this in PR ( conda-forge/conda-forge-build-setup-feedstock#30 ) and it does fine. |
Thoughts @conda-forge/core ? |
This is precisely how I would have implemented this change, thanks for following through and persevering! I'd just like to confirm, this is absolutely a no-op for existing feedstocks, right? I'd like to avoid having to have to re-render all feedstocks for newlines etc. Otherwise, 👍 from me. |
Thanks for taking a look Phil. Cool, glad to hear this is what you had in mind. Correct this is a no-op on other feedstocks. There are not even whitespace changes. Worked very hard to ensure even whitespace changes did not occur. Have tried with things that use Please let me know if there is anything else. |
Anything else? |
My downtime is so long at the moment that you can definitely take my judicious 👍 as approval to merge 😉 . |
Thanks Phil. |
Fixes #284
Provides a way to bootstrap
conda-forge-build-setup
. Also provides the ability for feedstocks to override their configurations manually at a local level if needed. This should hopefully give everyone a little bit of what they want while addressing a notable issue.Testing of this can be seen in PR ( conda-forge/conda-forge-build-setup-feedstock#30 ).
TODO: