Skip to content

Commit 26e0126

Browse files
committed
fix tox environment
1 parent e31b3ae commit 26e0126

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sdks/python/apache_beam/yaml/json_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
from typing import Any
2626
from typing import Optional
2727

28-
import jsonschema
29-
3028
import apache_beam as beam
3129
from apache_beam.portability.api import schema_pb2
3230
from apache_beam.typehints import schemas
@@ -210,6 +208,7 @@ def json_parser(
210208
if json_schema is None:
211209
validate_fn = None
212210
else:
211+
import jsonschema
213212
cls = jsonschema.validators.validator_for(json_schema)
214213
cls.check_schema(json_schema)
215214
validate_fn = _PicklableFromConstructor(

sdks/python/tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ commands_post =
6868
commands = false {envname} is misconfigured
6969

7070
[testenv:py{39,310,311,312,313}]
71+
extras = interactive,yaml
7172
commands_pre =
7273
python --version
7374
pip --version
@@ -85,6 +86,7 @@ commands_pre =
8586
pip --version
8687
# pip check
8788
bash {toxinidir}/scripts/run_tox_cleanup.sh
89+
extras = interactive,yaml
8890
commands =
8991
python apache_beam/examples/complete/autocomplete_test.py
9092
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}"

0 commit comments

Comments
 (0)