Karsten Schöke pushed to branch master at Debian Med / pydicom
Commits: ea9b4871 by Karsten Schöke at 2026-06-10T19:26:49+02:00 insert make-documentation-example-reproducible.patch - - - - - 1c19e710 by Karsten Schöke at 2026-06-10T19:27:53+02:00 Update changelog for 3.0.2-3 release - - - - - 3 changed files: - debian/changelog - + debian/patches/make-documentation-example-reproducible.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +pydicom (3.0.2-3) unstable; urgency=medium + + * Team upload. + * insert make-documentation-example-reproducible.patch + + -- Karsten Schöke <[email protected]> Wed, 10 Jun 2026 19:27:46 +0200 + pydicom (3.0.2-2) unstable; urgency=medium * Team upload. ===================================== debian/patches/make-documentation-example-reproducible.patch ===================================== @@ -0,0 +1,30 @@ +From: =?utf-8?q?Karsten_Sch=C3=B6ke?= <[email protected]> +Date: Wed, 10 Jun 2026 19:23:01 +0200 +Subject: Make documentation example reproducible +The DICOM writing example uses datetime.now() to generate ContentDate +and ContentTime values. These values are printed by the example and end +up in the generated Sphinx-Gallery HTML output, resulting in +build-dependent documentation. +. +Use fixed timestamps instead to ensure reproducible builds. + +Forwarded: not-needed +--- + examples/input_output/plot_write_dicom.py | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/examples/input_output/plot_write_dicom.py b/examples/input_output/plot_write_dicom.py +index 75f4cdc..2d8ab7d 100644 +--- a/examples/input_output/plot_write_dicom.py ++++ b/examples/input_output/plot_write_dicom.py +@@ -26,9 +26,7 @@ ds = Dataset() + ds.PatientName = "Test^Firstname" + ds.PatientID = "123456" + # Set creation date/time +-dt = datetime.datetime.now() +-ds.ContentDate = dt.strftime("%Y%m%d") +-# ds.ContentTime = dt.strftime("%H%M%S.%f") # long format with micro seconds ++ds.ContentDate = "20000101" + + print("Setting file meta information...") + # Populate required values for file meta information ===================================== debian/patches/series ===================================== @@ -3,3 +3,4 @@ pytest.ini-insert-file-to-deaktivate-tests.patch doc-conf.py-sphinx-use-local-inventory-references-fo.patch doc-conf.py-deactivate-performance-datafooter-in-doc.patch fix-example-for-reproducible-build.patch +make-documentation-example-reproducible.patch View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/compare/2c21a07dc5a544faa6e0e1f3401c4252b47e38cd...1c19e71088c4970c9ab8e25411acbefc0cc598c8 -- View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/compare/2c21a07dc5a544faa6e0e1f3401c4252b47e38cd...1c19e71088c4970c9ab8e25411acbefc0cc598c8 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
