Commit 24320e80 authored by Pinar Alper's avatar Pinar Alper
Browse files

Bumpversion config added

parent fbd3c4e1
[bumpversion]
commit = True
tag = True
current_version = 0.1.0-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:elixir_dcp/__init__.py]
[bumpversion:file:README.md]
[bumpversion:file:elixir_dcp/static/vendor/package.json]
[bumpversion:part:release]
optional_value = gamma
values =
dev
gamma
......@@ -7,15 +7,15 @@ from metadata_tools.importxls.export_utils import get_value_list_from_row, proce
class FromOwncohortXlsExporter(DatasetExporter):
def export(self, full_file_path):
submission_id = 'IMP_OC_{}'.format(self.get_hash_for_path(full_file_path))
#submission_id = 'IMP_OC_{}'.format(self.get_hash_for_path(full_file_path))
book = pyexcel.get_book(file_name=full_file_path)
idx = 1
print('----> {}'.format(full_file_path))
while idx < book.number_of_sheets():
sheet = book.sheet_by_index(idx)
dataset_data = {}
dataset_data['source_type'] = 'Own_Cohort'
dataset_data['submission_id'] = submission_id
#dataset_data['source_type'] = 'Own_Cohort'
dataset_data['dataset'] = submission_id
dataset_data['local_custodian'] = get_value_list_from_row(sheet, 3)
dataset_data['title'] = sheet[4, 2]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment