Skip to content

Ready for 1.5.0 PyPI/GitHub release #60

Open

Description

@Tieqiong

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, including API references (check no modules are
    missing), tutorials, and other human-written text is up-to-date with any changes in the code.
  • 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.

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 test.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. changed the title [-]Ready for 1.3.1-rc0 PyPI/GitHub release[/-] [+]Ready for 1.4.0-rc0 PyPI/GitHub release[/+] on Jun 27, 2025
  2. changed the title [-]Ready for 1.4.0-rc0 PyPI/GitHub release[/-] [+]Ready for 1.4.1 PyPI/GitHub release[/+] on Aug 2, 2025
  3. sbillinge commented on Aug 2, 2025

    @sbillinge
    Contributor

    I moved this to 1.4.1 release as the 1.4.0 release went out early before everything is checked so we can get it onto conda-forge. Let's fix all the small issues and testing and push out a 1.4.1

  4. changed the title [-]Ready for 1.4.1 PyPI/GitHub release[/-] [+]Ready for 1.5.0 PyPI/GitHub release[/+] on Nov 18, 2025
  5. sbillinge commented on Oct 8, 2026

    @sbillinge
    Contributor

    @SYMSCAE @cadenmyers13 @stevengeorge128 @stevenhua0320 please could you make a plan for getting this to release? We would like to revisit all of the open issues on this 1.5.0 milestone and try and close as many as possible, or make a decision to move it to the next milestone, so we can close them all and move to a release. Preferrably I would like to do this on a timescale of a week or two so we can finalize all the 3.14 work (@stevenhua03020 knows where the list is of what needs to close). Phew, nearly there.

    Python 3.15 should be released tomorrow or thereabouts, and it all starts again, but I hope it is quick this time because we don't have so much technical debt.

  6. sbillinge commented on Oct 18, 2026

    @sbillinge
    Contributor

    Here is the sequence of things to do to get this released and out the door (moved from threedpdf PR on libdiffpy):

    • skpkg libdiffpy (Caden and I will handle this next Tuesday)
    • merge migration-nano into main (this can happen before skpkg if you'd like to make timeline clean)
    • pre-release libdiffpy
    • pre-release (once the ci pass) & test diffpy.srreal
    • official release
  7. sbillinge commented on Nov 5, 2026

    @sbillinge
    Contributor

    @stevenhua0320 @cadenmyers13 @SYMSCAE I pushed out an rc release. Please can you complete the checklist above and check the docs and run the examples, but do it on the released version so we can get ready for a full release.

  8. stevenhua0320 commented on Nov 5, 2026

    @stevenhua0320
    Contributor
    1. PyPI rc release properly with license info.
    Image 2. docs rendered properly Image Image 3. Going through the tutorial examples, it should be right now. Image Image
    (diffpy.srreal_env) huarundong@Stevens-MacBook-Pro-405 diffpy.srreal % pytest
    ================================================================================================================== test session starts ===================================================================================================================
    platform darwin -- Python 3.13.16, pytest-9.2.0, pluggy-1.7.0
    rootdir: /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal
    configfile: pyproject.toml
    plugins: platformdirs-4.12.4
    collected 423 items                                                                                                                                                                                                                                      
    
    tests/test_atomradiitable.py ..................                                                                                                                                                                                                    [  4%]
    tests/test_attributes.py .........                                                                                                                                                                                                                 [  6%]
    tests/test_bondcalculator.py .................                                                                                                                                                                                                     [ 10%]
    tests/test_bvscalculator.py .............                                                                                                                                                                                                          [ 13%]
    tests/test_calculation_callbacks.py ................                                                                                                                                                                                               [ 17%]
    tests/test_debyepdfcalculator.py ............                                                                                                                                                                                                      [ 20%]
    tests/test_objcrystconverters.py .......                                                                                                                                                                                                           [ 21%]
    tests/test_overlapcalculator.py ..........................                                                                                                                                                                                         [ 27%]
    tests/test_pairquantity.py .............                                                                                                                                                                                                           [ 30%]
    tests/test_parallel.py ...                                                                                                                                                                                                                         [ 31%]
    tests/test_pdfbaseline.py ..............                                                                                                                                                                                                           [ 34%]
    tests/test_pdfcalcobjcryst.py ...                                                                                                                                                                                                                  [ 35%]
    tests/test_pdfcalculator.py ...................                                                                                                                                                                                                    [ 40%]
    tests/test_pdfenvelope.py ..................                                                                                                                                                                                                       [ 44%]
    tests/test_peakprofile.py ............                                                                                                                                                                                                             [ 47%]
    tests/test_peakwidthmodel.py .................                                                                                                                                                                                                     [ 51%]
    tests/test_python_interfaces.py .......................                                                                                                                                                                                            [ 56%]
    tests/test_quantitytype.py ........                                                                                                                                                                                                                [ 58%]
    tests/test_saved_calculations.py ................................................                                                                                                                                                                  [ 69%]
    tests/test_scatteringfactortable.py .........                                                                                                                                                                                                      [ 72%]
    tests/test_sfaverage.py ...                                                                                                                                                                                                                        [ 72%]
    tests/test_structure_lifetimes.py ....................................................                                                                                                                                                             [ 85%]
    tests/test_structureadapter.py ..............................................................                                                                                                                                                      [ 99%]
    tests/test_version.py .                                                                                                                                                                                                                            [100%]
    
    ==================================================================================================================== warnings summary ====================================================================================================================
    tests/test_bondcalculator.py::TestBondCalculator::test_setTypeMask
    tests/test_bondcalculator.py::TestBondCalculator::test_setTypeMask
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:239: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        tps = set(zip(bdc.types0, bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_setTypeMask
      /opt/miniconda3/envs/diffpy.srreal_env/lib/python3.13/site-packages/diffpy/structure/structure.py:1067: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        toarray=lambda items: numpy.char.array(items, itemsize=5),
    
    tests/test_bondcalculator.py::TestBondCalculator::test_setTypeMask
    tests/test_bondcalculator.py::TestBondCalculator::test_setTypeMask
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:245: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        tps = set(zip(bdc.types0, bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:156: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(len(dst), len(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:157: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(len(dst), len(bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:158: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(("Ti", "O")), set(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:159: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(("Ti", "O")), set(bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:160: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertFalse((bdc.types0 == bdc.types1).all())
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:163: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(0, bdc.types0.size)
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:164: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(0, bdc.types1.size)
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:167: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertTrue(len(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculator::test_types
    tests/test_bondcalculator.py::TestBondCalculator::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:168: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(["O"]), set(bdc.types0).union(set(bdc.types1)))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:312: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(len(dst), len(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:313: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(len(dst), len(bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:314: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(("Ti", "O")), set(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:315: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(("Ti", "O")), set(bdc.types1))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:316: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertNotEqual(bdc.types0.tolist(), bdc.types1.tolist())
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:319: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(0, bdc.types0.size)
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:320: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(0, bdc.types1.size)
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:323: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertTrue(len(bdc.types0))
    
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
    tests/test_bondcalculator.py::TestBondCalculatorObjCryst::test_types
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bondcalculator.py:324: DeprecationWarning: The chararray class is deprecated and will be removed in a future release. Use an ndarray with a string or bytes dtype instead.
        self.assertEqual(set(["O"]), set(bdc.types0).union(set(bdc.types1)))
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom Ti4+ already exists at array([0., 0., 0.])
        rutilemix.add_new_atom(a)
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom Ti4+ already exists at array([0.5, 0.5, 0.5])
        rutilemix.add_new_atom(a)
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom O2- already exists at array([0.3051, 0.3051, 0.    ])
        rutilemix.add_new_atom(a)
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom O2- already exists at array([0.6949, 0.6949, 0.    ])
        rutilemix.add_new_atom(a)
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom O2- already exists at array([0.8051, 0.1949, 0.5   ])
        rutilemix.add_new_atom(a)
    
    tests/test_bvscalculator.py::TestBVSCalculator::test_bvrmsdiff
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_bvscalculator.py:77: UserWarning: Duplicate atom O2- already exists at array([0.1949, 0.8051, 0.5   ])
        rutilemix.add_new_atom(a)
    
    tests/test_saved_calculations.py: 12 warnings
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_saved_calculations.py:167: DeprecationWarning: NoMetaStructureAdapter is deprecated; use the source adapter directly. Structure metadata no longer configures calculators.
        super().__init__(source)
    
    tests/test_saved_calculations.py::test_proxy_default_pickle_hooks[False-NoMetaStructureAdapter]
    tests/test_saved_calculations.py::test_proxy_default_pickle_hooks[True-NoMetaStructureAdapter]
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_saved_calculations.py:217: DeprecationWarning: NoMetaStructureAdapter is deprecated; use the source adapter directly. Structure metadata no longer configures calculators.
        proxy = cls(source)
    
    tests/test_saved_calculations.py::test_proxy_default_pickle_hooks[False-NoMetaStructureAdapter]
    tests/test_saved_calculations.py::test_proxy_default_pickle_hooks[True-NoMetaStructureAdapter]
      /Users/huarundong/dbs/diffpy.srreal/diffpy.srreal/tests/test_saved_calculations.py:221: DeprecationWarning: NoMetaStructureAdapter is deprecated; use the source adapter directly. Structure metadata no longer configures calculators.
        restored = pickle.loads(pickle.dumps(proxy))
    
    tests/test_structureadapter.py::TestNoMeta::test_nometa_proxy_deprecated
    tests/test_structureadapter.py::TestAtom::test_numpy_scalar_casting_preserves_warnings
      /opt/miniconda3/envs/diffpy.srreal_env/lib/python3.13/unittest/case.py:293: DeprecationWarning: Module 'diffpy.Structure' is deprecated and will be removed in version 4.0. Use 'diffpy.structure' instead.
        if getattr(v, '__warningregistry__', None):
    
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ============================================================================================================ 423 passed, 51 warnings in 3.70s ============================================================================================================
    

    @sbillinge ready for the full release on PyPI now.

  9. sbillinge commented on Nov 5, 2026

    @sbillinge
    Contributor

    OK, full release pushed out.

  10. sbillinge commented on Nov 5, 2026

    @sbillinge
    Contributor

    full release made it to pypi successfully. Congrats! @stevenhua0320 please check mission-control but this (when it makes it to CF) may complete the 3.14 work!

  11. SYMSCAE commented on Nov 5, 2026

    @SYMSCAE
    Contributor

    There's one concerning point that pypi pyobjcryst support is a bit problematic because that wheel isn't built properly. I'll check if the nanobind branch has resolved this and make an issue if it doesn't. Otherwise feel free to test this out using pip installations in all platforms and I'll handle the conda feedstock end.

  12. sbillinge commented on Nov 5, 2026

    @sbillinge
    Contributor

    Thanks @SYMSCAE

  13. sbillinge commented on Nov 7, 2026

    @sbillinge
    Contributor

    @SYMSCAE please could you give an update on the pyobjcryst as @cadenmyers13 needs to make a release but there are still some questions about the nanobind and CMAKE work over there. We would like to resolve everything, get it cleared by VIncent in France, and then get a clean version released.

  14. sbillinge commented on Nov 21, 2026

    @sbillinge
    Contributor

    @SYMSCAE please could you summarize here everything that needs to happen (and in what order) for us to get full releases of srreal, libdiffpy, pyobjcryst out and all the nanobind/3.14 work done?

  15. SYMSCAE commented on Nov 21, 2026

    @SYMSCAE
    Contributor

    @sbillinge I believe we're set for all of the codes and the last bit is the feedstock and license checks.

  16. SYMSCAE commented on Nov 21, 2026

    @SYMSCAE
    Contributor

    We should also bump versions to 1.5.1 so that feedstock can fetch the newer src from PyPI.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions