unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: 25177@debbugs.gnu.org
Subject: bug#25177: Test failures don't cause some Python packages to fail [was Re: [PATCH 05/11] gnu: Add python-pygit2.]
Date: Sun, 11 Dec 2016 17:34:54 -0500	[thread overview]
Message-ID: <20161211223454.GA9474@jasmine> (raw)
In-Reply-To: <20161211181237.24485-6-ng0@libertad.pw>

I noticed while building the package added by ng0's patch (below) that
the test suite fails, but the check phase succeeds:

[...]
======================================================================
ERROR: test_clone_with_credentials (test.test_repository.CloneRepositoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/test/test_repository.py", line 544, in test_clone_with_credentials
    self._temp_dir, callbacks=pygit2.RemoteCallbacks(credentials=pygit2.UserPass("libgit2", "libgit2")))
  File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/pygit2/__init__.py", line 255, in clone_repository
    check_error(err)
  File "/tmp/guix-build-python-pygit2-0.24.2.drv-0/pygit2-0.24.2/pygit2/errors.py", line 64, in check_error
    raise GitError(message)
_pygit2.GitError: curl error: Couldn't resolve host 'bitbucket.org'


----------------------------------------------------------------------
Ran 262 tests in 5.771s

FAILED (errors=3)
phase `check' succeeded after 8.9 seconds
[...]

Any ideas?

On Sun, Dec 11, 2016 at 06:12:31PM +0000, ng0 wrote:
> * gnu/packages/python.scm (python-pygit2): New variable.
> ---
>  gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 2a49a060b..32f83deb4 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -3376,6 +3376,36 @@ association studies (GWAS) on extremely large data sets.")
>  (define-public python2-numpy
>    (package-with-python2 python-numpy))
>  
> +(define-public python-pygit2
> +  (package
> +    (name "python-pygit2")
> +    (version "0.24.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/libgit2/"
> +                           "pygit2/archive/v" version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32
> +         "1j7zkz2bsn4wqmkg1zkxb3r00xx28rkz9jdwcsikcl4ffa298xwa"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-six" ,python-six)
> +       ("python-cffi" ,python-cffi)
> +       ("libgit2" ,libgit2)
> +       ("python-tox" ,python-tox)))
> +    (home-page "http://github.com/libgit2/pygit2")
> +    (synopsis "Python bindings for libgit2")
> +    (description
> +     "Pygit2 is a set of Python bindings to the libgit2
> +shared library, libgit2 implements Git plumbing.")
> +    ;; GPL2.0 only, with linking exception.
> +    (license license:gpl2)))
> +
> +(define-public python2-pygit2
> +  (package-with-python2 python-pygit2))
> +
>  (define-public python-pyparsing
>    (package
>      (name "python-pyparsing")
> -- 
> 2.11.0
> 
> 

       reply	other threads:[~2016-12-11 22:36 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161211181237.24485-1-ng0@libertad.pw>
     [not found] ` <20161211181237.24485-6-ng0@libertad.pw>
2016-12-11 22:34   ` Leo Famulari [this message]
2016-12-11 23:04     ` bug#25177: Test failures don't cause some Python packages to fail [was Re: [PATCH 05/11] gnu: Add python-pygit2.] Marius Bakke
2016-12-11 23:05       ` Marius Bakke
2016-12-11 23:23         ` Leo Famulari
2016-12-11 23:34           ` Marius Bakke
2016-12-12  7:54       ` Marius Bakke
2016-12-12 15:44         ` Leo Famulari
2016-12-12 22:23           ` Hartmut Goebel
2016-12-13  9:34             ` Marius Bakke
2016-12-13 20:21               ` bug#25177: Test failures don't cause some Python packages to fail Marius Bakke
2016-12-13 22:11                 ` Leo Famulari
2016-12-14 12:11                   ` Marius Bakke
2016-12-15  9:26                   ` Marius Bakke
2016-12-15 23:55                     ` Leo Famulari
2016-12-16 14:02                       ` Marius Bakke
2016-12-17 17:14                         ` Leo Famulari
2016-12-17 17:38                           ` Marius Bakke
2016-12-17 17:56                             ` Leo Famulari
2016-12-17 20:15                               ` Leo Famulari
2016-12-17 23:47                                 ` Marius Bakke
2016-12-18  1:28                                   ` Leo Famulari
2016-12-18 18:55                                     ` Marius Bakke
2016-12-18 19:04                                       ` Leo Famulari
2016-12-20 18:49                                         ` Marius Bakke
2016-12-20 19:30                                           ` Leo Famulari
2016-12-24 13:43                                             ` Marius Bakke
2016-12-24 16:26                                               ` Leo Famulari
2016-12-26 18:33                                                 ` Leo Famulari
2016-12-16  9:23                     ` 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=20161211223454.GA9474@jasmine \
    --to=leo@famulari.name \
    --cc=25177@debbugs.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).