Commit Graph

64 Commits

Author SHA1 Message Date
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
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
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
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
f286d1daca python: pytest: 5.2.4 -> 5.3.2 2019-12-30 16:46:46 +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
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
Frederik Rietdijk
f7e28bf5d8 Split buildPythonPackage into setup hooks
This commit splits the `buildPythonPackage` into multiple setup hooks.

Generally, Python packages are built from source to wheels using `setuptools`.
The wheels are then installed with `pip`. Tests were often called with
`python setup.py test` but this is less common nowadays. Most projects
now use a different entry point for running tests, typically `pytest`
or `nosetests`.

Since the wheel format was introduced more tools were built to generate these,
e.g. `flit`. Since PEP 517 is provisionally accepted, defining a build-system
independent format (`pyproject.toml`), `pip` can now use that format to
execute the correct build-system.

In the past I've added support for PEP 517 (`pyproject`) to the Python
builder, resulting in a now rather large builder. Furthermore, it was not possible
to reuse components elsewhere. Therefore, the builder is now split into multiple
setup hooks.

The `setuptoolsCheckHook` is included now by default but in time it should
be removed from `buildPythonPackage` to make it easier to use another hook
(curently one has to pass in `dontUseSetuptoolsCheck`).
2019-09-06 15:18:45 +02:00
Frederik Rietdijk
b3ddab852a pythonPackages.pytest: 4.6.5 -> 5.1.0 in case of Python 3 2019-08-18 11:48:40 +02:00
Frederik Rietdijk
1615ce80b1 pythonPackages.pytest: 4.6.3 -> 4.6.5 2019-08-18 11:48:40 +02:00
leo60228
b9ea613f43 pytest: disable tests on pypy
Bug in tests. See https://github.com/pytest-dev/pytest/issues/3460
2019-07-03 09:18:12 +02:00
Mario Rodas
1a7ffb4140 pythonPackages.pytest: 4.2.1 -> 4.6.3 2019-06-18 11:11:16 +02:00
Frederik Rietdijk
ee38a0d183 python: pytest: 3.9.3 -> 4.2.1 2019-02-17 14:40:48 +01:00
Robert Schütz
387d837928
Revert "python: pytest_37: init at 3.7.4" (#54429)
This reverts commit eb2d56cb27
since python.pkgs.pytest_37 is no longer used.
2019-01-21 22:48:12 +01:00
Franz Pletz
eb2d56cb27
python: pytest_37: init at 3.7.4
Needed at least by pyjwt.
2018-11-22 22:27:29 +01:00
Frederik Rietdijk
917400bcff Revert "Python: reduce amount of warnings when building with buildPython*"
Turns out that many packages' testsuites rely on the default warnings setup.

This reverts commit c1e003ff2f.
2018-11-12 18:55:50 +01:00
Frederik Rietdijk
c1e003ff2f Python: reduce amount of warnings when building with buildPython*
By default all warnings were printed. This occasionally resulted in
a lot of warnings leading to builds being killed.

This commit reduces the amount of warnings printed.
2018-11-04 10:19:48 +01:00
Frederik Rietdijk
e3e1a53118 python: pytest: 3.9.2 -> 3.9.3 2018-10-30 20:44:48 +01:00
Frederik Rietdijk
5db047243c python: pytest: 3.7.4 -> 3.9.2 2018-10-24 20:05:44 +02:00
Mario Rodas
5143e30361 pythonPackages.pytest: pathlib2 is only required for python<3.6 2018-10-18 11:07:02 +02:00
Benjamin Hipple
b721a1b9a9 pytest: add license 2018-10-09 21:23:37 -04:00
Frederik Rietdijk
20a4a4b593 pythonPackages.pytest.setupHook: run in correct phase
It was reported that the 2nd solution wasn't working as expected because
it was ran in the wrong phase.

This commit creates a new phase, in between the installCheckPhase and distPhase.
2018-09-04 19:18:13 +02:00
Frederik Rietdijk
8a6b20cbad python: pytest: 3.7.2 -> 3.7.4 2018-09-01 10:41:37 +02:00
Frederik Rietdijk
617c8ee925 python: pytest: 3.7.1 -> 3.7.2 2018-08-25 18:07:15 +02:00
Frederik Rietdijk
974d04eec6 python: pytest: 3.6.3 -> 3.7.1 2018-08-25 07:38:23 +02:00
Frederik Rietdijk
9267b477f1 python.pkgs.pytest.setupHook: fix cache name, fixes #40273
The cache is not named `.pytest-cache` but `.pytest_cache`.
2018-08-05 11:56:21 +02:00
Frederik Rietdijk
bb147bbc0b python.pkgs.pytest: fix setupHook .pytest-cache
In 610485faa7 a setupHook was added to `pytest`
to prevent the creation of `.pytest-cache` folder. Some pytest plugins relied
on the cache and were thus failing.

This commit permits the cache during build time but removes it in a `postFixupHook`.
2018-07-26 12:43:17 +02:00
Frederik Rietdijk
b9d2781db3 python: pytest: 3.6.2 -> 3.6.3 2018-07-26 12:43:05 +02:00
Frederik Rietdijk
610485faa7 python.pkgs.pytest: setupHook to prevent creation of .pytest-cache folder, fixes #40273
When `py.test` was run with a folder as argument, it would not only
search for tests in that folder, but also create a .pytest-cache folder.
Not only is this state we don't want, but it was also causing
collisions.
2018-07-22 09:45:26 +02:00
Frederik Rietdijk
1dd0109c8c pythonPackages: remove traces of Python 2.6 2018-06-25 10:50:44 +02:00
Frederik Rietdijk
7d4922b2e0 python: pytest: 3.6.1 -> 3.6.2 2018-06-22 13:09:44 +02:00
Frederik Rietdijk
c08d570350 python: pytest: 3.5.1 -> 3.6.1 2018-06-22 13:09:28 +02:00
Frederik Rietdijk
2c3e3b8af1 python: pytest: 3.5.0 -> 3.5.1 2018-05-10 10:09:14 +02:00
Frederik Rietdijk
2744b4ff28 python: pytest: 3.4.2 -> 3.5.0 2018-04-08 11:34:56 +02:00
Silvan Mosberger
2e70f7a9e0 python: pytest: 3.4.1 -> 3.4.2 2018-04-01 21:09:08 +02:00