Bug 204982 - [NEW PORT] mail/py-alot: Terminal MUA using notmuch mail
Summary: [NEW PORT] mail/py-alot: Terminal MUA using notmuch mail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on: 204980 204981
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-03 00:09 UTC by Christian Geier
Modified: 2017-12-27 21:10 UTC (History)
5 users (show)

See Also:


Attachments
shar file for py-alot (18.30 KB, application/x-shar)
2015-12-03 00:09 UTC, Christian Geier
no flags Details
poudriere output of building mail/py-alot (44.22 KB, text/plain)
2015-12-03 00:10 UTC, Christian Geier
no flags Details
updated shar file for py-alot (USES=PYTHON:2) (2.14 KB, text/plain)
2015-12-03 14:02 UTC, Christian Geier
no flags Details
updated (COMMENT) shar file for py-alot (2.14 KB, application/x-shar)
2015-12-04 00:02 UTC, Christian Geier
no flags Details
new shar file for alot (2.15 KB, text/plain)
2015-12-10 21:49 UTC, Christian Geier
no flags Details
alot-svn-diff v0.6 (2.70 KB, patch)
2017-12-26 18:25 UTC, Dhananjay Balan
no flags Details | Diff
alot-svn-diff-with-python2.7-restricted (2.71 KB, patch)
2017-12-27 14:47 UTC, Dhananjay Balan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Geier 2015-12-03 00:09:55 UTC
Created attachment 163790 [details]
shar file for py-alot

A new port for the notmuch based mail client "alot".
Comment 1 Christian Geier 2015-12-03 00:10:59 UTC
Created attachment 163791 [details]
poudriere output of building mail/py-alot
Comment 2 Christian Geier 2015-12-03 00:23:24 UTC
I used PORTREVISION=1 to have it at the same version number as mail/notmuch.
Comment 3 Christian Geier 2015-12-03 14:02:29 UTC
Created attachment 163813 [details]
updated shar file for py-alot (USES=PYTHON:2)

alot does only support python 2 at the moment
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-03 14:20:12 UTC
Thanks Christian :)

Should ask upstream to:

