Skip to content

Commit 5a7966d

Browse files
committed
fix: Remove poetry 1.x config setting and flags
1 parent 62b1aa9 commit 5a7966d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ endif
6060

6161
$(setup_tag): $(pre_deps_tag) pyproject.toml
6262
@echo "==Setting up package environment=="
63-
poetry config virtualenvs.prefer-active-python true
64-
poetry lock --no-update
65-
poetry install --with unit --no-cache
63+
poetry lock
64+
poetry install --with unit
6665
touch $(setup_tag)
6766

6867
setup: $(setup_tag)

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ passenv =
2626
[testenv:fmt]
2727
description = Apply coding style standards to code
2828
commands =
29-
poetry install --only fmt --sync --no-cache
29+
poetry install --only fmt
3030
poetry run isort {[vars]all_path}
3131
poetry run black {[vars]all_path}
3232

3333
[testenv:lint]
3434
description = Check code against coding style standards
3535
commands =
36-
poetry install --only fmt,lint --sync --no-cache
36+
poetry install --only fmt,lint
3737
poetry run codespell {[vars]all_path} pyproject.toml
3838
poetry run flake8 {[vars]all_path}
3939
poetry run isort --check-only --diff {[vars]all_path}
@@ -43,7 +43,7 @@ commands =
4343
[testenv:unit]
4444
description = Run unit tests
4545
commands =
46-
poetry install --with unit --sync --no-cache
46+
poetry install --with unit
4747
poetry export -f requirements.txt -o requirements.txt
4848
poetry run pytest -vv tests/unittest
4949

@@ -53,7 +53,7 @@ setenv =
5353
IE_TEST=1
5454
KUBECONFIG={env:HOME}/.kube/config
5555
commands =
56-
poetry install --with integration --sync --no-cache
56+
poetry install --with integration
5757
poetry export -f requirements.txt -o requirements.txt
5858
poetry run pytest -vv tests/integration
5959

@@ -63,6 +63,6 @@ setenv =
6363
IE_TEST=1
6464
KUBECONFIG={env:HOME}/.kube/config
6565
commands =
66-
poetry install --with unit,integration --sync --no-cache
66+
poetry install --with unit,integration
6767
poetry export -f requirements.txt -o requirements.txt
6868
poetry run pytest tests

0 commit comments

Comments
 (0)