-
Notifications
You must be signed in to change notification settings - Fork 120
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
[Enhancement] Update PyPi version and Sphinx docs? #262
Comments
Hi, yeah you are right, the docs and pypi versions definitely need to receive an update. For the PyPi part, this approach seems to be quite nice. In that guide, this pypi github action is used. What do you guys think about that? @multimeric @giovtorres Not sure how an automated workflow to keep the docs at pyslurm.github.io would look though. I noticed its also only possible to view the docs for one version. Perhaps another enhancement to implement on the pages would be to be able to select the pyslurm version for which you want to view the docs? Not sure however if thats possible. |
Yes, I think a github actions type solution to both of these would be ideal. For the docs versioning, it seems there are a few solutions:
|
ReadTheDocs could definitely be a good option for hosting the docs. If you would like to write a GitHub action for publishing a new release to PyPi, that would be great :) |
Sounds good, that's a pretty common workflow (to publish on git tag). If you make a decision about the doc build I'm happy to implement it too. |
I'm late here, but this is an area of the project that needed some love for a while. I had started to publish versions a few years ago, but never got it to be fully automated with Travis CI (at the time), and it just rotted :( Definitely sounds like GitHub Actions is the way forward here for docs! Multi-version docs is also great for this particular project. I've used both Sphinx and Mkdocs in the past and I don't have a preference for either. I'd go with whatever is easier at this point. Thanks @multimeric for leaning in here, and thanks @tazend for stewarding all these recent changes 🎉 |
Another thing which I'd think would be nice at least for the in-code readability of the documentation is to switch over from Both the google and numpy format are prettier in my opinion (personally prefer the google style). Both sphinx and mkdocstring support them (and I think mkdocstring uses google format by default), so that wouldn't be a problem, and its rather just for the documentation style in the codebase. I've seen that there are tools like pyment which can help to automate the switch (not sure if it can also handle cython pyx files though) |
True, but I think that's a more minor point since it doesn't impact users. |
In terms of versioned docs, |
Hi @giovtorres to automatically publish new releases to PyPi in the future, a PyPi API-Token needs to be added as a Github Secret to this repository. Would it be possible to give me access to add Secrets, push access for pyslurm.github.io (for updating the documentation) and access to PySlurm's PyPi? (my PyPi user is also tazend) P.S. I've also tried to contact you regarding maintaining PySlurm via your gmail (hope thats ok) - would appreciate if you could have a look :) |
@multimeric yeah I would drop the focus on multiversion for now - maybe we find another solution later on or perhaps switching from github pages to something like readthedocs that handles multiversion might be the way to go then. |
Alright, I've played with Cython and mkdocs a bit more - maybe we can still actually use mkdocs. This option must be enabled explicitly in Cython 0.29.x, but is enabled by default in Cython 3.0 onwards. Good so far, however the default values for arguments in a function are not preserved in Cython <= 3.0. I've then tried to compile One thing mkdocs still doesn't do is interpreting a Sphinx for example does it correct though. So, the only thing that is needed would be to use the latest Cython e.g. What do you think? Having multiversion docs would then be viable again |
Sounds good! If it's possible, it would be nice to only require a newer Cython for the docs (on our CI sever), and otherwise leave all the parameters as default. That should give us the best of both worlds. I saw the |
Feel free to open a PR if you're branched off my branch so I can test your changes to support Cython 3. |
ping @giovtorres - would appreciate if you could check out my comment here :) |
Good news: The documentation has now been updated at https://pyslurm.github.io/ with multi-version support already enabled 🎉 (although at the moment only 23.2 is shown). There is probably still many things to improve, but its a start :) |
Was pypi update with tag push ever added? I still see the latest release on pypi is 18.8.1.1 from Oct 10, 2018. Could I help with the GH actions revisions? |
Hello, Is there any news about this thread? I would like to be able to install slurm using pip, but the version it installs is 18.8.1.1 (currently outdated): pyslurm In any other case, is there any way I can install it in my Python project and start working with it? |
Hi @CarlosAndreo, you can just clone the repo and select a specific branch/tag, and then follow the instructions in the README. You just need to point pyslurm to your Slurm installation, and can then do |
I note that firstly the PyPI version is 18.8.1.1: https://pypi.org/project/pyslurm/. Also the docs seem to be only for 17.11.0.15. This is a pity, because recent versions of PySlurm have added lots of nice improvements!
pip install pyslurm
users and also people who visit the website won't be aware of many of these.Is there any way I can help with getting these updated? Happy to write a GitHub actions publish action, for instance.
The text was updated successfully, but these errors were encountered: