Since Gentoo moved to Python 2.6, several Python packages always spit this annoyous warning. They should be changed to match Python 2.6. Reproducible: Always Steps to Reproduce: 1.python 2.import twill 3. Actual Results: /usr/lib64/python2.6/site-packages/twill/other_packages/_mechanize_dist/_auth.py:14: DeprecationWarning: the md5 module is deprecated; use hashlib instead import re, base64, urlparse, posixpath, md5, sha, sys, copy /usr/lib64/python2.6/site-packages/twill/other_packages/_mechanize_dist/_auth.py:14: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import re, base64, urlparse, posixpath, md5, sha, sys, copy Expected Results: Nothing should appear
This warning is because twill bundles several external python packages (which already exist in portage): dev-python/mechanize dev-python/pyparsing and suprocess.py (in Python's stdlib since 2.4)
Created attachment 258338 [details, diff] twill-update-deps.patch Fortunately pyparsing and subprocess are easily dumpable, bundled mechanize needs a bit more work.
twill appears to be fixed in the latest stable 2.x python (2.7.5-r3). Closing.
Samuel: I'm not sure your comment makes sense. I don't understand how twill could suddenly be fixed against a newer python, when there's a problem in twill. Also, we should still unbundle the packaged libraries.
This package is as dead as it can be. Last release in 2007, does not support Python 3, nobody seems to care really. Sadly, it has revdeps: dev-python/flask-testing optional, probably not used anywhere dev-python/python-openid also dead-ish, last release 2010, 'replaced' by python3-openid www-apps/trac they call it alive but doesn't seem like they're still living the past
Fortunately trac only need this for tests... but I will CC its maintainers to see if they can notify their upstream about this to try to migrate away from twill in the future
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7450a60cd31d1d78e3e084dcb7a77909bddc68 commit 7f7450a60cd31d1d78e3e084dcb7a77909bddc68 Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-10-12 00:05:25 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-10-12 00:07:49 +0000 dev-python/flask-wtf: remove old This version was the last dependency of dev-python/flask-testing, which can now be removed. Bug: https://bugs.gentoo.org/285169 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-python/flask-wtf/flask-wtf-0.14.2.ebuild | 54 ---------------------------- 1 file changed, 54 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5b0e9797df6d3ea7443d5d09c5b50d5da46295a commit a5b0e9797df6d3ea7443d5d09c5b50d5da46295a Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-10-12 12:24:36 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-10-12 12:24:36 +0000 dev-python/python-openid: RESTRICT tests Bug: https://bugs.gentoo.org/285169 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-python/python-openid/python-openid-2.2.5-r1.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f58a13a4014560b430b46ca4a2d055f6ce6b924 commit 7f58a13a4014560b430b46ca4a2d055f6ce6b924 Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-10-12 12:38:19 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-10-12 12:38:19 +0000 profiles: last-riting dev-python/twill Bug: https://bugs.gentoo.org/285169 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f47ea2f7b0d3d51fa4a9cd82573be21904ccd0c5 commit f47ea2f7b0d3d51fa4a9cd82573be21904ccd0c5 Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-10-12 12:34:12 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-10-12 12:34:12 +0000 www-apps/trac: RESTRICT tests Bug: https://bugs.gentoo.org/285169 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 www-apps/trac/trac-1.0.9.ebuild | 14 ++++++-------- www-apps/trac/trac-1.2.1.ebuild | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cd10276caee0d386ebb6c1cd16cd4b49f65bd5e commit 1cd10276caee0d386ebb6c1cd16cd4b49f65bd5e Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-11-11 12:01:10 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-11-11 12:03:27 +0000 dev-python/twill: Remove last-rited pkg Closes: https://bugs.gentoo.org/285169 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/twill/Manifest | 1 - dev-python/twill/metadata.xml | 11 -------- dev-python/twill/twill-0.9-r1.ebuild | 51 ------------------------------------ profiles/package.mask | 5 ---- 4 files changed, 68 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dabeaaae0d1b2fd91c90f05a70ff79cb19ca7825 commit dabeaaae0d1b2fd91c90f05a70ff79cb19ca7825 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-11-11 12:00:39 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-11-11 12:03:26 +0000 dev-python/flask-testing: Remove last-rited pkg Closes: https://bugs.gentoo.org/285169 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/flask-testing/Manifest | 2 -- .../flask-testing/files/0.4.2-test-fix.patch | 17 --------- .../flask-testing/flask-testing-0.4.2.ebuild | 35 ------------------- .../flask-testing/flask-testing-0.6.2.ebuild | 40 ---------------------- dev-python/flask-testing/metadata.xml | 13 ------- profiles/package.mask | 1 - 6 files changed, 108 deletions(-)