lsst-utils 29.2025.3700__tar.gz → 29.2025.3800__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. {lsst_utils-29.2025.3700/python/lsst_utils.egg-info → lsst_utils-29.2025.3800}/PKG-INFO +1 -1
  2. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/introspection.py +8 -5
  3. lsst_utils-29.2025.3800/python/lsst/utils/version.py +2 -0
  4. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800/python/lsst_utils.egg-info}/PKG-INFO +1 -1
  5. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_iteration.py +1 -1
  6. lsst_utils-29.2025.3700/python/lsst/utils/version.py +0 -2
  7. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/COPYRIGHT +0 -0
  8. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/LICENSE +0 -0
  9. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/MANIFEST.in +0 -0
  10. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/README.rst +0 -0
  11. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/doc/lsst.utils/CHANGES.rst +0 -0
  12. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/doc/lsst.utils/index.rst +0 -0
  13. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/pyproject.toml +0 -0
  14. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/__init__.py +0 -0
  15. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/__init__.py +0 -0
  16. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/_packaging.py +0 -0
  17. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/argparsing.py +0 -0
  18. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/classes.py +0 -0
  19. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/db_auth.py +0 -0
  20. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/deprecated.py +0 -0
  21. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/doImport.py +0 -0
  22. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/inheritDoc.py +0 -0
  23. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/iteration.py +0 -0
  24. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/logging.py +0 -0
  25. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/packages.py +0 -0
  26. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/plotting/__init__.py +0 -0
  27. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/plotting/figures.py +0 -0
  28. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/plotting/limits.py +0 -0
  29. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/plotting/publication_plots.py +0 -0
  30. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/plotting/rubin.mplstyle +0 -0
  31. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/py.typed +0 -0
  32. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/tests.py +0 -0
  33. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/threads.py +0 -0
  34. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/timer.py +0 -0
  35. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/usage.py +0 -0
  36. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst/utils/wrappers.py +0 -0
  37. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst_utils.egg-info/SOURCES.txt +0 -0
  38. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst_utils.egg-info/dependency_links.txt +0 -0
  39. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst_utils.egg-info/requires.txt +0 -0
  40. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst_utils.egg-info/top_level.txt +0 -0
  41. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/python/lsst_utils.egg-info/zip-safe +0 -0
  42. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/setup.cfg +0 -0
  43. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_argparsing.py +0 -0
  44. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_classes.py +0 -0
  45. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_db_auth.py +0 -0
  46. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_decorators.py +0 -0
  47. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_deprecated.py +0 -0
  48. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_doImport.py +0 -0
  49. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_executables.py +0 -0
  50. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_getPackageDir.py +0 -0
  51. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_getTempFilePath.py +0 -0
  52. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_import.py +0 -0
  53. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_inheritDoc.py +0 -0
  54. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_introspection.py +0 -0
  55. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_logging.py +0 -0
  56. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_matplotlib_figures.py +0 -0
  57. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_ordering.py +0 -0
  58. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_packages.py +0 -0
  59. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_plotting_limits.py +0 -0
  60. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_threads.py +0 -0
  61. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_timer.py +0 -0
  62. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_usage.py +0 -0
  63. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_utils.py +0 -0
  64. {lsst_utils-29.2025.3700 → lsst_utils-29.2025.3800}/tests/test_wrappers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsst-utils
3
- Version: 29.2025.3700
3
+ Version: 29.2025.3800
4
4
  Summary: Utility functions from Rubin Observatory Data Management for the Legacy Survey of Space and Time (LSST).
5
5
  Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
6
6
  License: BSD 3-Clause License
@@ -441,9 +441,12 @@ def _get_clean_refs(objects: list) -> list:
441
441
  The objects that refer to the elements of ``objects``, not counting
442
442
  ``objects`` itself.
443
443
  """
444
- refs = gc.get_referrers(*objects)
445
- refs.remove(objects)
446
- iterators = [x for x in refs if type(x).__name__.endswith("_iterator")]
447
- for i in iterators:
448
- refs.remove(i)
444
+ # Pre-create the tuple so we know its id() and can filter it out.
445
+ # This allows for difference in behavior between python 3.12 and 3.13
446
+ # when calling gc.get_referrers with multiple arguments.
447
+ objects_tuple = tuple(objects)
448
+ refs = gc.get_referrers(*objects_tuple)
449
+ ids_to_drop = {id(objects), id(objects_tuple)}
450
+ refs = [ref for ref in refs if id(ref) not in ids_to_drop]
451
+ refs = [ref for ref in refs if not type(ref).__name__.endswith("_iterator")]
449
452
  return refs
@@ -0,0 +1,2 @@
1
+ __all__ = ["__version__"]
2
+ __version__ = "29.2025.3800"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsst-utils
3
- Version: 29.2025.3700
3
+ Version: 29.2025.3800
4
4
  Summary: Utility functions from Rubin Observatory Data Management for the Legacy Survey of Space and Time (LSST).
5
5
  Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
6
6
  License: BSD 3-Clause License
@@ -60,7 +60,7 @@ class IterationTestCase(unittest.TestCase):
60
60
  self.assertEqual(out, simple)
61
61
  self.assertEqual(n_chunks, 11)
62
62
 
63
- test_dict = {k: 1 for k in range(101)}
63
+ test_dict = dict.fromkeys(range(101), 1)
64
64
  n_chunks = 0
65
65
  for chunk in chunk_iterable(test_dict, chunk_size=45):
66
66
  # Subtract 1 for each key in chunk
@@ -1,2 +0,0 @@
1
- __all__ = ["__version__"]
2
- __version__ = "29.2025.3700"