# HG changeset patch # User iuc # Date 1594080359 0 # Node ID cef5c909ccb83dd00829f6131793b95362171a65 # Parent f7b443a73374ba1ff8e232edbe1f54836888cbfc "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 79946a95eb9a4c98fde04fa2cb3bc6a31a28e407" diff -r f7b443a73374 -r cef5c909ccb8 data_manager/data_manager.py --- a/data_manager/data_manager.py Mon Jul 06 23:29:44 2020 +0000 +++ b/data_manager/data_manager.py Tue Jul 07 00:05:59 2020 +0000 @@ -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 f7b443a73374 -r cef5c909ccb8 data_manager/ncbi_taxonomy_fetcher.xml --- a/data_manager/ncbi_taxonomy_fetcher.xml Mon Jul 06 23:29:44 2020 +0000 +++ b/data_manager/ncbi_taxonomy_fetcher.xml Tue Jul 07 00:05:59 2020 +0000 @@ -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 f7b443a73374 -r cef5c909ccb8 test-data/ncbi_taxonomy.loc --- a/test-data/ncbi_taxonomy.loc Mon Jul 06 23:29:44 2020 +0000 +++ /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 f7b443a73374 -r cef5c909ccb8 test-data/taxonomy.json --- a/test-data/taxonomy.json Mon Jul 06 23:29:44 2020 +0000 +++ /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 f7b443a73374 -r cef5c909ccb8 tool-data/ncbi_taxonomy.loc.sample --- a/tool-data/ncbi_taxonomy.loc.sample Mon Jul 06 23:29:44 2020 +0000 +++ b/tool-data/ncbi_taxonomy.loc.sample Tue Jul 07 00:05:59 2020 +0000 @@ -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 f7b443a73374 -r cef5c909ccb8 tool_data_table_conf.xml.test --- a/tool_data_table_conf.xml.test Mon Jul 06 23:29:44 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - value, name, path - -
-