From 3d554d344da35102d14ba360728c5b6c09a6639b Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Thu, 7 Sep 2023 16:59:24 -0700 Subject: [PATCH] sonic-yang-models: Specify test dependencies under extra_requires Newer versions of pip/setuptools don't support test_requires, and the current standard is to specify any extra dependencies (such as those required for testing) under extra_requires. Therefore, specify the testing dependencies under extra_requires. These can be installed via pip using `pip install '.[testing]'`. Signed-off-by: Saikrishna Arcot --- src/sonic-yang-models/setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sonic-yang-models/setup.py b/src/sonic-yang-models/setup.py index fae2d208b2..ff0160ee37 100644 --- a/src/sonic-yang-models/setup.py +++ b/src/sonic-yang-models/setup.py @@ -69,6 +69,12 @@ setup( 'pytest-runner', 'wheel' ], + extras_require = { + "testing": [ + 'pytest', + 'ijson==3.2.3' + ], + }, include_package_data=True, keywords='sonic-yang-models', name='sonic-yang-models',