unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse)
Date: Mon, 25 Apr 2016 15:06:03 -0400	[thread overview]
Message-ID: <20160425190603.GC17335@jasmine> (raw)
In-Reply-To: <87inz6ado2.fsf@gnu.org>

On Sun, Apr 24, 2016 at 11:40:29PM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> 
> > On Thu, Apr 21, 2016 at 09:19:49PM +0200, Hartmut Goebel wrote:
> >> * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse):
> >>   New variables.
> >
> >> +    (arguments
> >> +     `(#:phases
> >> +       (modify-phases %standard-phases
> >> +         (replace 'check
> >> +           (lambda* _
> >> +             ;; setup.py-integrated 2to3 only affects the build files, but
> >> +             ;; py.test is using the source files. So we need to convert them
> >> +             ;; manually.
> >> +             (if (zero? (system* "python3"))
> >> +                 (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")
> >> +                 #t)
> >> +             (zero? (system* "py.test")))))))
> >
> > I think there must be a better way to do this conditional, but I'm not
> > sure what it is. Does anyone have any ideas?
> 
> (guix build python-build-system) includes ‘get-python-version’, which
> could be used for this purpose.
> 
> But I think the above is acceptable here (I’d use ‘when’ instead of the
> one-armed ‘if’, but that’s purely cosmetic.)

Okay, sounds good.

Hartmut, can you change it to use 'when' when you submit your revisions
to python-selenium and python-geoip2?

> 
> Thanks,
> Ludo’.

  reply	other threads:[~2016-04-25 19:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21 19:19 [PATCH 0/6] Updated: Some new python packages Hartmut Goebel
2016-04-21 19:19 ` [PATCH 1/6] gnu: Add python-tblib and python2-tblib Hartmut Goebel
2016-04-24 19:40   ` Leo Famulari
2016-04-21 19:19 ` [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
2016-04-24 19:24   ` Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse) Leo Famulari
2016-04-24 21:40     ` Ludovic Courtès
2016-04-25 19:06       ` Leo Famulari [this message]
2016-05-29 16:21       ` Hartmut Goebel
2016-04-21 19:19 ` [PATCH 3/6] gnu: add python-selenium and python2-selenium Hartmut Goebel
2016-04-24 19:19   ` Leo Famulari
2016-04-24 21:36   ` Ludovic Courtès
2016-04-21 19:19 ` [PATCH 4/6] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
2016-04-21 19:19 ` [PATCH 5/6] gnu: add python-maxminddb and python2-maxminddb Hartmut Goebel
2016-04-21 19:19 ` [PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack Hartmut Goebel
2016-04-21 19:19 ` [PATCH 6/6] gnu: add python-geoip2 and python2-geoip2 Hartmut Goebel
2016-04-21 20:29   ` Hartmut Goebel
2016-04-21 19:19 ` [PATCH 7/7] " Hartmut Goebel
2016-04-21 20:30   ` Hartmut Goebel

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=20160425190603.GC17335@jasmine \
    --to=leo@famulari.name \
    --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).