Conversation
…will always copy over the latest version of ah_bootstrap (so that we can test ah_bootstrap itself), but there should still be a default copy of it in the package-template repo as well
…ludes astropy_helpers as a submodule. Yes, astropy_helpers is now a submodule of package_template which is a submodule of astropy_helpers
…06a751b8a6971b15e7e3d6590a
|
@embray - travis is failing because the git clone is failing. Note that this should likely be merged only after APE4 and astropy/astropy#1563 have been merged, since the clone URL will need to be updated (and the commits optionally squashed) |
|
|
@embray - I tried this with APLpy and got: when trying to Then if I tried adding the submodule as @mwcraig pointed out, I get: Any idea what is happening? |
|
By the way, when I merged in your branch, |
|
@astrofrog -- funny, I almost mentioned this last night but then didn't. The underlying complaint in the second case is that there is a local copy of Delete Probably a good idea to check Under no circumstances should you do |
|
@mwcraig No, As for the other issues I'm not sure. I'll have to try walking through the process of setting up an affiliated package to use this myself, and document the process. I already did as much with the package-template but I think I need to do it again. I suspect the trick involves getting the exact steps for setting up the submodule right. |
|
@embray - just to be clear, all I did was take the current APLpy package, then merge in your branch, resolve conflicts, and that's it. I didn't try and set up the sub-module myself, but maybe I was supposed to? |
|
@embray - I just tried with montage-wrapper and had no issues. I will try again with APLpy later this evening. |
|
@embray - I investigated more the issue with APLpy, and I think the issue was due to the fact that there were residual references to previous versions of this PR in some way (or my previous attempts to get it to work before your PR). I started from a clean PR and everything worked perfectly. |
|
@embray - given this, can we go ahead and merge all the astropy-helpers related PRs today? :) |
|
@embray - once you are ready to merge this, and once you update the submodule URL, you'll need to put the http URL for Travis to pass (the ssh clone isn't working at the moment) |
|
Oh, let me try that and see if I can get the tests to pass with Travis. |
…l work then on Travis
|
Cool, this is passing on Travis now. The next step is to merge astropy/astropy-helpers#1 and then update this PR once more so that the submodule points to the main astropy-helpers repo. Before I merge this PR though should I do anything with the package-template documentation to go along with it? Because the use of astropy_helpers is going to affect, somewhat, how the package-template is used. I think in general the defaults will just work, but maybe it's still worth documenting the different options pertaining to astropy-helpers? |
|
👍 to a brief update of the documentation, though it could be after merging if time is short now. |
|
Okay, astropy/astropy-helpers#1 has been merged so I can update this to repoint the submodule to the main astropy/astropy-helpers. Once that succeeds we can merge this and, well, we'll see how it goes. |
|
Sounds good! |
|
@embray - looks like it needs HTTP, not HTTPS |
|
That makes no sense. |
|
I just screwed up the URL, that's all. |
|
@embray - ah right sorry, I just assumed that because travis seemed to be asking for username/password it interpreted HTTPS as always requiring authentication. |
|
Yeah, GitHub does that instead of returning a 404. This is presumably in order to protect the existence of private repositories, but it's still confusing. |
There was a problem hiding this comment.
@embray - just to check, is it normal that we no longer pass PACKAGENAME here?
There was a problem hiding this comment.
It seems this is intentional, and works fine like this (and not with PACKAGENAME), so I think you can ignore my comment.
|
@embray - apart from my comment above, this is good to go. |
|
@embray - actually, as per astropy/astropy#2519, we should update the submodule to ecb29056e257bbb0984d71e16d00abc697e581e2 but not to the latest commit since this breaks Sphinx builds. Could you update the submodule commit here? |
|
Ok, since this is passing, I'm going to merge and then update the astropy-helpers version in a separate pull request. |
This PR updates the package template to use the prototype of astropy_helpers, distributed as part of the package template using the git submodule mechanism.
This PR accompanies astropy/astropy-APEs#5 which tracks the APE draft describing astropy_helpers, as well as astropy/astropy-helpers#1 which contains the initial draft implementation of the
astropy_helperspackage and theah_bootstrapmodule, and astropy/astropy#1563 which is the analog to this PR, but for Astropy itself (that is, it converts Astropy to using astropy_helpers).This PR should not be merged until the APE is finalized, and this PR has been updated to point the astropy_helpers submodule to the main astropy_helpers repository.