ghga-transpiler 1.2.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ghga_transpiler/__init__.py +10 -1
- ghga_transpiler/cli.py +21 -6
- ghga_transpiler/config/config.py +17 -18
- ghga_transpiler/core.py +21 -11
- ghga_transpiler/io.py +4 -5
- ghga_transpiler/transformations.py +22 -1
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/METADATA +18 -15
- ghga_transpiler-2.0.0.dist-info/RECORD +16 -0
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/WHEEL +1 -1
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/top_level.txt +0 -2
- ghga_transpiler/configs/0.10.0.yaml +0 -109
- ghga_transpiler/configs/1.0.0.yaml +0 -109
- ghga_transpiler/configs/1.1.0.yaml +0 -109
- ghga_transpiler-1.2.0.dist-info/RECORD +0 -34
- scripts/__init__.py +0 -17
- scripts/get_package_name.py +0 -46
- scripts/license_checker.py +0 -562
- scripts/script_utils/__init__.py +0 -17
- scripts/script_utils/cli.py +0 -36
- scripts/update_all.py +0 -51
- scripts/update_config_docs.py +0 -158
- scripts/update_readme.py +0 -221
- scripts/update_template_files.py +0 -250
- tests/fixtures/__init__.py +0 -16
- tests/fixtures/configs/0.0.0.yaml +0 -16
- tests/fixtures/configs/__init__.py +0 -15
- tests/fixtures/test_data_objects/__init__.py +0 -16
- tests/fixtures/test_data_objects/conversion_data.py +0 -43
- tests/fixtures/utils.py +0 -33
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/LICENSE +0 -0
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
|
|
2
|
-
# for the German Human Genome-Phenome Archive (GHGA)
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
"""Data that are used in unit tests"""
|
|
18
|
-
|
|
19
|
-
EXPECTED_CONVERSION = {
|
|
20
|
-
"books": [
|
|
21
|
-
{
|
|
22
|
-
"writer_name": "Albert Camus",
|
|
23
|
-
"book_name": "The Plague",
|
|
24
|
-
"isbn": "9780679720218",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"writer_name": "George Orwell",
|
|
28
|
-
"book_name": "1984",
|
|
29
|
-
"isbn": "9783548234106",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
"publisher": [
|
|
33
|
-
{
|
|
34
|
-
"isbn": "9780679720218",
|
|
35
|
-
"publisher_names": ["Hamish Hamilton", "Stephen King"],
|
|
36
|
-
"attributes": [
|
|
37
|
-
{"key": "page", "value": "100"},
|
|
38
|
-
{"key": "cover", "value": "paperback"},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
{"isbn": "9783548234106", "publisher_names": ["Secker and Warburg"]},
|
|
42
|
-
],
|
|
43
|
-
}
|
tests/fixtures/utils.py
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
|
|
2
|
-
# for the German Human Genome-Phenome Archive (GHGA)
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
|
|
16
|
-
"""Utils for Fixture handling"""
|
|
17
|
-
|
|
18
|
-
from pathlib import Path
|
|
19
|
-
|
|
20
|
-
from openpyxl import Workbook
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def get_project_root() -> Path:
|
|
24
|
-
"""Function to get project root dir"""
|
|
25
|
-
return Path(__file__).absolute().parent.parent.parent
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
def create_workbook(*args) -> Workbook:
|
|
29
|
-
"""Function to create workbook with sheets"""
|
|
30
|
-
workbook = Workbook()
|
|
31
|
-
for arg in args:
|
|
32
|
-
workbook.create_sheet(arg)
|
|
33
|
-
return workbook
|
|
File without changes
|
|
File without changes
|