* Update the PyPI version (https://pypi.python.org/pypi/alot/0.3.4)
* Provide the source distribution on PyPI (via `sdist upload`)

Also, COMMENT should match setup.py:description field [1] (with any specific standards if necessary):

Terminal MUA using notmuch mail

[1] https://github.com/pazz/alot/blob/master/alot/__init__.py#L6
Comment 5 Christian Geier 2015-12-03 14:38:02 UTC
I will update this one and bug #204981 and bug #204980 accordingly.
Comment 6 Christian Geier 2015-12-03 15:00:50 UTC
(In reply to Kubilay Kocak from comment #4)

Upstream has never uploaded alot to pypi (and does not plan to do so), the version has been uploaded by a third party. What is the best approach in that situation: try to contact the third party or keep getting the source code from github?
Comment 7 Christian Geier 2015-12-04 00:02:52 UTC
Created attachment 163829 [details]
updated (COMMENT) shar file for py-alot
Comment 8 Martin Wilke freebsd_committer freebsd_triage 2015-12-05 08:37:14 UTC
Take.
Comment 9 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-05 08:43:55 UTC
(In reply to Christian Geier from comment #6)

Get upstream to sdist upload on releases like everyone else :)
Comment 10 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-05 08:45:01 UTC
And get the third party to give the pypi account details to upstream, otherwise we'll have a situation in the future when the 'official' release is named something else (other than 'alot', because its taken) and we'll have to rename the port.
Comment 11 Christian Geier 2015-12-10 12:20:55 UTC
I got one step closer: *I* am now an owner of alot on PyPI, now I only need to get upstream to want to upload releases (and then make them an owner as well).
Comment 12 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-10 12:27:08 UTC
(In reply to Christian Geier from comment #11)

Wow, congratulations and props for doing the hard yards, and doing it right :)
Comment 13 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-10 12:29:55 UTC
(In reply to Kubilay Kocak from comment #12)

At the very least (given you now manage the 'alot' package entry on PyPI), I don't see why this issue cannot be committed as is now, since the PyPI alot entry wont ever be used for anything else, thus cant ever conflict with this name.

@Martin, this is now good to go I believe, pending OK from Christian that there's no other patch changes pending
Comment 14 Christian Geier 2015-12-10 21:49:15 UTC
Created attachment 164090 [details]
new shar file for alot

changed MASTER_SITES to CHEESESHOP
Comment 15 Christian Geier 2015-12-10 21:51:09 UTC
(In reply to Kubilay Kocak from comment #13)

not really, py-urwidtree on pypi is not maintained by upstream either and I couldn't get in contact yet.
Comment 16 Christian Geier 2015-12-11 23:16:09 UTC
As everything this depends on is committed, it should be OK to commit (and there are no new patches coming in the foreseeable future.
Comment 17 Martin Wilke freebsd_committer freebsd_triage 2016-03-14 02:31:15 UTC
back to pool.
Comment 18 Danilo G. Baio freebsd_committer freebsd_triage 2017-09-09 19:23:39 UTC
Hi Christian.

There is a new version [1].
Could you test it and update your patch?

And could you please send a svn diff [2] instead of a .shar file?

1 - https://pypi.python.org/pypi/alot/0.6
2 - https://www.freebsd.org/doc/en/books/porters-handbook/port-upgrading.html#svn-diff

Regards.
Comment 19 Christian Geier 2017-09-15 21:32:41 UTC
Hi Danilo,
thank you for your offer to take care of this.  I will update and test the alot port, but it looks like I will need to create a new port for the python package `gpg`first, as alot now depends on it instead of gpgme.
Comment 20 Danilo G. Baio freebsd_committer freebsd_triage 2017-09-16 13:47:11 UTC
(In reply to Christian Geier from comment #19)

ok Christian, go ahead, after that insert the new PR blocking this one.
Comment 21 Dhananjay Balan 2017-12-26 18:25:48 UTC
Created attachment 189118 [details]
alot-svn-diff v0.6

Hi, 

I didn't know about this bug, and packaged v0.6. The diff works for me, and it has my name on the maintainer section, but feel free to change it and adapt it.
Comment 22 Danilo G. Baio freebsd_committer freebsd_triage 2017-12-26 23:11:07 UTC
(In reply to Dhananjay Balan from comment #21)

Hi Dhananjay, thanks for the patch.
This tool only works with Python 2.7, is this right?
https://github.com/pazz/alot/blob/master/setup.py#L22-L23

Regards.
Comment 23 Dhananjay Balan 2017-12-27 14:24:15 UTC
(In reply to Danilo G. Baio from comment #22)

Yes, that seems to be the case, python3 support is not merged. I'm not sure how I can specify that in the ports file. Would be nice if you can point me to the relevant documentation.
Comment 24 Christian Geier 2017-12-27 14:41:08 UTC
Use 

USES=python:2

And yes, python 3 support is not only not merged, but doesn't work yet.
Comment 25 Dhananjay Balan 2017-12-27 14:47:05 UTC
Created attachment 189132 [details]
alot-svn-diff-with-python2.7-restricted

I've updated the port to use python:2.7.
Comment 26 Danilo G. Baio freebsd_committer freebsd_triage 2017-12-27 15:13:57 UTC
Thanks, I'll push this tonight.
Comment 27 commit-hook freebsd_committer freebsd_triage 2017-12-27 20:54:50 UTC
A commit references this bug:

Author: dbaio
Date: Wed Dec 27 20:54:21 UTC 2017
New revision: 457423
URL: https://svnweb.freebsd.org/changeset/ports/457423

Log:
  Add mail/py-alot: Terminal MUA using Notmuch mail

  Alot is a terminal-based mail user agent based on the Notmuch mail indexer.
  It is written in Python using the Urwid toolkit and features a modular and
  command prompt driven interface to provide a full MUA experience as an
  alternative to the Emacs mode shipped with Notmuch.

  WWW: https://github.com/pazz/alot

  PR:		204982
  Submitted by:	Dhananjay Balan <mail@dbalan.in>

Changes:
  head/mail/Makefile
  head/mail/py-alot/
  head/mail/py-alot/Makefile
  head/mail/py-alot/distinfo
  head/mail/py-alot/pkg-descr
Comment 28 Danilo G. Baio freebsd_committer freebsd_triage 2017-12-27 21:10:26 UTC
Committed with a few changes.

Thank you both.

Regards.