Add poetry extra install to tox config to support CI

This commit is contained in:
Ethan Paul 2020-12-04 22:28:27 -05:00
parent 5a23c05f17
commit db761d49c1
No known key found for this signature in database
GPG Key ID: C5F5542B54A4D9C6
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,8 @@ skip_missing_interpreters = true
[testenv]
description = Run the tests
require_locked_deps = true
extras =
poetry
locked_deps =
pytest
pytest-cov

View File

@ -157,6 +157,9 @@ def find_project_dependencies(
extra_dependencies: List[PoetryPackage] = []
for extra in venv.envconfig.extras:
reporter.verbosity1(
f"{constants.REPORTER_PREFIX} Processing project extra '{extra}'"
)
try:
extra_dependencies += [
packages[item.name] for item in poetry.package.extras[extra]