Your message dated Tue, 18 Aug 2015 03:20:25 +0000
with message-id <[email protected]>
and subject line Bug#795826: fixed in epydoc 3.0.1+dfsg-12
has caused the Debian Bug report #795826,
regarding epydoc: Please hide memory references in the output
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
795826: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795826
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: epydoc
Version: 3.0.1+dfsg-11
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]
Hi!
While working on the “reproducible builds” effort [1], we have noticed
that epydoc uses repr() on objects that don't always override the
default one. As a consequence, the documentation shows memory references
on the build system, eg. <module.Foo instance at 0x7f3aff4299e0>
The attached patch detects objects with no overriding of __repr__ and
provides a fallback that does not show the reference. Once applied, more
packages using epydoc will be buildable reproducibly in our current
experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
Val
diff -u -r epydoc-3.0.1+dfsg.old/epydoc/markup/pyval_repr.py epydoc-3.0.1+dfsg/epydoc/markup/pyval_repr.py
--- epydoc-3.0.1+dfsg.old/epydoc/markup/pyval_repr.py 2015-08-16 18:57:38.152484836 +0000
+++ epydoc-3.0.1+dfsg/epydoc/markup/pyval_repr.py 2015-08-16 21:11:09.520790145 +0000
@@ -207,9 +207,17 @@
self._colorize_re(pyval, state)
else:
try:
- pyval_repr = repr(pyval)
- if not isinstance(pyval_repr, (str, unicode)):
- pyval_repr = unicode(pyval_repr)
+ pyval_class = pyval.__class__
+ if hasattr(pyval, '__repr__') and \
+ pyval_class.__repr__ is not object.__repr__:
+ pyval_repr = repr(pyval)
+ if not isinstance(pyval_repr, (str, unicode)):
+ pyval_repr = unicode(pyval_repr)
+ else:
+ # pyval has a default repr(), which would leak
+ # a reference to the object
+ pyval_repr = '<%s.%s object>' % (
+ pyval_class.__module__, pyval_class.__name__)
pyval_repr_ok = True
except KeyboardInterrupt:
raise
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Source: epydoc
Source-Version: 3.0.1+dfsg-12
We believe that the bug you reported is fixed in the latest version of
epydoc, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Kenneth J. Pronovici <[email protected]> (supplier of updated epydoc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 17 Aug 2015 21:01:13 -0500
Source: epydoc
Binary: python-epydoc epydoc-doc
Architecture: source all
Version: 3.0.1+dfsg-12
Distribution: unstable
Urgency: medium
Maintainer: Kenneth J. Pronovici <[email protected]>
Changed-By: Kenneth J. Pronovici <[email protected]>
Description:
epydoc-doc - tool for documenting Python modules (documentation)
python-epydoc - tool for documenting Python modules
Closes: 795826 795835
Changes:
epydoc (3.0.1+dfsg-12) unstable; urgency=medium
.
* Rename honour_source_date_epoch.patch to source-date.patch
* Adjust build-time.patch so comments are more consistent with other patches.
* Adjust source-date.patch so comments are more consistent with other
patches.
* Add new patch deterministic-sort.patch (closes: #795835).
- This is a request from the Reproducible Builds project
- This patch makes class and modules ordering predictable
* Add new patch hide-memory-addresses.patch (closes: #795826).
- This is a request from the Reproducible Builds project
- This patch fixes __repr__ so memory addresses don't appear in docs
Checksums-Sha1:
d1dc0025e591a62d97b5bee75ee469906e8a25b8 1852 epydoc_3.0.1+dfsg-12.dsc
e398b495a33b091c9f9ea1b490e806623b35b4bc 33244
epydoc_3.0.1+dfsg-12.debian.tar.xz
5e36c6684e35d17dd43c6e7354952fa817d91a8d 898460
epydoc-doc_3.0.1+dfsg-12_all.deb
8c2d1ef1ad61d3a612facfd2dbcc433b1ddd0c01 220136
python-epydoc_3.0.1+dfsg-12_all.deb
Checksums-Sha256:
3f14250a7caf124fbe872eb4800011103744224660243c1c161e444248eae97d 1852
epydoc_3.0.1+dfsg-12.dsc
d106ee2951b144cedbd0ff9e4fffb124de353886079d7119edaf9e3adc1666a1 33244
epydoc_3.0.1+dfsg-12.debian.tar.xz
ee77ec390fce833d98e48218f8facd0085742e168c47ce9d02253637b39720da 898460
epydoc-doc_3.0.1+dfsg-12_all.deb
5823a2db40544ad52530b184edd50842e6005fe961117d79446fc96baef3e12a 220136
python-epydoc_3.0.1+dfsg-12_all.deb
Files:
efd8d2d0fdf143083202d2abff16d927 1852 python optional epydoc_3.0.1+dfsg-12.dsc
fddc1001b4cf43878bcd8908a05fb9ed 33244 python optional
epydoc_3.0.1+dfsg-12.debian.tar.xz
e179a651fc258b9475ff7fdb084a4487 898460 doc optional
epydoc-doc_3.0.1+dfsg-12_all.deb
0aaf973e84bd175e463b2e80387a51ee 220136 python optional
python-epydoc_3.0.1+dfsg-12_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJV0pQ7AAoJEBEZKJLv11k04mgQALS1IjhXtW5bRqYOhKFXZw24
q6Fes/NyHo2MQQjRejz6ZZbs0EksT3BtweC+4UTiiScMoK7hxdSkSljKsHzyBqke
AepY2CAYh4IhaOtExI8HpDoHlp/QNHkUCNcEIG7gmKWowBjfUXoT86L2dE3vKhBO
hd4ou1WerRwNr5EhpL1O/qbrCM5QBqK67z9/DFsBK3ytWLYSWcKs2+hSiom2T8KI
NXVraJe/TvEU/5D3bIDITnoEuGtYVfa4A5Clkkm5RH/xHYPBJeVVivi7rkejZpWC
6ltweo/yt5Mkv2T3JNEAYSFwn3270LUPwWT/PqsANClL1vkqEiNxq7JfVVxjKL7A
9HU1+1hHEcHq0xFZ/4n2KGCQ3DcccMWxYTEZktrULC97+wPFbEXrBuHFqWsdwG4+
mzYOvmouyCmL0mj9f2l2WZ3HAj7/c4qdCb3vicapDw4ho+zNbPKsXei5vposdqi6
RPSfsx45ahsiIo7GKEfjwozEHJ6wOa8fW1OODBEfqn+vh+9qxksC4ONfkLc9+STn
C+p+O7diyR3+apb7uoxwfdjUEpRKqBxtXvNLBNQ+I9qSqQdFx6PBea2pvY2iCmAG
9PcyRAVlL6CyifUnI4liJRjwy6i0Ho8GoKNakl3fE9ej+4XsWQTySxtsNM1WI8Jg
DTsoaIZBL4OYGb32o60b
=E6x/
-----END PGP SIGNATURE-----
--- End Message ---