Skip to content

Commit

Permalink
default install extra for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yokomotod committed Dec 14, 2023
1 parent 6ef8a91 commit eae624f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ fakeredis = "*"
mypy = "*"
types-redis = "*"

# for dev, extra is installed by default
[tool.poetry.group.dev-gcs]
[tool.poetry.group.dev-gcs.dependencies]
google-api-python-client = "*"
[tool.poetry.group.dev-s3]
optional = true
[tool.poetry.group.dev-s3.dependencies]
moto = "*"

Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ isolated_build = true
allowlist_externals = poetry, pytest
skip_install = true
commands =
s3: poetry install -E s3 --with=dev-s3
s3: poetry install -E s3 --without=dev-gcs
s3: pytest -v -m "s3"

gcs: poetry install -E gcs
gcs: poetry install -E gcs --without=dev-gcs
gcs: pytest -v -m "gcs"

core: poetry install --without=dev-s3 --without=dev-gcs
core: pytest -v -m "not gcs and not s3"

[testenv:yapf]
Expand Down

0 comments on commit eae624f

Please sign in to comment.