Repository navigation
APE4: Astropy Setup Helpers - #5
Conversation
…qualifies as an 'abstract' but it's somewhat complicated to explain the motivation behind this APE in the first place.
…escription section, started filling out the implementation section, and included links to the relevant pull requests
…that have been discussed.
There was a problem hiding this comment.
I agree, astropy-helpers might be better (and more consistent with other packages)
There was a problem hiding this comment.
Do you think it might help to have a sort of definition of terms up front? In particular, the term "package" is extremely overloaded. I try to use it only to refer to the Python package itself, while using "distribution" to refer to the entire project, though sometimes I use "project" for that purpose too.
It's important to be clear that the distribution might be named "astropy-helpers", though the package would have to be "astropy_helpers".
There was a problem hiding this comment.
I think it's good to have an up front definition of terms to make sure there is no misunderstanding. I'm ok with the distribution having - and the package having _ since that's pretty common practice. The paragraph you have above this one already has an up-front definition, but maybe you can add the words 'package' and 'distribution'?
There was a problem hiding this comment.
I agree a definition of terms make sense, but maybe as the first item in "Detailed description" rather than the abstract (which is supposed to be sort of an executive summary). That's what I did in APE5, anyway.
|
Some general questions/comments:
|
|
@eteq - the issue with the docs is that then they will be decoupled from the code itself. Since we want For issues, the problem is that users should hopefully not know about the I agree that the logging and configuration items could be included too. At the end of the day, we're basically separating infrastructure code from functionality, which in my mind is a good idea because they need different release cycles. |
|
At the Developer Hangout today, we discussed this APE and decided a few things. I think this is a list of the key items, altough @astrofrog may have more:
So the APE should be updated to reflect those items. |
|
@eteq - thanks for already summarizing this :) There were only a couple of other things:
|
|
Well, I don't think I've actually done anything on this yet aside from offering opinions... so it'll be good to hear what @embray has to say on the implementation side :) |
|
I've had exactly no time to work on this. |
|
Do you think you might in the near future (i.e., so that we can try to have it for 0.4), @embray, or should we consider shopping around for someone else to work on the implementation with you who might have more time? |
|
No, I'm just focused on getting releases done right now. Then I can turn my attention. I think we'll have that done today. |
|
Ok, sounds good |
|
Finally making some progress on this again. I'm going to make issues for the items brought up in the meeting from January (so glad somebody took notes!) and update the APE as I implement them. |
|
Sounds good! |
|
I don't see much need for the option of including a source tarball of |
|
I'm still a little hesitant. Has anyone actually tried adapting their affiliated package to this yet? In any case, it more or less "works" with the package-template so maybe that's good enough for now, with revisions to be made once we get some real world use? |
|
Hmm... good question. @keflavich @cdeil @kbarbary @wkerzendorf or @mwcraig , have any of you tried this in affiliated packages? |
|
I haven't tried this, but if there's multiple pull requests it's kind of hard. |
|
For affiliated packages the only PR that really matters is astropy/package-template#46 as it demonstrates how one might set up a package to use this feature. In fairness, one major piece of this that is still missing is documentation, but I didn't want to start writing docs until there has been more immediate feedback. That said, maybe I should go ahead and start writing docs on how to use this in a project... |
|
I'm stuck -- how do I add astropy_helpers to an existing repo as a submodule? |
|
Question about a point not addressed here (and maybe it shouldn't be addressed in this APE, don't know): If an affiliated package uses |
|
I think that's outside the scope of this. But it is a good question. I'm leaning toward yes, just for the deduplication. But it also depends on the range of Astropy versions you need/want to be compatible with, as we've updated the version of six a couple times. |
|
I agree this does not fall within the scope of this PR. I think that the answer is basically (as @embray said) that it depends which features of |
|
I can try this with APLpy this evening. |
|
Tried this out tonight, comments in astropy/package-template#46. Bottom line: seemed to work after a couple changes. |
|
@embray - apart from the issues in the pull requests for the core package and the package template, is this APE ready to merge/accept? I don't think there have been any objections, and the issues that have popped up are likely just bugs that can be fixed? Or is there still the possibility that the implementation design will change a lot? |
|
I read the APE ... there are some things that should be updated before it's merged. |
There was a problem hiding this comment.
Too late ... there are already a bunch of issues filed for astropy-helpers.
@astrofrog suggested that I move an issue from the astropy to the astropy-helpers repo here: astropy/astropy#2418 (comment)
@embray @astrofrog What do you want to do?
There was a problem hiding this comment.
Hmm, I naturally felt like it was right to open them on astropy-helpers since the milestones will likely be different for astropy-helpers than for astropy. Certainly pull requests have to be open on astropy-helpers. What do you think?
There was a problem hiding this comment.
There's some pros and cons to activating issues for astropy-helpers.
@embray as the astropy-helpers author (and presumably main maintainer?) should decide.
For developers and very knowledgeable users filing the issue directly against astropy-helpers is better because then commits can be attached directly to the issue.
Users with Astropy installation problems will in most cases not be able to figure out if they should file against astropy or astropy-helpers, even if the docs are really good and clear about that.
So there will in any case be astropy-helper issues filed against astropy ... maybe simply introducing a label for those would be better than asking users to re-file in astropy-helpers?
|
Right, having both issues in astropy-helpers or in astropy with astropy-helpers label could work. |
…ting. The implementation of this addition is in astropy/astropy-helpers#27
|
@embray - what's the situation with this PR? Should we merge it now, or do you think you need to make more changes? Of particular importance is finalizing the dicsussion of how to handle issues in astropy-helpers vs astropy. |
…d out in reality. Added note about the versioning.
|
@embray - should we go ahead and merge this? |
|
I think so. I don't feel comfortable accepting my own APE so if you would like to do it and mark it as accepted that would be good :) |
|
Ok, merging now. Thanks for all your work on this @embray! |
Update uncertainty description to list normal distribution types
Going ahead and creating a PR for this so that I can give this APE a proper number, though the text is nowhere near finished yet.
I feel like the abstract is quite long...but it's difficult to describe in fewer words what the actual problem is that motivates this PEP. Perhaps a better abstract would explain what this proposes and leave the background motivation to the longer description.