# HG changeset patch # User iuc # Date 1594080381 14400 # Node ID d6acd5cd497bc1222f539444c63fbce13955a976 # Parent bdd8632fa9fb724c3af919c335407f539c94db5a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 79946a95eb9a4c98fde04fa2cb3bc6a31a28e407" diff -r bdd8632fa9fb -r d6acd5cd497b data_manager/data_manager.py --- a/data_manager/data_manager.py Mon Jul 06 19:32:35 2020 -0400 +++ b/data_manager/data_manager.py Mon Jul 06 20:06:21 2020 -0400 @@ -5,7 +5,12 @@ import shutil import tarfile import zipfile -from urllib.request import Request, urlopen +try: + # For Python 3.0 and later + from urllib.request import Request, urlopen +except ImportError: + # Fall back to Python 2 imports + from urllib2 import Request, urlopen def url_download(url, workdir): diff -r bdd8632fa9fb -r d6acd5cd497b data_manager/ncbi_taxonomy_fetcher.xml --- a/data_manager/ncbi_taxonomy_fetcher.xml Mon Jul 06 19:32:35 2020 -0400 +++ b/data_manager/ncbi_taxonomy_fetcher.xml Mon Jul 06 20:06:21 2020 -0400 @@ -1,9 +1,6 @@ - + taxonomy downloader - - python - - - - - - - - - - Download a taxonomy dump from a provided URL. - The default URL is the latest dump from NCBI taxonomy. - diff -r bdd8632fa9fb -r d6acd5cd497b test-data/ncbi_taxonomy.loc --- a/test-data/ncbi_taxonomy.loc Mon Jul 06 19:32:35 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -# Tab separated fields where -# value is unique key -# name is descriptive name -# path is path to directory containing names.dmp and nodes.dmp files -#value name path diff -r bdd8632fa9fb -r d6acd5cd497b test-data/taxonomy.json --- a/test-data/taxonomy.json Mon Jul 06 19:32:35 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"data_tables": {"ncbi_taxonomy": {"name": "tax_name", "path": ".", "value": "tax_name"}}} \ No newline at end of file diff -r bdd8632fa9fb -r d6acd5cd497b tool-data/ncbi_taxonomy.loc.sample --- a/tool-data/ncbi_taxonomy.loc.sample Mon Jul 06 19:32:35 2020 -0400 +++ b/tool-data/ncbi_taxonomy.loc.sample Mon Jul 06 20:06:21 2020 -0400 @@ -2,4 +2,4 @@ # value is unique key # name is descriptive name # path is path to directory containing names.dmp and nodes.dmp files -#value name path +#value name path diff -r bdd8632fa9fb -r d6acd5cd497b tool_data_table_conf.xml.test --- a/tool_data_table_conf.xml.test Mon Jul 06 19:32:35 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - value, name, path - -
-