From b4af739b35fd4edcc6c0dda33af98c3ff554e01e Mon Sep 17 00:00:00 2001 From: vuillaut <thomas.vuillaume@gmail.com> Date: Sun, 26 Sep 2021 17:46:59 +0200 Subject: [PATCH] adding method to get codemeta and json schema --- eossr/metadata/schema/__init__.py | 11 +++++++++++ setup.py | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 eossr/metadata/schema/__init__.py diff --git a/eossr/metadata/schema/__init__.py b/eossr/metadata/schema/__init__.py new file mode 100644 index 00000000..bbbc908a --- /dev/null +++ b/eossr/metadata/schema/__init__.py @@ -0,0 +1,11 @@ +import json +import pkg_resources + + +def codemeta(): + return json.load(pkg_resources.resource_stream(__name__, 'codemeta.json')) + + + +def zenodo(): + return json.load(pkg_resources.resource_stream(__name__, '.zenodo.json')) \ No newline at end of file diff --git a/setup.py b/setup.py index bc827db0..6ae6b459 100644 --- a/setup.py +++ b/setup.py @@ -29,8 +29,8 @@ setup( scripts=['eossr/scripts/parse_last_release_git.sh'], tests_require=['pytest'], author='Thomas Vuillaume & Enrique Garcia', - author_email='vuillaume<at>lapp.in2p3.fr', + author_email='vuillaume@lapp.in2p3.fr', url='https://gitlab.in2p3.fr/escape2020/wp3/eossr', license='MIT', - entry_points=entry_points + entry_points=entry_points, ) -- GitLab