Skip to content

Commit 5bf2bc0

Browse files
authored
Merge pull request #21 from Haigutus/dev_rdfs
Still import issues, making all init imports relative
2 parents f4e57d9 + 2213914 commit 5bf2bc0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/generate-documentation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python3 -m pip install --upgrade pip
26-
python3 -m pip install sphinx sphinx-rtd-theme sphinxcontrib-napoleon sphinx-multiversion
26+
python3 -m pip install sphinx sphinx-rtd-theme sphinxcontrib-napoleon sphinx-multiversion myst-parser
2727
python3 -m pip install lxml pandas aniso8601
2828
2929
- name: Build Sphinx docs

triplets/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Import modules explicitly for package namespace
2-
from triplets import cgmes_tools
3-
from triplets import rdf_parser
4-
from triplets import export_schema
5-
from triplets import rdfs_tools
2+
from . import cgmes_tools
3+
from . import rdf_parser
4+
from . import export_schema
5+
from . import rdfs_tools
66

77
__all__ = [
88
'cgmes_tools',
@@ -11,6 +11,6 @@
1111
'rdfs_tools'
1212
]
1313

14-
from triplets._version import get_versions
14+
from ._version import get_versions
1515
__version__ = get_versions()['version']
1616
del get_versions

triplets/rdfs_tools/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from triplets.rdfs_tools import rdfs_tools
2-
from triplets.rdfs_tools import cim_rdfs_to_json
3-
from triplets.rdfs_tools import cim_rdfs_to_html
1+
from . import rdfs_tools
2+
from . import cim_rdfs_to_json
3+
from . import cim_rdfs_to_html
44

55
__all__ = [
66
"rdfs_tools",

0 commit comments

Comments
 (0)