From: Chris Marusich <cmmarusich@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add python-contextlib2
Date: Mon, 14 Dec 2015 02:15:08 +0000 [thread overview]
Message-ID: <CAEKzfHnWj1OybMBRaR-RkR9bFnyFHXDY35AQJKonFGwMZ+ss9g@mail.gmail.com> (raw)
In-Reply-To: <874mfmuegk.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 3121 bytes --]
Thanks for the response. The module is primarily a backport, but it also
contains some features that are not part of the standard library.
Therefore, it is not exactly the same as the Python standard library's
contextlib module, even in Python 3. Since the module names don't collide,
and since I know of at least one project that uses contextlib2 with Python3
[1], I think it'd be good to package it for both Python 2 and Python 3. If
you or anyone else has a strong opinion on this, let's talk about it.
[1] I intend to package vcrpy after I package contextlib2, since the former
uses the latter: https://github.com/kevin1024/vcrpy/blob/master/setup.py
On Sun, Dec 13, 2015, 15:16 Ludovic Courtès <ludo@gnu.org> wrote:
> Chris Marusich <cmmarusich@gmail.com> skribis:
>
> > On 12/6/15, Ludovic Courtès <ludo@gnu.org> wrote:
> >> Yes, could you adjust it and send an updated patch?
> >>
> >
> > I've attached the new patch here. I've shortened a few lines,
> > including the one requested.
>
> Great.
>
> > In particular, I've shortened every line of the description to 70
> > columns. Because of that, it looks like the first line of the
> > description will wind up being significantly shorter than 70 chars.
> > Are the newlines in the description significant? Or is there some
> > reformatting that happens when the description is printed to the
> > terminal, e.g. via "guix package --search=foo"?
>
> Yes, there’s reformatting happening here, so don’t worry. We normally
> wrap at 78 columns, as per .dir-locals.el.
>
> >> I must I was a bit confused, partly due to the reply-on-top, which made
> >> it more difficult for me to see what you were referring to. Okay, I was
> >> also late for other reasons ;-), but still, I think it’d be great if you
> >> could avoid top-posting.
> >
> > Thanks for pointing this out; I'll reply on the bottom from now on!
>
> Thanks. :-)
>
> > From 4089b10f384b389999576dfc8766c661a5787a4b Mon Sep 17 00:00:00 2001
> > From: Chris Marusich <cmmarusich@gmail.com>
> > Date: Mon, 7 Dec 2015 21:07:40 -0800
> > Subject: [PATCH] gnu: Add python-contextlib2.
> >
> > * gnu/packages/python.scm (python-contextlib2, python2-contextlib2):
> > New variables.
>
> [...]
>
> > + (home-page "http://contextlib2.readthedocs.org/")
> > + (synopsis "Tools for decorators and context managers")
> > + (description "This module is primarily a backport of the Python
> > +3.2 contextlib to earlier Python versions. Like contextlib, it
> > +provides utilities for common tasks involving decorators and context
> > +managers. It also contains additional features that are not part of
> > +the standard library.")
> > + (license psfl)))
> > +
> > +(define-public python2-contextlib2
> > + (package-with-python2 python-contextlib2))
>
> IIUC the description it only makes sense for Python 2.x, right?
>
> In that case, could you add an explicit #:python in ‘arguments’ and keep
> only the 2.x variant? I could do that for you if you prefer.
>
> Thanks, and sorry for the delay!
>
> Ludo’.
>
[-- Attachment #2: Type: text/html, Size: 4040 bytes --]
next prev parent reply other threads:[~2015-12-14 2:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 8:31 [PATCH] gnu: Add python-contextlib2 Chris Marusich
2015-11-18 8:46 ` Andreas Enge
2015-11-18 8:46 ` Chris Marusich
2015-11-18 12:55 ` Ben Woodcroft
2015-11-21 21:28 ` Chris Marusich
2015-11-26 13:44 ` Ludovic Courtès
2015-12-01 8:22 ` Chris Marusich
2015-12-06 21:49 ` Ludovic Courtès
2015-12-08 5:14 ` Chris Marusich
2015-12-13 23:16 ` Ludovic Courtès
2015-12-14 2:15 ` Chris Marusich [this message]
2015-12-14 8:44 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEKzfHnWj1OybMBRaR-RkR9bFnyFHXDY35AQJKonFGwMZ+ss9g@mail.gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).