Skip to content

Commit

Permalink
refactor(version_card): use tomli instead of toml
Browse files Browse the repository at this point in the history
to be inline with #888
  • Loading branch information
dfguerrerom committed Oct 5, 2023
1 parent 01f6ffe commit 5f9788d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sepal_ui/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import httplib2
import ipyvuetify as v
import requests
import toml
import tomli
from anyascii import anyascii
from deprecated.sphinx import deprecated, versionadded
from matplotlib import colors as c
Expand Down Expand Up @@ -388,8 +388,8 @@ def get_app_version(repo_folder: Pathlike = Path.cwd()) -> str:

# check if the file exist
if pyproject_path.exists():
# read the file using toml
pyproject = toml.loads(pyproject_path.read_text())
# read the file using tomli
pyproject = tomli.loads(pyproject_path.read_text())

# get the version
return pyproject.get("project", {}).get("version", None)
Expand Down

0 comments on commit 5f9788d

Please sign in to comment.