mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-07 19:05:06 +02:00
🤪 modstool: Fiddle with the damn packaging/namespace so that stuff works
This commit is contained in:
parent
5773b9c9b1
commit
d885d6bfa2
3 changed files with 6 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
__import__('pkg_resources').declare_namespace(__name__)
|
from .modstool import *
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
from qurator.modstool.modstool import mods_to_dict, flatten
|
|
||||||
import pytest
|
import pytest
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
|
|
||||||
|
from .. import mods_to_dict, flatten
|
||||||
|
|
||||||
|
|
||||||
def dict_fromstring(x):
|
def dict_fromstring(x):
|
||||||
"""Helper function to parse a MODS XML string to a flattened dict"""
|
"""Helper function to parse a MODS XML string to a flattened dict"""
|
||||||
return flatten(mods_to_dict(ET.fromstring(x)))
|
return flatten(mods_to_dict(ET.fromstring(x)))
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -13,8 +13,8 @@ setup(
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
keywords='qurator mets mots library',
|
keywords='qurator mets mots library',
|
||||||
license='Apache',
|
license='Apache',
|
||||||
packages=find_packages(exclude=['*.tests', '*.tests.*',
|
namespace_packages=['qurator'],
|
||||||
'tests.*', 'tests']),
|
packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']),
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue