[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 04/10] gnu: Add python-pytest-flakes.
From: |
Leo Famulari |
Subject: |
Re: [PATCH v2 04/10] gnu: Add python-pytest-flakes. |
Date: |
Mon, 25 Apr 2016 14:34:55 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Sun, Apr 24, 2016 at 11:06:18PM +1000, Ben Woodcroft wrote:
> * gnu/packages/python.scm (python-pytest-flakes,
> python2-pytest-flakes): New variables.
Thanks!
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (add-after 'install 'post-install-check
> + ;; 'setup.py test' does not run tests
> + (lambda _
> + (zero? (system* "py.test" "test_flakes.py")))))))
Does it work if you replace the check phase? Or does the check phase do
something worthwhile? Or do the tests only work after install? Can you
answer this in the code comment? ;)
> + (native-inputs
> + `(("python-pytest-pep8" ,python-pytest-pep8)))
> + (propagated-inputs
> + `(("python-pytest-cache" ,python-pytest-cache)
> + ("python-pytest" ,python-pytest)
> + ("python-pyflakes" ,python-pyflakes)))
I think this could get messy in practice. If, during the build of some
other package, multiple packages try to propagate pytest, we just have
to hope that whichever pytest passes the conflict resolution mechanism
works as expected.
Can you check if it still works when these are "regular" inputs?
- [PATCH v2 03/10] gnu: Add python-pytest-pep8., (continued)
- [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/24
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Efraim Flashner, 2016/04/24
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/24
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/24
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ricardo Wurmus, 2016/04/25
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/25
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Leo Famulari, 2016/04/25
- proper Python inputs (was: gnu: Add python-pytest-pep8.), Hartmut Goebel, 2016/04/25
- Re: proper Python inputs (was: gnu: Add python-pytest-pep8.), Ricardo Wurmus, 2016/04/26
[PATCH v2 04/10] gnu: Add python-pytest-flakes., Ben Woodcroft, 2016/04/24
- Re: [PATCH v2 04/10] gnu: Add python-pytest-flakes.,
Leo Famulari <=
[PATCH v2 05/10] gnu: Add python-future., Ben Woodcroft, 2016/04/24
[PATCH v2 06/10] gnu: Add python-cachecontrol., Ben Woodcroft, 2016/04/24
[PATCH v2 07/10] gnu: python-tornado: Use 'python2-variant'., Ben Woodcroft, 2016/04/24
[PATCH v2 08/10] gnu: python-ipython: Use 'python2-variant'., Ben Woodcroft, 2016/04/24
[PATCH v2 09/10] gnu: Add python-natsort., Ben Woodcroft, 2016/04/24