-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tox configuration that allows to build a venv for development and to format source files. To make use of it add appropriate Makefile targets. Drop unneeded requirements from requirements.txt and test-requirements.txt and add needed requirements. Signed-off-by: Felix Matouschek <[email protected]>
- Loading branch information
Showing
7 changed files
with
39 additions
and
12 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,9 +1,4 @@ | ||
kubernetes-validate | ||
coverage==4.5.4 | ||
mock | ||
pytest | ||
pytest-xdist | ||
pytest-mock | ||
pytest-forked | ||
virtualenv | ||
pytest-ansible | ||
pytest-xdist | ||
tox-ansible |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# No additional requirements at this moment | ||
# Have a look at /requirements.txt and /test-requirements.txt |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[tox] | ||
env_list = venv | ||
|
||
[testenv:venv] | ||
download = True | ||
deps = | ||
-r requirements.txt | ||
-r test-requirements.txt | ||
-r tests/requirements.txt | ||
allowlist_externals = | ||
mkdir | ||
ln | ||
commands = | ||
mkdir -p "{env_site_packages_dir}/ansible_collections/kubevirt" | ||
ln -sf "{tox_root}" "{env_site_packages_dir}/ansible_collections/kubevirt/core" | ||
ansible-galaxy collection install -r requirements.yml -p "{env_site_packages_dir}/ansible_collections" --force | ||
|
||
[testenv:format] | ||
deps = | ||
black | ||
commands = black . | ||
|