Commit graph

103 commits

Author SHA1 Message Date
Martin Weinelt c838a3ac1e python3Packages.pytest: prune deps, refactor 2022-04-15 01:39:45 +02:00
Martin Weinelt c15748820b python3Packages.pytest: 7.0.1 -> 7.1.1 2022-04-13 16:49:35 +02:00
Martin Weinelt ac90f42389 python3Packages.pytest: 6.2.5 -> 7.0.1 2022-03-14 00:28:48 +01:00
Frederik Rietdijk 4bf9e61a76 python3Packages.pytest_5: remove
no longer needed
2022-01-16 10:00:16 +01:00
Frederik Rietdijk ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00
Martin Weinelt 9bb624e69f python310Packages.pytest: fix tests 2021-12-26 19:31:43 -08:00
github-actions[bot] 9b5a105856
Merge master into staging-next 2021-11-14 00:01:47 +00:00
Markus S. Wamser 9b001407a1 pkgs.development.python-modules: remove unused args 2021-11-13 13:43:29 +01:00
Sergei Trofimovich f0bb568b74 pytest: new hook to delete pytest bytecode
In https://github.com/NixOS/nixpkgs/issues/139292 we found out that
pytest leaves pytest-generated bytecode in install directory
(as tests are ran after install). That bytecode is:
- non-deterministic (was copied from cpython before cpython got
  support for deterministic bytecode)
- unneeded after test run

The change cleans bytecode up and provides a hook variable to avoid it
if needed.

Tested on `python39Packages.pytest-xdist` and `python27Packages.flaky` as:

    $ nix build -f. python39Packages.pytest-xdist
    $ nix build -f. python39Packages.pytest-xdist --rebuild

    $ nix build -f. python27Packages.flaky
    $ nix build -f. python27Packages.flaky --rebuild

