Skip to content

Commit

Permalink
Fix dependencies tomli/tomllib for py 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Jul 12, 2023
1 parent 90f1a45 commit 28b827a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies = [
"pyLODE < 3.0.0",
"pyshacl >= 0.18.1",
"rdflib >= 6.1.1",
"tomli>=1.1.0; python_version < '3.11'",
]

#dynamic = ["version", "readme"]
Expand Down
7 changes: 6 additions & 1 deletion src/voc4cat/config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# This module is used to share the configuration in across voc4cat.

import sys
from pathlib import Path

import tomllib
from curies import Converter
from rdflib import Graph
from rdflib.namespace import NamespaceManager

if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib

VOCAB_TITLE = ""
CONFIG_FILE = Path("idranges.toml").resolve()

Expand Down

0 comments on commit 28b827a

Please sign in to comment.