~ruther/guix-local

1ca174507e260ca27e534191947e7642d321e136 — Sharlatan Hellseher 1 year, 6 months ago 9db9ef5
gnu: python-versioneer: Simplify tests.

* gnu/packages/python-xyz.scm (python-versioneer): Reduce amount of
dependencies for not stable tests.
[arguments]<test-flags>: Disable expensive tests which require
virtual environment setup.
<phases>: Use default 'check phase.
[native-inputs]: Remove git-minimal, python-flake8, python-pycodestyle,
python-pyflakes, and python-pypa-build; add git-minimal/pinned and
python-pytest.

Change-Id: Ida1c7ac401a1bb9a80136b88099019389a5c51cc
1 files changed, 14 insertions(+), 19 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +14 -19
@@ 33872,27 33872,22 @@ EDU SDK.  This library has the following features:
    (build-system pyproject-build-system)
    (arguments
     (list
      ;; Minimize test requirements.
      #:test-flags
      #~(list "--deselect=test/git/test_git.py::Repo::test_pyproject"
              "--ignore=test/git/test_invocations.py"
              "--ignore=test/test_render.py")
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                ;; Taken from tox.ini.
                (invoke "python" "setup.py" "make_versioneer")
                (invoke "python" "-m" "unittest" "discover" "test")
                (invoke "python" "test/git/test_git.py" "-v")
                ;; Some invocation tests require the network.
                ;;(invoke "python" "test/git/test_invocations.py" "-v")
                (invoke "python" "setup.py" "make_long_version_py_git")
                (invoke "pyflakes" "setup.py" "versioneer.py" "git_version.py")
                (invoke "python" "test/run_pyflakes_src.py")
                (invoke "pyflakes" "test")
                (invoke "flake8" "git_version.py" "versioneer.py")
                (invoke "pycodestyle" "--max-line-length=88"
                        "git_version.py" "versioneer.py")))))))
    (native-inputs
     (list git-minimal python-flake8 python-pycodestyle python-pyflakes
           python-pypa-build python-setuptools python-wheel))
          (add-before 'check 'pre-check
            (lambda _
              (invoke "python" "setup.py" "make_versioneer"
                      "make_long_version_py_git"))))))
    (native-inputs
     (list git-minimal/pinned
           python-pytest
           python-setuptools
           python-wheel))
    (propagated-inputs
     (list python-tomli))
    (home-page "https://github.com/python-versioneer/python-versioneer")