Skip to content

Commit

Permalink
Update poetry to fix tomlkit issue (#1306) (#1310)
Browse files Browse the repository at this point in the history
* Update poetry to fix tomlkit issue (#1306)

* Update poetry to fix tomlkit issue

* tox: use pip to install poetry

* fix poetry.lock file

* poetry add pytest
  • Loading branch information
myakove authored Jul 27, 2023
1 parent d945790 commit f2acc4b
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 29 deletions.
85 changes: 74 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Download = "https://pypi.org/project/openshift-python-wrapper/"
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"


[tool.poetry.group.tests.dependencies]
pytest = "^7.4.0"

[tool.poetry-dynamic-versioning.substitution]
files = ["VERSION"]

Expand Down
34 changes: 16 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310,311}, unittests, validate-resources
envlist = py{38,39,310,311}, unittests, validate-resources, tests
skipsdist = True

[flake8]
Expand All @@ -16,35 +16,33 @@ setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
commands =
pip install pip -U
pip install .
pip install jinja2 PyYaml
pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
allowlist_externals =
poetry

[testenv:unittests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
commands =
pip install pip -U
pip install .
pytest -o log_cli=true tests/unittests
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/unittests
allowlist_externals =
poetry

[testenv:validate-resources]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
requests
commands =
pip install pip -U
pip install .
pytest tests/test_validate_resources.py
pip install poetry
poetry install
poetry run pytest tests/test_validate_resources.py
allowlist_externals =
poetry

0 comments on commit f2acc4b

Please sign in to comment.