Skip to content

Commit b61a04c

Browse files
committed
clean up
1 parent c673555 commit b61a04c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build/build_all.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def run_docker_upload_cmd(cmd_arr, all_files_dir, name, version):
171171
'''
172172
Wrapper for 'docker run'. This one is focused on uploads.
173173
'''
174-
print('Preparing upload...')
175174
env = os.environ.copy()
176175
docker_run = ['docker', 'run', '--rm', '-v', f"{env['PWD']}/local/{all_files_dir}:/tmp", '-e', f"VERSION={version}"]
177176

@@ -225,6 +224,8 @@ def compress_file(file_path):
225224
if args.docker or args.all:
226225
process_docker()
227226

227+
print("Docker image generation completed")
228+
228229

229230
### Build Drugs files, Samples files, and Genes file. These two steps are run in Parallel.
230231
### Within each step, sequential running is required.
@@ -243,6 +244,8 @@ def compress_file(file_path):
243244
sample_thread.result()
244245
if args.samples or args.omics or args.exp or args.all:
245246
gene_thread.result()
247+
248+
print("All samples, drugs files, and genes file completed")
246249

247250

248251
### At this point in the pipeline, all samples and drugs files have been created. There are no blockers to proceed.
@@ -261,6 +264,8 @@ def compress_file(file_path):
261264
exp_thread.result()
262265

263266

267+
print("All omics and experiments files completed")
268+
264269
######
265270
### Begin Upload
266271
#####
@@ -307,7 +312,9 @@ def compress_file(file_path):
307312
datasets_list = args.datasets.split(',')
308313
schema_check_command = ['python3', 'scripts/check_all_schemas.py', '--datasets'] + datasets_list
309314
run_docker_upload_cmd(schema_check_command, 'all_files_dir', 'validate', args.version)
310-
315+
316+
print("Validation complete. Proceeding with file compression/decromession adjustments")
317+
311318
# Compress or decompress files based on specific conditions after checking
312319
for file in glob(os.path.join(all_files_dir, '*')):
313320
is_compressed = file.endswith('.gz')
@@ -325,7 +332,6 @@ def compress_file(file_path):
325332

326333
# Upload to PyPI using Docker
327334
if args.pypi and args.version and pypi_token:
328-
# pypi_command = ['python3', 'setup.py', 'sdist', 'bdist_wheel', '&&', 'twine', 'upload', 'dist/*', '--verbose', '-u', '__token__', '-p', os.getenv('PYPI_TOKEN')]
329335
pypi_command = ['python3', 'scripts/push_to_pypi.py', '-y', '/tmp/figshare_latest.yml', '-d', 'coderdata/download/downloader.py', "-v", args.version]
330336
run_docker_upload_cmd(pypi_command, 'all_files_dir', 'PyPI', args.version)
331337

0 commit comments

Comments
 (0)