-
-
Notifications
You must be signed in to change notification settings - Fork 42
Document "common commands" #56
Comments
Yes this sounds worthwhile. I will say now that for myself I've found it best, when doing work on astropy-helpers, to not mess with the submodule (really it's not intended to be messed with). But instead I have a separate clone of the astropy-helpers repository and I just install it into my virtualenv with That said, I could see an advantage to coming up with and documenting an easier workflow for working on astropy-helpers directly within a submodule as well. It's just a little trickier since, as you said, that affects the repo in which it is a submodule as well. |
In my clone of the
I don't know why |
Concerning my last comment, I ran
which printed
and now I do have a clean |
I thought it did, but it looks like it doesn't after all. That could be fine, though I wouldn't want it to display that information by default. Perhaps when the |
I've been using a slightly different workflow from what @embray suggested above with the virtualenv. I use Does that sounds like a workflow worth documenting, @embray and @cdeil? I think it's simpler than the virutalenv approach, so people are more likely to pay attention to it... (although we can certainly offer both). |
I haven't used either of these workflows, so I don't want to comment which one is worth documenting. Personally I find the fact that the @eteq You mention a |
@cdeil - If I execute @cdeil : I 100% agree those options should show up in |
Oh, one other comment, re:
I think this actually is urgent and should be a top priority, because right now it's very difficult for anyone not in the core dev team to contribute to the helpers at all. That said, @embray apparent plans some major changes that might affect this anyway, so I understand that we don't want to write docs that are immediately not relevant. But anything that's likely to stay stable we should start working on now. (along those lines, if @embray is ok with me documenting the workflow I described above, I'm happy to do a PR along those lines now) |
@eteq No, I do see the |
@cdeil - I see your point about showing the git commands - see #62. Note, though, that |
I don't really have an opinion on it. Per my comment in #7 I definitely want to have more complete docs for this, but I'd rather focus my own efforts on some larger structural changes that would invalidate a lot of documentation anyone would write now (except maybe docs for the Sphinx extensions, but those are already documented in the Astropy docs themselves). |
Alright, in that case probably the thing to do is use |
How about changing This will make it easy to change to Sphinx docs later if we want things like cross-linked pages and full-text search. |
Yeah, that makes sense, @cdeil. So whatever PR adds those directions can also do the rename. |
I'd like to make a |
@cdeil - if you go inside the submodule and do |
As an affiliated package maintainer, I find it pretty frustrating that (and thanks to @astrofrog for starting to write up affiliated package release instructions at astropy/package-template#103 !) |
@astrofrog Thanks for the instructions, I can confirm that this works:
Can you please add this to the affiliated package release instructions at astropy/package-template#103 ? |
@cdeil - I don't think that should be part of the release instructions, since it should really be updated when available, independent of releases. I think we should instead have a section on updating affiliated packages to the latest template and astropy-helpers, in the astropy dev docs for affiliated packages. Do you want to add it there? |
Now that we finally have proper docs (http://astropy-helpers.readthedocs.io) I think we can close this. But @cdeil, feel free to open a new issue if any parts of the docs are unclear! |
@astrofrog - wonderful. Thank you! |
I realise writing full documentation for
astropy-helpers
will take time and it not very urgent.Would it be possible to start with a very short document of "common commands" to work with
astropy-helpers
? Here's some things I'd like to know:astropy-helpers
, should I do that in the git submodule ofastropy
or check out a separate copy of the repo? In the past I've used the git submodule, but then after making my commit in a branch I didn't know the git commands to get back to a "clean state" locally.astropy
via SSH, theastropy-helpers
submodule still has a HTTPS URL. Which command should I use to change this to an SSH URL (in theastropy
orastropy-helpers
repo?)astropy-helpers
after some fix has been made?cc @embray @eteq
The text was updated successfully, but these errors were encountered: