diff --git a/.github/workflows/try_parser.py b/.github/workflows/try_parser.py index 61fba9a2cd..46095c95dc 100644 --- a/.github/workflows/try_parser.py +++ b/.github/workflows/try_parser.py @@ -1,5 +1,3 @@ -from tox.config.source.ini import IniSource -from tox.config.types import EnvList from pathlib import Path from tox.config.cli.parse import get_options from tox.session.state import State @@ -12,22 +10,15 @@ "/home/tigre/github/ocelotl/opentelemetry-python-contrib/tox.ini" ) -ini_source = IniSource( - Path("/home/tigre/github/ocelotl/opentelemetry-python-contrib/tox.ini") -) - tox_ini = ToxIni(tox_ini_path) state = State(get_options(), []) conf = state.conf -tox_section = [section for section in ini_source.sections()][0] - -tox_section_loader = ini_source.get_loader(tox_section, {}) - -# converted = tox_section_loader.load("envlist", EnvList, None, conf, raw, args) +tox_section = [section for section in tox_ini.sections()][0] +tox_section_loader = tox_ini.get_loader(tox_section, {}) raw = tox_section_loader.load_raw("envlist", conf, None)