Commit Graph

56 Commits

Author SHA1 Message Date
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
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
Frederik Rietdijk
dcf786eb23 pythonPackages.pytest: remove old version
Follow-up to c0dc032e42
2019-08-18 11:48:40 +02:00
Chris Ostrouchov
85e027d914 pythonPackages.pytest_3: refactor fix broken build of old package 2019-07-17 10:02:03 +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
b3febfb850 python.pkgs.pytest_3: keep older version
because not all test suites are compatible with 4 yet.
2019-02-17 14:40:48 +01: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
ee91c45f89 python.pkgs.pytest_32: remove old version 2018-01-20 14:12:39 +01:00
Frederik Rietdijk
7f77cce9ed python.pkgs.pytest_29: remove old version 2018-01-20 14:11:56 +01:00
Frederik Rietdijk
56c3535d06 python.pkgs.pytest_28: remove old version 2018-01-20 12:55:44 +01:00
Frederik Rietdijk
3fa9702958 python.pkgs.pytest_27: remove old version 2018-01-20 12:48:04 +01:00
Frederik Rietdijk
c0c616b81f python.pkgs.pytest_30: remove unused version 2018-01-20 12:27:13 +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
7a13e5a7df Merge remote-tracking branch 'upstream/python-unstable' into HEAD 2017-11-24 19:58:07 +01:00
adisbladis
d99378654f pythonPackages: Add version and pname attributes to packages 2017-11-23 17:49:43 +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