Commit Graph

369238 Commits

Author SHA1 Message Date
Robert Schütz
d735ed3864 python3Packages.pytest-asyncio: 0.18.1 -> 0.18.3
https://github.com/pytest-dev/pytest-asyncio/blob/v0.18.3/CHANGELOG.rst
2022-04-15 01:39:54 +02:00
Robert Schütz
bfcb28e128 python3Packages.async_generator: does not depend on pytest-asyncio 2022-04-15 01:39:54 +02:00
Martin Weinelt
c2d2758147 borgbackup: disable racy test
https://github.com/borgbackup/borg/issues/6573
2022-04-15 01:39:54 +02:00
Martin Weinelt
9f340b5bf1 treewide: remove redundant numprocesses pytest-xdist parameter
Including the pytest-xdist package automatically configures numprocesses
to $NIX_BUILD_CORES, so specifying these on a package level has become
redundant.
2022-04-15 01:39:54 +02:00
Martin Weinelt
836e3af544 python3Packages.jax: disable test_custom_linear_solve_aux
```
______________ CustomLinearSolveTest.test_custom_linear_solve_aux ______________
[gw3] linux -- Python 3.9.11 /nix/store/k1physzalj5vffsvl7ag6h6b6vaqip5x-python3-3.9.11/bin/python3.9

self = <custom_linear_solve_test.CustomLinearSolveTest testMethod=test_custom_linear_solve_aux>

    @jtu.skip_on_flag("jax_skip_slow_tests", True)
    def test_custom_linear_solve_aux(self):
      def explicit_jacobian_solve_aux(matvec, b):
        x = lax.stop_gradient(jnp.linalg.solve(jax.jacobian(matvec)(b), b))
        return x, array_aux

      def matrix_free_solve_aux(matvec, b):
        return lax.custom_linear_solve(
          matvec, b, explicit_jacobian_solve_aux, explicit_jacobian_solve_aux,
          symmetric=True, has_aux=True)

      def linear_solve_aux(a, b):
        return matrix_free_solve_aux(partial(high_precision_dot, a), b)

      # array aux values, to be able to use jtu.check_grads
      array_aux = {"converged": np.array(1.), "nfev": np.array(12345.)}
      rng = self.rng()
      a = rng.randn(3, 3)
      a = a + a.T
      b = rng.randn(3)

      expected = jnp.linalg.solve(a, b)
      actual_nojit, nojit_aux = linear_solve_aux(a, b)
      actual_jit, jit_aux = jax.jit(linear_solve_aux)(a, b)

      self.assertAllClose(expected, actual_nojit)
      self.assertAllClose(expected, actual_jit)
      # scalar dict equality check
      self.assertDictEqual(nojit_aux, array_aux)
      self.assertDictEqual(jit_aux, array_aux)

      # jvp / vjp test
>     jtu.check_grads(linear_solve_aux, (a, b), order=2, rtol=4e-3)

tests/custom_linear_solve_test.py:157:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jax/_src/test_util.py:372: in check_grads
    _check_grads(f, args, order)
jax/_src/test_util.py:361: in _check_grads
    _check_grads(partial(api.jvp, f), (args, args), order - 1, fwd_msg)
jax/_src/test_util.py:365: in _check_grads
    _check_vjp(f, partial(api.vjp, f), args, err_msg=rev_msg)
jax/_src/test_util.py:325: in check_vjp
    check_close(ip, ip_expected, atol=atol, rtol=rtol,
jax/_src/test_util.py:227: in check_close
    tree_all(tree_multimap(assert_close, xs, ys))
jax/_src/tree_util.py:180: in tree_map
    return treedef.unflatten(f(*xs) for xs in zip(*all_leaves))
jax/_src/tree_util.py:180: in <genexpr>
    return treedef.unflatten(f(*xs) for xs in zip(*all_leaves))
jax/_src/test_util.py:217: in _assert_numpy_close
    _assert_numpy_allclose(a, b, atol=atol * a.size, rtol=rtol * b.size,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

a = array(1.89683694), b = array(1.88698006), atol = 0.002, rtol = 0.004
err_msg = 'VJP of JVP cotangent projection'

    def _assert_numpy_allclose(a, b, atol=None, rtol=None, err_msg=''):
      if a.dtype == b.dtype == _dtypes.float0:
        np.testing.assert_array_equal(a, b, err_msg=err_msg)
        return
      a = a.astype(np.float32) if a.dtype == _dtypes.bfloat16 else a
      b = b.astype(np.float32) if b.dtype == _dtypes.bfloat16 else b
      kw = {}
      if atol: kw["atol"] = atol
      if rtol: kw["rtol"] = rtol
      with np.errstate(invalid='ignore'):
        # TODO(phawkins): surprisingly, assert_allclose sometimes reports invalid
        # value errors. It should not do that.
>       np.testing.assert_allclose(a, b, **kw, err_msg=err_msg)
E       AssertionError:
E       Not equal to tolerance rtol=0.004, atol=0.002
E       VJP of JVP cotangent projection
E       Mismatched elements: 1 / 1 (100%)
E       Max absolute difference: 0.00985688
E       Max relative difference: 0.00522363
E        x: array(1.896837)
E        y: array(1.88698)

jax/_src/test_util.py:187: AssertionError
```
2022-04-15 01:39:54 +02:00
Sandro Jäckel
84cc0b7449 python310Packages.click: 8.1.1 -> 8.1.2 2022-04-15 01:39:54 +02:00
Sandro Jäckel
6fc914b337 python39Packages.ncclient: 0.6.12 -> 0.6.13 2022-04-15 01:39:54 +02:00
Robert Schütz
406c7d8c3d python3Packages.img2pdf: 0.4.3 -> 0.4.4
https://gitlab.mister-muffin.de/josch/img2pdf/src/tag/0.4.4/CHANGES.rst
2022-04-15 01:39:54 +02:00
Robert Schütz
4e23b47f48 python3Packages.pikepdf: disable failing test 2022-04-15 01:39:53 +02:00
Robert Schütz
fe31277c3c python3Packages.pillow: 9.0.1 -> 9.1.0
https://pillow.readthedocs.io/en/stable/releasenotes/9.1.0.html
2022-04-15 01:39:53 +02:00
Robert Scott
35a6f46d6d python3Packages.fastparquet: 0.7.1 -> 0.8.1 2022-04-15 01:39:53 +02:00
Martin Weinelt
d57404ea3d python3Packages.jax: test with limited parallelism
The tests are prone to getting stuck with high parallelism.
2022-04-15 01:39:53 +02:00
Robert Scott
214d151733 python3Packages.rich: 12.0.1 -> 12.2.0 2022-04-15 01:39:53 +02:00
Jonathan Ringer
ba47e59440 python3Packges.websocket: add missing six dependency
```
       > Processing ./websocket_client-0.56.0-py2.py3-none-any.whl
       > ERROR: Could not find a version that satisfies the requirement six (from websocket-client) (from versions: none)
       > ERROR: No matching distribution found for six
       >
```
2022-04-15 01:39:53 +02:00
Martin Weinelt
7fc6852dbf python3Packages.google-cloud-testutils: propagate packaging 2022-04-15 01:39:53 +02:00
Robert Scott
26970a06a9 python3Packages.mitmproxy: add dontUsePytestXdist flag
a couple of tests don't seem to like this, producing confusing
failures
2022-04-15 01:39:53 +02:00
Martin Weinelt
5a6793c4f8 python3Packages.junos-eznc: fix build and tests 2022-04-15 01:39:53 +02:00
Martin Weinelt
44f0a04ddd python3Packages.pandas: use upstreams fast test settings 2022-04-15 01:39:53 +02:00
Martin Weinelt
8b069e36f9 python3Packages.sqlalchemy: 1.4.34 -> 1.4.35 2022-04-15 01:39:53 +02:00
Martin Weinelt
29b968bf17 python3Packages.httplib2: 0.20.3 -> 0.20.4 2022-04-15 01:39:52 +02:00
Robert Scott
487969790f python3Packages.shapely: update patch to apply to 1.8.1.post1 2022-04-15 01:39:52 +02:00
Will Dietz
9639fdbb92 python3Packages.pycurl: re-enable tests that no longer fail 2022-04-15 01:39:52 +02:00
Artturin
b5facab1ef python39Packages.pytest-xdist: run xdist hook before pytestCheckPhase 2022-04-15 01:39:52 +02:00
Sandro Jäckel
352ae0b79e python39Packages.yanc: only disable tests on python >=3.5 2022-04-15 01:39:52 +02:00
Sandro Jäckel
f0719291bc python39Packages.cffi: move prePatch to postPatch to not break patches 2022-04-15 01:39:52 +02:00
Frederik Rietdijk
d52b53fd9e python3.pkgs.bcrypt: fix build
also use pyproject format as we're heading that direction.
2022-04-15 01:39:52 +02:00
Fabian Affolter
0594c921f1 python3Packages.bcrypt: add pythonImportsCheck 2022-04-15 01:39:52 +02:00
Sandro Jäckel
c7fa67725a python39Packages.bcrypt: remove unused dependencies 2022-04-15 01:39:52 +02:00
Martin Weinelt
27b5b67d9f python3Packages.pdm-pep517: 0.12.1 -> 0.12.3 2022-04-15 01:39:52 +02:00
Martin Weinelt
c213165843 python3Packages.nbconvert: propagate beautifulsoup4 2022-04-15 01:39:51 +02:00
Martin Weinelt
bfea00a603 python3Packages.azure-mgmt-core: propagate typing-extensions 2022-04-15 01:39:51 +02:00
Martin Weinelt
c0a3fcdf9f python3Packages.azure-core: 1.23.0 -> 1.23.1 2022-04-15 01:39:51 +02:00
Martin Weinelt
280ec33cd2 awscli: 1.22.67 -> 1.22.88 2022-04-15 01:39:51 +02:00
Martin Weinelt
95f405100f python3Packages.botocore: 1.24.30 -> 1.24.33 2022-04-15 01:39:51 +02:00
Martin Weinelt
41d6a4e19c python3Packages.ipykernel: 6.11.0 -> 6.12.1 2022-04-15 01:39:51 +02:00
Sandro Jäckel
00f38e1a83 python39Packages.hypothesmith: remove linting programs 2022-04-15 01:39:51 +02:00
Sandro Jäckel
334fb0c7ed python39Packages.typer: remove linting programs 2022-04-15 01:39:51 +02:00
Sandro Jäckel
1e38fae01e python39Packages.ipython: remove optional black depedency, update homepage
Black should be updatable without a mass rebuild
2022-04-15 01:39:51 +02:00
Martin Weinelt
4775c308fa pytest-httpbin: drop assertion that doesn't hold anymore
In Flask 2.1.0 Location headers were made relative and alot of packages
still assume absolute values. That breaks the assertion, so we drop it.
2022-04-15 01:39:51 +02:00
Robert Scott
2612250311 python3Packages.ephemeral-port-reserve: skip test_fqdn on darwin 2022-04-15 01:39:51 +02:00
Robert Scott
5279d5ebc4 python3Packages.asgiref: fix tests on darwin
our macos sdk version doesn't have SOCK_NONBLOCK
2022-04-15 01:39:50 +02:00
Martin Weinelt
cce35dad7a python3Packages.httpbin: apply patch for werkzeug 2.1.0 compatibility 2022-04-15 01:39:50 +02:00
Martin Weinelt
46111b2bcd python3Packages.flask-restful: apply patch for werkzeug 2.1.0 compat
Based on https://github.com/python-restx/flask-restx/pull/423.
2022-04-15 01:39:50 +02:00
Martin Weinelt
8502ec56ec python3Packages.pylint: 2.13.3 -> 2.13.4 2022-04-15 01:39:50 +02:00
Martin Weinelt
04cc709898 python3Packages.httplib2: drop xdist, prone to race conditions 2022-04-15 01:39:50 +02:00
Martin Weinelt
c994f0ed63 python3Packages.funcparserlib: add six to check deps 2022-04-15 01:39:50 +02:00
Martin Weinelt
72f9e7ced4 python3Packages.pandas: 1.4.1 -> 1.4.2 2022-04-15 01:39:50 +02:00
Martin Weinelt
0822ef7305 python3Packages.flask-paranoid: 0.2 -> 0.3.0 2022-04-15 01:39:50 +02:00
Martin Weinelt
3467f4e895 python3Packages.moto: update disabled tests, drop xdist
Dropping pytest-xdist due to reproducible hangs at the end of the test
run.
2022-04-15 01:39:50 +02:00
Martin Weinelt
008fbda841 python3Packages.pytest-xdist: fix hook being applied multiple times 2022-04-15 01:39:49 +02:00