Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 11, 2024
1 parent b6feaca commit 8db62fd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/try_parser.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 8db62fd

Please sign in to comment.