Closes: https://github.com/NixOS/nixpkgs/issues/139292
2021-10-30 13:08:17 -07:00
Martin Weinelt 6bb29572e4 python3Packages.pytest: 6.2.4 -> 6.2.5 2021-09-05 15:00:50 +02:00
Martin Weinelt aebdfe2abe python3Packages.pytest_5: relax pluggy constraints 2021-09-05 15:00:11 +02:00
Sandro Jäckel 26f55ce2b7 python3Packages.pytest_4: relax pluggy constraints
Following 7e27631e46c8121e5b906083e1de74ec53de2730
2021-09-05 15:00:10 +02:00
Martin Weinelt 95f169c6cf python3Packages.pytest: relax pluggy constraints
Apparently possible without further changes:
https://github.com/pytest-dev/pytest/pull/9040
2021-09-05 14:59:02 +02:00
Martin Weinelt 5995e32fe1 python3Packages.pytest: 6.2.4 -> 6.2.5 2021-09-01 21:23:25 +02:00
Martin Weinelt e0ef8da128 python3Packages.pytest_5: relax pluggy constraints 2021-09-01 21:23:19 +02:00
Sandro Jäckel 684acec3e9 python3Packages.pytest_4: relax pluggy constraints
Following 7e27631e46c8121e5b906083e1de74ec53de2730
2021-09-01 21:23:19 +02:00
Martin Weinelt 65931335b6 python3Packages.pytest: relax pluggy constraints
Apparently possible without further changes:
https://github.com/pytest-dev/pytest/pull/9040
2021-09-01 21:23:19 +02:00
Martin Weinelt fdcdc94c84 python3Packages.pytest: 6.2.3 -> 6.2.4 2021-06-22 13:42:39 +02:00
Sandro Jäckel 89d5f4b3d0
treewide: setuptools_scm -> setuptools-scm 2021-06-03 12:44:33 +02:00
Martin Weinelt 04af447ba9 python3Packages.pytest: 6.2.2 -> 6.2.3
https://github.com/pytest-dev/pytest/releases/tag/6.2.3
2021-04-04 17:33:25 +02:00
Jonathan Ringer 43769c051c python3Packages.pytest: fix tests 2021-04-03 17:49:55 +02:00
Fabian Affolter 84d6dfc4aa python3Packages.pytest: 6.1.2 -> 6.2.2 2021-03-05 19:54:30 +01:00
Pavol Rusnak a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Pavol Rusnak a4bbfba80d
pkgs/development/python-modules: stdenv.lib -> lib 2021-01-24 01:29:22 +01:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Arnout Engelen 63484ff09d
python3Packages.pytest: remove unreproducible test artifacts from output
Running the tests produced some unreproducible artifacts from the
output directory. This cleans them up afterwards.
2020-12-28 22:01:09 +01:00
R. RyanTM e552d657c3 python37Packages.pytest_6: 6.1.1 -> 6.1.2 2020-11-06 12:01:57 -08:00
R. RyanTM 2142fb3fee python37Packages.pytest_6: 6.0.1 -> 6.1.1 2020-10-16 09:52:55 -07:00
Frederik Rietdijk 33ddfcb8d9 python3Packages.pytest: 4.6.9 -> 4.6.11 2020-08-30 09:11:01 +02:00
Jonathan Ringer 2b9faf7def
python3Packages.pytest_5: init at 5.4.3 2020-08-16 17:44:59 -07:00
Jonathan Ringer 8e9060711a
pytest: fix dependencies, refactor 2020-08-16 12:42:02 -07:00
Frederik Rietdijk cf7d5944b5 python: pytest: 5.4.3 -> 6.0.1 2020-08-16 19:31:13 +02:00
Frederik Rietdijk 7869150bd4 python: pytest: 5.4.2 -> 5.4.3 2020-06-06 08:34:58 +02:00
Jonathan Ringer ac2732e660 python2Packages.pytest: 4.6.8 -> 4.6.9 2020-05-11 22:13:16 +02:00
Frederik Rietdijk c7f5c67872 python3Packages.pytest: does not need mock 2020-05-11 22:13:16 +02:00
Frederik Rietdijk 178bcf6d8b python3Packages.pytest: 5.4.1 -> 5.4.2 2020-05-11 22:13:13 +02:00
Jonathan Ringer adb485bb93 python3Packages.pytest: 5.3.5 -> 5.4.1 2020-05-11 22:12:08 +02:00
Domen Kožar a63762ace8
Merge pull request #72091 from xwvvvvwx/reproducible-pytest4
python3Packages.pytest4: deterministic bytecode
2020-04-22 14:05:09 +02:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Frederik Rietdijk c67ea834c1 python: pytest: 5.3.2 -> 5.3.5 2020-01-30 21:28:57 +01:00
Frederik Rietdijk b95c9a3bfd python: pytest: 4.6.7 -> 4.6.8 2019-12-30 16:46:54 +01:00
Frederik Rietdijk f286d1daca python: pytest: 5.2.4 -> 5.3.2 2019-12-30 16:46:46 +01:00
Frederik Rietdijk 1cee548428 python: pytest: 4.6.6 -> 4.6.7 2019-12-15 16:23:16 +01:00
Frederik Rietdijk 366a373e35 python: pytest: 5.2.2 -> 5.2.4 2019-11-22 08:37:22 +01:00
Frederik Rietdijk fbe93c074b python: pytest: 5.2.1 -> 5.2.2 2019-11-12 14:57:21 +01:00
David Terry 5cd5661378
python3Packages.pytest4: deterministic bytecode
For reasons that are not clear to me, the pytest4 check phase produces a
lot of non-deterministic bytecode files. This PR turns off bytecode
generation and disables a test that force enables bytecode generation.
2019-10-27 14:21:57 +01:00
Frederik Rietdijk 2ea05d40d4 python: pytest: 4.6.5 -> 4.6.6 2019-10-18 09:54:01 +02:00
Frederik Rietdijk bff8343481 python: pytest: 5.1.0 -> 5.2.1 2019-10-18 09:53:55 +02:00
Maximilian Bosch 5f1c02a1c9
python2Packages.pytest_5: disable build
`pytest_5` only supports python3[1], however the python2 build was enabled by
separating pytest_4 and pytest_5 into two different attributes.

ZHF #68361

[1] https://docs.pytest.org/en/latest/py27-py34-deprecation.html
2019-09-15 16:02:10 +02:00
Daniel Schaefer cbab4663f3 paperless: Use pytest_4 in django-crispy-forms
Doesn't build with pytest_5
2019-09-14 14:20:50 +02:00