From 0155e709ae30604a36303e63efb055e128138ea1 Mon Sep 17 00:00:00 2001 From: Dragon-Git <1762578117@qq.com> Date: Mon, 8 Jan 2024 05:23:29 +0000 Subject: [PATCH] [uvmgen] fixed ci --- pyproject.toml | 4 ++-- src/uvmgen/uvmgen.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 031556f..c0a9ab3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,9 +14,9 @@ requires-python = ">=3.8" dependencies = [ "fire==0.5.0", "Mako==1.3.0", - "PyYAML==6.0.0", + "PyYAML==6.0.1", "xmltodict==0.13.0", - "tomllib; python_version<'3.11'", + "tomlli==2.0.0", ] keywords = [ "verification", "testbench", "UVM", "template", "tool", "generator", diff --git a/src/uvmgen/uvmgen.py b/src/uvmgen/uvmgen.py index babdea8..10495e7 100644 --- a/src/uvmgen/uvmgen.py +++ b/src/uvmgen/uvmgen.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -import tomllib +import tomli import fire import json import yaml @@ -30,7 +30,7 @@ def _load_file_data_yaml(fin): def _load_file_data_toml(fin): """load data in toml format;""" - return tomllib.load(fin) + return tomli.load(fin) class UVMGen: