# HG changeset patch # User iuc # Date 1622649985 0 # Node ID 112bb7a9da3c595cbc54779e09fca9ba456b2729 # Parent 3eac657893fef10a7442ec894715de6dad9a8c60 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_pangolearn commit 1f7b91c7bbd72d30ab47c64d0796ce9825edcaf9" diff -r 3eac657893fe -r 112bb7a9da3c data_manager/pangolearn_dm.py --- a/data_manager/pangolearn_dm.py Sat Apr 24 20:56:04 2021 +0000 +++ b/data_manager/pangolearn_dm.py Wed Jun 02 16:06:25 2021 +0000 @@ -93,7 +93,7 @@ parser.add_argument("--start_date", type=parse_date) parser.add_argument("--end_date", type=parse_date) parser.add_argument("--overwrite", default=False, action="store_true") - parser.add_argument('--pangolearn_format_version', default="1.0") + parser.add_argument('--pangolearn_format_version') parser.add_argument("datatable_name") parser.add_argument("galaxy_datamanager_filename") args = parser.parse_args() @@ -139,11 +139,20 @@ ] for release in releases_to_download: tag = download_and_unpack(release["tarball_url"], output_directory) + release_date = parse_date(tag) + if args.pangolearn_format_version is not None: + version = args.pangolearn_format_version + else: + # 2021-05-27 was the first release of pangoLEARN for pangolin 3, which changed DB format + if release_date >= datetime.datetime(2021, 5, 27): + version = '3.0' + else: + version = '1.0' data_manager_dict["data_tables"][args.datatable_name].append( dict( value=tag, description=release["name"], - format_version=args.pangolearn_format_version, + format_version=version, path=output_directory + "/" + tag, ) ) diff -r 3eac657893fe -r 112bb7a9da3c data_manager/pangolearn_dm.xml --- a/data_manager/pangolearn_dm.xml Sat Apr 24 20:56:04 2021 +0000 +++ b/data_manager/pangolearn_dm.xml Wed Jun 02 16:06:25 2021 +0000 @@ -50,9 +50,22 @@ + + + + + + + + + + + + +