From 1d2c5e2d104b7d45a3621b28f93233e147d19b54 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Mon, 4 Jul 2022 18:58:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Rename=20modstool.py=20to=20mods?= =?UTF-8?q?4pandas.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/modstool/lib.py | 4 ++-- qurator/modstool/{modstool.py => mods4pandas.py} | 0 qurator/modstool/tests/test_mets.py | 2 +- qurator/modstool/tests/test_modstool.py | 2 +- setup.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename qurator/modstool/{modstool.py => mods4pandas.py} (100%) diff --git a/qurator/modstool/lib.py b/qurator/modstool/lib.py index 1eba0f9..b611820 100644 --- a/qurator/modstool/lib.py +++ b/qurator/modstool/lib.py @@ -164,7 +164,7 @@ class TagGroup: return self def merge_sub_tags_to_set(self): - from .modstool import mods_to_dict + from .mods4pandas import mods_to_dict value = {} sub_dicts = [mods_to_dict(e) for e in self.group] @@ -254,7 +254,7 @@ def sorted_groupby(iterable, key=None): def _to_dict(root, raise_errors): - from .modstool import mods_to_dict, mets_to_dict + from .mods4pandas import mods_to_dict, mets_to_dict from .alto4pandas import alto_to_dict root_name = ET.QName(root.tag) diff --git a/qurator/modstool/modstool.py b/qurator/modstool/mods4pandas.py similarity index 100% rename from qurator/modstool/modstool.py rename to qurator/modstool/mods4pandas.py diff --git a/qurator/modstool/tests/test_mets.py b/qurator/modstool/tests/test_mets.py index 6462050..e6e6fb0 100644 --- a/qurator/modstool/tests/test_mets.py +++ b/qurator/modstool/tests/test_mets.py @@ -1,7 +1,7 @@ from lxml import etree as ET -from qurator.modstool.modstool import mets_to_dict +from qurator.modstool.mods4pandas import mets_to_dict from qurator.modstool.lib import flatten diff --git a/qurator/modstool/tests/test_modstool.py b/qurator/modstool/tests/test_modstool.py index 34ccd5e..ec96439 100644 --- a/qurator/modstool/tests/test_modstool.py +++ b/qurator/modstool/tests/test_modstool.py @@ -3,7 +3,7 @@ from lxml import etree as ET import pytest -from qurator.modstool.modstool import mods_to_dict +from qurator.modstool.mods4pandas import mods_to_dict from qurator.modstool.lib import flatten diff --git a/setup.py b/setup.py index 5d00a1b..31affb5 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( install_requires=install_requires, entry_points={ 'console_scripts': [ - 'mods4pandas=qurator.modstool.modstool:main', + 'mods4pandas=qurator.modstool.mods4pandas:main', 'alto4pandas=qurator.modstool.alto4pandas:main', ] },