@@ -171,7 +171,6 @@ def run_docker_upload_cmd(cmd_arr, all_files_dir, name, version):
171
171
'''
172
172
Wrapper for 'docker run'. This one is focused on uploads.
173
173
'''
174
- print ('Preparing upload...' )
175
174
env = os .environ .copy ()
176
175
docker_run = ['docker' , 'run' , '--rm' , '-v' , f"{ env ['PWD' ]} /local/{ all_files_dir } :/tmp" , '-e' , f"VERSION={ version } " ]
177
176
@@ -225,6 +224,8 @@ def compress_file(file_path):
225
224
if args .docker or args .all :
226
225
process_docker ()
227
226
227
+ print ("Docker image generation completed" )
228
+
228
229
229
230
### Build Drugs files, Samples files, and Genes file. These two steps are run in Parallel.
230
231
### Within each step, sequential running is required.
@@ -243,6 +244,8 @@ def compress_file(file_path):
243
244
sample_thread .result ()
244
245
if args .samples or args .omics or args .exp or args .all :
245
246
gene_thread .result ()
247
+
248
+ print ("All samples, drugs files, and genes file completed" )
246
249
247
250
248
251
### 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):
261
264
exp_thread .result ()
262
265
263
266
267
+ print ("All omics and experiments files completed" )
268
+
264
269
######
265
270
### Begin Upload
266
271
#####
@@ -307,7 +312,9 @@ def compress_file(file_path):
307
312
datasets_list = args .datasets .split (',' )
308
313
schema_check_command = ['python3' , 'scripts/check_all_schemas.py' , '--datasets' ] + datasets_list
309
314
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
+
311
318
# Compress or decompress files based on specific conditions after checking
312
319
for file in glob (os .path .join (all_files_dir , '*' )):
313
320
is_compressed = file .endswith ('.gz' )
@@ -325,7 +332,6 @@ def compress_file(file_path):
325
332
326
333
# Upload to PyPI using Docker
327
334
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')]
329
335
pypi_command = ['python3' , 'scripts/push_to_pypi.py' , '-y' , '/tmp/figshare_latest.yml' , '-d' , 'coderdata/download/downloader.py' , "-v" , args .version ]
330
336
run_docker_upload_cmd (pypi_command , 'all_files_dir' , 'PyPI' , args .version )
331
337
0 commit comments