Skip to content

Ready for 0.4.0 PyPI/GitHub release #225

Closed

Description

@sbillinge

PyPI/GitHub rc-release preparation checklist:

  • All PRs/issues attached to the release are merged.
  • All the badges on the README are passing.
  • License information is verified as correct. If you are unsure, please comment below.
  • Locally rendered documentation contains all appropriate pages, tutorials, and other human-written text is up-to-date with any changes in the code.
  • All API references are included. To check this, run conda install scikit-package and then package build api-doc. Review any edits made by rerendering the docs locally.
  • Installation instructions in the README, documentation, and the website are updated.
  • Successfully run any tutorial examples or do functional testing with the latest Python version.
  • Grammar and writing quality are checked (no typos).
  • Install pip install build twine, run python -m build and twine check dist/* to ensure that the package can be built and is correctly formatted for PyPI release.
  • Dispatch matrix testing to test the release on all Python versions and systems. If you do not have permission to run this workflow, tag the maintainer and say @maintainer, please dispatch matrix testing workflow.

Please tag the maintainer (e.g., @username) in the comment here when you are ready for the PyPI/GitHub release. Include any additional comments necessary, such as version information and details about the pre-release here:

PyPI/GitHub full-release preparation checklist:

  • Create a new conda environment and install the rc from PyPI (pip install <package-name>==??)
  • License information on PyPI is correct.
  • Docs are deployed successfully to https://<github-username-or-orgname>/<package-name>.
  • Successfully run all tests, tutorial examples or do functional testing.

Please let the maintainer know that all checks are done and the package is ready for full release.

conda-forge release preparation checklist:

  • Ensure that the full release has appeared on PyPI successfully.
  • New package dependencies listed in conda.txt and tests.txt are added to meta.yaml in the feedstock.
  • Close any open issues on the feedstock. Reach out to the maintainer if you have questions.
  • Tag the maintainer for conda-forge release.

Post-release checklist

  • Run tutorial examples and conduct functional testing using the installation guide in the README. Attach screenshots/results as comments.
  • Documentation (README, tutorials, API references, and websites) is deployed without broken links or missing figures.

Activity

  1. added this to the 0.4.0 release milestone on Sep 4, 2026
  2. Akadib commented on Nov 2, 2026

    @Akadib

    @stevenhua0320 some of the items within PyPI/GitHub rc-release preparation checklist I have gone through in my last PR, right? However, I am confused about this last item: Dispatch matrix testing to test the release on all Python versions and systems. I think I understand the other issues in different checklist, but some of the issues will be more clear and comfortable to me once I start the technical workflow for every checklists.

  3. sbillinge commented on Nov 2, 2026

    @sbillinge
    ContributorAuthor

    @Akadib hopefully everything is done. The checklist are things for you to check to make sure they are done before we go public with the release. For example, the second one, all the badges in the README are passing, you check the readme and if they are all passing, then you check that box. You do the check then you check the box. Any questions or things that aren't clear, don't check the box and ask a question down here.

  4. sbillinge commented on Nov 2, 2026

    @sbillinge
    ContributorAuthor

    I went through the issues and moved all but one to the 0.5.0 release.

  5. Akadib commented on Nov 2, 2026

    @Akadib

    @sbillinge Sounds good!

  6. sbillinge commented on Nov 2, 2026

    @sbillinge
    ContributorAuthor

    @Akadib I also ran the matrix CI so hopefully the README badges are ok now.

  7. stevenhua0320 commented on Nov 7, 2026

    @stevenhua0320
    Contributor

    @Akadib What's the status here, could we make a prerelease now?

  8. Akadib commented on Nov 11, 2026

    @Akadib

    @stevenhua0320 for item 5, in the first checklist, this is what I did:

    Screenshot 2026-11-10 at 5 48 27 PM Screenshot 2026-11-10 at 5 48 34 PM
  9. Akadib commented on Nov 11, 2026

    @Akadib

    Screenshot for second item of prerelease checklist:

    Screenshot 2026-11-10 at 5 54 01 PM Screenshot 2026-11-10 at 5 54 18 PM Screenshot 2026-11-10 at 5 54 40 PM Screenshot 2026-11-10 at 5 54 55 PM
  10. stevenhua0320 commented on Nov 11, 2026

    @stevenhua0320
    Contributor

    @Akadib Good progress, now you should find there is a folder called docs/build, and then open that folder, there is a file called index.html, and you could open it via some web browser, which would see the documentation build on local.

  11. Akadib commented on Nov 11, 2026

    @Akadib

    Screenshot for third item in the prerelease checklist:

    Screenshot 2026-11-10 at 5 57 33 PM
  12. stevenhua0320 commented on Nov 11, 2026

    @stevenhua0320
    Contributor

    Screenshot for second item of prerelease checklist:

    Screenshot 2026-11-10 at 5 54 01 PM Screenshot 2026-11-10 at 5 54 18 PM Screenshot 2026-11-10 at 5 54 40 PM Screenshot 2026-11-10 at 5 54 55 PM

    For this, you need to take the screenshot of the output instead of how we code it. Something like what I show below.

    Screenshot 2026-11-10 at 8 58 02 PM
  13. Akadib commented on Nov 11, 2026

    @Akadib

    ld find there is a folder called docs/build,

    @stevenhua0320 I did not find any index.html file but there is index.rst file. Let me share the screenshot with you:

    Screenshot 2026-11-10 at 6 01 47 PM
  14. Akadib commented on Nov 11, 2026

    @Akadib

    Screenshot for second item of prerelease checklist:

    For this, do I need to convert ReadMe.rst file into a Md file? In my knowledge, there is no .Md readme file in the folder.

  15. stevenhua0320 commented on Nov 11, 2026

    @stevenhua0320
    Contributor

    Screenshot for second item of prerelease checklist:

    For this, do I need to convert ReadMe.rst file into a Md file? In my knowledge, there is no .Md readme file in the folder.

    No, another way you can check the doc is make sure your cwd is on docs, then run the command make html, then you will see the folder that I said.

  16. 25 remaining items

  17. Akadib commented on Nov 12, 2026

    @Akadib

    @stevenhua0320 am I done with fixing the warnings? Also @sbillinge there are other warnings like

    warning: no previously-included files matching 'pycache' found anywhere in distribution
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.idea' found anywhere in distribution

    do I need to fix it?

  18. Akadib commented on Nov 12, 2026

    @Akadib

    @sbillinge please dispatch matrix testing workflow at your convenience.

  19. stevenhua0320 commented on Nov 12, 2026

    @stevenhua0320
    Contributor

    @Akadib Now the pre-release is done, you could go on and do the checklist for the full release, follow the guide there and I believe you can do it.

  20. Akadib commented on Nov 12, 2026

    @Akadib

    @sbillinge @stevenhua0320 Thanks for your feedback. I think I am ready for PyPI/GitHub full-release so now I will start the second PyPI full release checklist. @sbillinge would I need any permission to do that?

  21. sbillinge commented on Nov 13, 2026

    @sbillinge
    ContributorAuthor

    @Akadib I do the release, but you have to test the pre-release and then report back. this means installing the package in a clean new environment installing it directly from pypi and then running all the tests and examples and reporting

    conda create -n lpp-rctest python=3.14
    conda activate lpp-rctest
    pip install diffpy.labpdfproc==0.4.0rc0
    

    Then run all the examples.

  22. sbillinge commented on Nov 13, 2026

    @sbillinge
    ContributorAuthor

    I ran the matrix on the release tag. All green.

  23. Akadib commented on Nov 15, 2026

    @Akadib
    Screenshot 2026-11-15 at 1 13 12 AM Screenshot 2026-11-15 at 1 13 27 AM Screenshot 2026-11-15 at 1 13 38 AM Screenshot 2026-11-15 at 1 13 56 AM Screenshot 2026-11-15 at 1 14 05 AM image Screenshot 2026-11-15 at 1 21 03 AM

    @sbillinge all checks are done and the package is ready for full release.

  24. sbillinge commented on Nov 15, 2026

    @sbillinge
    ContributorAuthor

    congrats @Akadib you did it! I am now pushing out the full 0.4.0 release. Next step is to update the conda-forge release when this appears on PyPI. Please work with @stevenhua0320 to learn how to do that.

    Please make an issue to capture the warning in the tests. Either (a) that warning is supposed to be there (the test is testing the switch to brute-force because mut is out of range, or the (b) test is testing something else and that happens by mistake. If it is (a) the test needs to be updated so the warning is caught and tested in a context manager, if it is (b) the test needs to be updated so it doesn't go out of range. @stevenhua0320 can help with this too.

  25. sbillinge commented on Nov 15, 2026

    @sbillinge
    ContributorAuthor

    btw, make sure to note this on your group meeting slide this week. You are the proud owner of a completes release! Congratulations! You will get claps and you can feel proud.

  26. sbillinge commented on Nov 15, 2026

    @sbillinge
    ContributorAuthor

    @Akadib (cc @stevenhua0320) the conda-forge dependabot worked really quickly this time so I did the work to get it merged. We have a Conda-Forge release therefore.

    @Akadib no need for you to do the conda-forge release workflow unless you want to learn how to do it. HOWEVER, we do need you to run all the tests now on the conda-forge release. This means following the instructions in the README exactly as they are written and and run all the examples . This is the most important test, because this is what our users will do and so we want to make sure everything is working. It should all build in a python 3.14 env and install everything from conda-forge, but just see what happens. Please do it in a scratch directory that is not the code directory, because there will be things in your code directory that the user won't have access to. So everything must work in a separate directory. Finally, instal the test dependencies and run the tests, and check the docs are all fine. Then we are done.

  27. Akadib commented on Nov 16, 2026

    @Akadib

    @sbillinge I think this particular version checking command in the README does not work: labpdfproc --version

    Screenshot 2026-11-16 at 7 32 53 AM

    But this one"python -c "import diffpy.labpdfproc; print(diffpy.labpdfproc.version)" worked fine:

    Screenshot 2026-11-16 at 7 34 19 AM

    For the test, we still see the same warning:

    Screenshot 2026-11-16 at 7 44 48 AM This warning is because the pytest is testing the switch to brute-force because mut is out of range. The code corresponds to this is in this line:

    Screenshot 2026-11-16 at 7 47 31 AM @sbillinge Do you want me to catch the warning and test in a context manager for this release or for the next release?

    Tutorial example results are similar like the last one:

    image

    I also checked the docs file, it looks good. @sbillinge I am all set for your review!

  28. sbillinge commented on Nov 19, 2026

    @sbillinge
    ContributorAuthor

    These can all go in the next release but I need you to confirm that the issues have been posted and all the tests and examples worked. I see examples that you team them, just not a summary that, apart from the issues, everything is working as expected and we can close this.

    If the version workflow doesn't work as per the instructions then please modify the readme to something that does work and add to the fix issue to set the docs back when it is fixed.

  29. Akadib commented on Nov 20, 2026

    @Akadib

    @sbillinge All the tests and examples work correctly. I only found two issues from this release and have posted those two issues. One issue is the version command is broken. The other one is to catch the warning and handle it in a context manager. I will resolve them before next release 0.5.0. We are all set to close this issue.

  30. sbillinge commented on Nov 20, 2026

    @sbillinge
    ContributorAuthor

    closed as completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions