Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608216 - net-mail/alot-0.5.1: version bump and new test suite
Summary: net-mail/alot-0.5.1: version bump and new test suite
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-04 15:01 UTC by Guillaume Seren
Modified: 2018-01-07 19:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
log of the running test on alot-0.5.1 (alot-0.5.1-tests-run.log,7.54 KB, text/x-log)
2017-02-04 15:01 UTC, Guillaume Seren
Details
alot-0.5.1 fail install (alot-0.5.1.log,37.00 KB, text/x-log)
2017-02-05 16:55 UTC, Guillaume Seren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Seren 2017-02-04 15:01:20 UTC
Created attachment 462438 [details]
log of the running test on alot-0.5.1

Hey,
alot[1] cut new release 3 times since it get bumped in the portage tree,
I have bumped it to 0.4 on my overlay, but now it has been upgraded again (0.5),
and also the project get a new test suite, so while I want upgrade the ebuild,
I think the ebuild also need a cleanup on the DEPEND and add the test FEATURES.

      install_requires=[
        'notmuch>=0.13',
        'urwid>=1.1.0',
        'urwidtrees>=1.0',
        'twisted>=10.2.0',
        'python-magic',
        'configobj>=4.7.0',
        'pygpgme>=0.2'],

And the test can be run quite easily by '$ python2 setup.py test',
which just need mock and funcsigs, but are running fine.
I'll attach the output of the test, as I didn't package much of python project I could use some help !

[1]: https://github.com/pazz/alot
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2017-02-05 11:05:15 UTC
The only problem I've noticed is that it downloads mock. mock should be a dependency used by test suites.

Please compare dependencies in setup.py with (R)DEPEND and update accordingly.

Thanks!
Comment 2 Guillaume Seren 2017-02-05 16:53:50 UTC
Hey,
I have upgraded the RDEPEND section of the alot-0.5.1.ebuild:
--- /usr/portage/mail-client/alot/alot-0.3.7-r1.ebuild  2016-01-03 22:16:06.000000000 +0100
+++ alot-0.5.1.ebuild   2017-02-05 17:34:02.642895526 +0100
@@ -21,8 +21,8 @@ DEPEND="
        doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
        "
 RDEPEND="
-       >=dev-python/configobj-4.6.0[${PYTHON_USEDEP}]
-       dev-python/pygpgme[${PYTHON_USEDEP}]
+       >=dev-python/configobj-4.7.0[${PYTHON_USEDEP}]
+       >=dev-python/pygpgme-0.2[${PYTHON_USEDEP}]
        dev-python/python-magic[${PYTHON_USEDEP}]
        >=dev-python/twisted-core-10.2.0
        >=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]

And when I try to install it I get:
Installing alot script to /var/tmp/portage/mail-client/alot-0.5.1/image/_python2.7/usr/lib/python-exec/python2.7
 * ERROR: mail-client/alot-0.5.1::local failed (install phase):
 *   Package installs 'tests' package which is forbidden and likely a bug in the build system.

So I probably miss something here, I am a bit stuck, maybe I need a package to add in RDEPEND ?
Comment 3 Guillaume Seren 2017-02-05 16:55:38 UTC
Created attachment 462556 [details]
alot-0.5.1 fail install
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2017-02-05 21:24:08 UTC
It sounds like ebuild is trying to install 'tests' which should only be used in src_test phase and never installed.
Comment 5 Guillaume Seren 2018-01-07 19:41:15 UTC
Closing as we have merged the 0.6