Packaging To Do #153
evavagiakis
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
LICENSE.txt
there are a limited number of possibilities for this; feel free to copy whatever seems most appropriateREADME.md
this is by default the "greeting" material on the GitHub page, so it should use markdown and include installation and usage instructionspyproject.toml
includes dependencies, version info, etc. (this mostly replacessetup.py
in case you're more familiar with that)setup.cfg
(optional) this can take some of the data frompyproject.toml
in case you want to split it upconda-env.yml
(optional) this is a very handy way to help people create their own new venv that will work with your codetests
inside of which there are modules whose names start "test_
" and mimic the modules in the working directorypaper
inside of which the JOSS materials gonotebooks
(optional, but you will want this).github/workflows
(optional, but this will contain the CI script for making a JOSS pdf draft)jupyter-notebook
includes some very nice new capability for nesting sections using markdown -- consider using this new functionalitysphinx
in case you want to google it. If you have a IDE then it might do this automatically (PyCharm does; I believe VSCode does as well). I don't know how particular you need to be, but you should at least have two separate "sections", one calledArgs:
orInputs:
orParameters:
and another calledReturns:
. There should be a clear demarcation between these sections. The docstring should essentially be pseudo-code that is sufficiently detailed that someone could rewrite the function using only the docstring (if they had to). You don't need to document "hidden" functions (functions that start with_
) -- in fact, if you find yourself looking at a function and you think "this doesn't really need to be documented since I don't think a user will need to interact with it directly", that's an indication that maybe it ought to be a hidden functionFor all of this, there should be decent examples in DeepCMBsim
Beta Was this translation helpful? Give feedback.
All reactions