-
Notifications
You must be signed in to change notification settings - Fork 8
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
Documentation compatible with pypi #31
Comments
Hi @abhimhamane , Thanks for pointing this out. I will follow up in a few days. Best, |
This is related to the presentation and styling of the code. It is generally a best practice to make the code compliant with the PEP8 Python style guide. It will make the codebase more consistent and accessible. I saw some minor inconsistencies in the spacing and commenting. Some examples:
I'm not sure about this one, but what is the difference between importing a module within and outside the function? I have rarely seen modules being imported within a function. I would like to know your thoughts on this. It would be a straightforward task for me to fix as a newbie. Best, |
Hi @abhimhamane, Right now, our next task would be to build a quality documentation. Substantial work has taken place in the direction already, but it still needs further inputs to be finalized. Before we further proceed, two different approaches to documentation can be done: my preference would be to get both of them done (although one could also be enough). These are:
In the github wiki page, we have provided documentation for most of the codes already. As you have rightly pointed out earlier in the thread, some of the codes are still missing some documentation (https://github.com/mn5hk/pyshbundle/issues/31#issuecomment-1500379188). For the codes missing documentation, I will need to support you closely. I will try to do it, rather slowly, over few weekends. For the codes for which documentation already exists, these were first written (before ensuring pip compatibility) as independent program documentation. Could you edit it in a way to make it in sync with the new changes and pypi compatibility? Additionally, the formatting is rather rough on the document. Feel free to work around and make it look better. I would recommend you to create a new github wiki page (https://github.com/mn5hk/pyshbundle/wiki), and start merging all the other wiki page information there. You can start editing the documentation for pypi compatibility as well as better formatting. Once this is ready, we will add the same content to the github pages document as well. Once this step is completed, I expect the package to be near completion for the first draft release. After this, we can maybe discuss how to take the project even further at some point. Thanks a lot for your contributions, |
Hello @mn5hk , Apologies for the delayed response. It's actually the last week of this semester, so a bit busy with assignments, projects and other deadlines before the end-sem exam. It's a good idea to develop both the GitHub Wiki and Documentation webpage using GitHub Pages. Sure, I'll first complete the documentation of functions with doc strings. I can work with you later, whenever you're free, for those function which do not have doc strings. I'll review the PyPi Documentation guidelines and report with the major styling and formatting recommendations. After which, I can format the codebase to ensure compatibility. P.S. Can you update the Regards, |
Hi @mn5hk , I was going through the best practices for documenting a Python project. I have tried to summarise what I learned. I also propose certain approaches to be incorporated into our project. DocumentationPopularity of any module does not solely depend on its feature capability, but on the ease of usability for others. Ease in terms of usability, bug tracking, bug-fixing and new-features. A comprehensive documentation is essential for this to happen. Key features of a well written documentation (based on organization of django documentation):
Similar approach have been used by the following scientific processing libraries like Code-the-DocsThe standard is to follow the Intro to Python Enhancement Proposal PEP-8 guidelinesProvides certain recommendations and best practices to write more
There are some tools which automate the static formating checking process - popular ones are
Read the Docs simplifies software documentation by automating building, versioning, and hosting of your docs for you. It's actually an open-source project, many of the prominant libraries have been hosted here like Proposals
Some Good Documented Libraries
Important VS-Code Plugins
Important Resources - Website/ Blogs/ YouTube
|
Sounds great |
Hi @mn5hk , I was thinking that do we need the license, acknowledgement and referred papers to be included in each of the file. I was thinking we can remove it and have this info in the README alone. As I mentioned earlier, the convention in Python is to use Let me know what do you think. Regards, |
Hi @abhimhamane , Thanks for pointing out the issues. Let them both be as it is for now.. Best, |
@abhimhamane the case mismatch is because we have tried to retain as much as possible from the original codes. In case a user wants to compare the python and the matlab code versions, we hope the choice of variable nomenclature in our python implementation would assist their work. |
Hi @mn5hk , I have solved the math-markdown error in the I tried changing the theme to the popular Regards, |
@abhimhamane looks awesome, well done :) |
Thanks @mn5hk , I merged the changes but its not getting reflected in the github pages site. Can you tell me how did you setup the github actions for automated deployment. I do not find any |
@abhimhamane I believe the doc file is made; when I implemented the following tutorials for publishing Python package with pypi:
Feel free to go through them in your free time. Also, can you share the updated draft paper with me? I will share it with the team for review. Best, |
Hi @mn5hk , There is some issue with the Regards, |
@abhimhamane I have my suspisions that running the setup.py file should make it work; I will check it over some weekend. Thanks, |
Hi @mn5hk , I guess I found the issue. I hosted the docs on my gh-page (https://abhimhamane.github.io/pyshbundle/). Due to my previous commit there is a new branch |
Hi @abhimhamane, thanks for the update. I just changed the branch to |
Hi @mn5hk , you have selected the |
Hi @abhimhamane thanks. The update has been made and is successful. |
Hi @mn5hk, Can you guide me on how I should test out the code for any unwanted changes I might have made. I see there are no unit tests, but there are some test Regards, |
No description provided.
The text was updated successfully, but these errors were encountered: