Commit Graph

52 Commits

Author SHA1 Message Date
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
Frederik Rietdijk
9494156d36 python: pytest: 3.4.0 -> 3.4.1 2018-02-26 18:42:48 +01:00
Frederik Rietdijk
20d883917a python: pytest: 3.3.2 -> 3.4.0 2018-02-03 17:43:30 +01:00
Frederik Rietdijk
13c5dc200a python: pytest: 3.3.1 -> 3.3.2 2018-01-07 09:47:13 +01:00
Frederik Rietdijk
fd0b019007 python: pytest: 3.2.5 -> 3.3.1 2017-12-31 11:01:52 +01:00
Frederik Rietdijk
35f5912db5 Merge remote-tracking branch 'upstream/python-unstable' into HEAD 2017-11-23 16:38:39 +01:00
Frederik Rietdijk
7c3c2a0dca python.pkgs.pytest: add missing setuptools dependency 2017-11-23 15:11:03 +01:00
Maik Figura
171d0e3ac7 pytest: 3.2.3 -> 3.2.5 2017-11-15 23:06:14 +01:00
Frederik Rietdijk
7ce848309e python.pkgs: updates 2017-10-27 21:34:42 +02:00
Frederik Rietdijk
10df572a03 python.pkgs.pytest: use fetchPypi 2017-08-25 19:36:19 +02:00
Frederik Rietdijk
d58e1f1c7b python.pkgs: many updates 2017-08-25 19:36:14 +02:00
Frederik Rietdijk
959842a9c7 Python: add pname attributes to libraries
so that we can use the update script.
2017-05-27 11:30:21 +02:00
Frederik Rietdijk
a697985e37 pythonPackages.pytest: 3.0.6 -> 3.0.7 2017-04-18 11:33:22 +02:00