-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installation: deprecate
tests_require
and fix tox
configuration
Amends installation setup with respect to deprecated `tests_require` and `pytest-runner`. Amends `tox` testing setup to fix mocker fixture import issue. Improves `tox` testing setup to produce correct coverage findings by forcing "editable" package installation mode. (In its "editable-legacy" variant which is necessary for Python-3.6 that we are still supporting in the client.)
- Loading branch information
1 parent
ea24900
commit c9c0e74
Showing
4 changed files
with
35 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
# This file is part of cernopendata-client. | ||
# | ||
# Copyright (C) 2020, 2022, 2023 CERN. | ||
# Copyright (C) 2020, 2022, 2023, 2024 CERN. | ||
# | ||
# cernopendata-client is free software; you can redistribute it and/or modify | ||
# it under the terms of the GPLv3 license; see LICENSE file for more details. | ||
|
||
[tox] | ||
envlist = py36, py37, py38, py39, py310, py311, py312 | ||
envlist = | ||
py36 | ||
py37 | ||
py38 | ||
py39 | ||
py310 | ||
py311 | ||
py312 | ||
|
||
[testenv] | ||
deps = pytest | ||
pytest-cov | ||
setuptools | ||
commands = {envpython} setup.py test | ||
deps = | ||
pytest | ||
pytest-cov | ||
pytest-mock | ||
setuptools | ||
commands = | ||
pytest {posargs} | ||
package = | ||
editable-legacy |