Skip to content

Commit 811a67a

Browse files
authored
Merge pull request #889 from mvdbeek/sync_galaxy_xsd
Sync galaxy xsd and fix tests
2 parents 7569eb3 + 9310902 commit 811a67a

9 files changed

Lines changed: 32 additions & 21 deletions

File tree

planemo/training/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .tutorial import Tutorial
66

77

8-
class Training:
8+
class Training(object):
99
"""Class to describe a training."""
1010

1111
def __init__(self, kwds):

planemo/training/tool_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
SPACE = ' '
2424

2525

26-
class ToolInput():
26+
class ToolInput(object):
2727
"""Class to describe a tool input / parameter and its value from a workflow."""
2828

2929
def __init__(self, tool_inp_desc, wf_param_values, wf_steps, level, should_be_there=False, force_default=False):

planemo/training/topic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"""
7373

7474

75-
class Topic:
75+
class Topic(object):
7676
"""Class to describe a training topic."""
7777

7878
def __init__(self, name="new_topic", target="use", title="The new topic", summary="Summary", parent_dir="topics"):

planemo/training/tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"""
192192

193193

194-
class Tutorial:
194+
class Tutorial(object):
195195
"""Class to describe a training tutorial."""
196196

197197
def __init__(self, training, topic, name="new_tuto", title="The new tutorial", zenodo_link=""):

planemo/training/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import oyaml as yaml
66

77

8-
class Requirement:
8+
class Requirement(object):
99
"""Class to describe a training requirement."""
1010

1111
def __init__(self, title="", req_type="internal", link="/introduction/"):
@@ -29,7 +29,7 @@ def export_to_ordered_dict(self):
2929
return req
3030

3131

32-
class Reference:
32+
class Reference(object):
3333
"""Class to describe a training reference."""
3434

3535
def __init__(self, authors="authors et al", title="the title", link="link", summary="Why this reference is useful"):

planemo/virtualenv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from galaxy.tools.deps.commands import which
1010

1111

12-
DEFAULT_PYTHON_VERSION = "2.7"
12+
DEFAULT_PYTHON_VERSION = os.environ.get("PLANEMO_DEFAULT_PYTHON_VERSION", "2.7")
1313

1414

1515
def create_and_exit(virtualenv_path, **kwds):

planemo/xml/xsd/tool/galaxy.xsd

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Read more about configuring Galaxy to run Docker jobs
347347
</xs:attribute>
348348
<xs:attribute name="split_inputs" type="xs:string">
349349
<xs:annotation>
350-
<xs:documentation xml:lang="en">A comma separated list of data inputs to split for job parallelization.</xs:documentation>
350+
<xs:documentation xml:lang="en">A comma-separated list of data inputs to split for job parallelization.</xs:documentation>
351351
</xs:annotation>
352352
</xs:attribute>
353353
<xs:attribute name="split_size" type="xs:string">
@@ -362,7 +362,7 @@ Read more about configuring Galaxy to run Docker jobs
362362
</xs:attribute>
363363
<xs:attribute name="shared_inputs" type="xs:string">
364364
<xs:annotation>
365-
<xs:documentation xml:lang="en">A comma separated list of data inputs that should not be split for this tool, Galaxy will infer this if not present and so this potentially never needs to be set.</xs:documentation>
365+
<xs:documentation xml:lang="en">A comma-separated list of data inputs that should not be split for this tool, Galaxy will infer this if not present and so this potentially never needs to be set.</xs:documentation>
366366
</xs:annotation>
367367
</xs:attribute>
368368
</xs:complexType>
@@ -1074,6 +1074,11 @@ referenced input dataset. This is only valid if the corresponding parameter is
10741074
of ``type`` ``data``.</xs:documentation>
10751075
</xs:annotation>
10761076
</xs:attribute>
1077+
<xs:attribute name="tags" type="xs:string">
1078+
<xs:annotation>
1079+
<xs:documentation xml:lang="en">Comma separated list of tags to apply to the dataset (only works for elements of collections - e.g. ``element`` XML tags).</xs:documentation>
1080+
</xs:annotation>
1081+
</xs:attribute>
10771082
</xs:complexType>
10781083
<xs:complexType name="TestCompositeData">
10791084
<xs:annotation>
@@ -1102,6 +1107,11 @@ non-optional composite inputs must be specified as part of the ``param``.
11021107
<xs:documentation xml:lang="en">Type of collection to create.</xs:documentation>
11031108
</xs:annotation>
11041109
</xs:attribute>
1110+
<xs:attribute name="tags" type="xs:string">
1111+
<xs:annotation>
1112+
<xs:documentation xml:lang="en">Comma separated list of tags to apply to the dataset (only works for elements of collections - e.g. ``element`` XML tags).</xs:documentation>
1113+
</xs:annotation>
1114+
</xs:attribute>
11051115
</xs:complexType>
11061116
<xs:complexType name="TestOutput">
11071117
<xs:annotation>
@@ -2350,7 +2360,7 @@ file. Use the file extension.</xs:documentation>
23502360
This is only valid if ``type`` is ``data_collection``. Restrict the kind of
23512361
collection that can be consumed by this parameter (e.g. ``paired``,
23522362
``list:paired``, ``list``). Multiple such collection types can be specified here
2353-
as a comma separated list.
2363+
as a comma-separated list.
23542364
23552365
]]></xs:documentation>
23562366
</xs:annotation>

requirements.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
aenum
22
BeautifulSoup4
3+
bioblend>=0.10.0
34
Click
45
configparser
5-
six>=1.7.0
6-
pyaml
7-
pyyaml
8-
oyaml
9-
bioblend>=0.10.0
6+
cwltool==1.0.20180820141117
107
docutils
11-
jinja2
12-
glob2
13-
virtualenv
14-
lxml
15-
gxformat2>=0.2.0
168
ephemeris>=0.8
179
galaxy-lib>=18.5.15
10+
glob2
11+
gxformat2>=0.2.0
1812
html5lib>=0.9999999,!=0.99999999,!=0.999999999,!=1.0b10,!=1.0b09
19-
cwltool==1.0.20180820141117
13+
jinja2
14+
lxml
15+
oyaml
16+
pyaml
17+
pyyaml
18+
six>=1.7.0
19+
virtualenv

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ setenv =
2020
quick: PLANEMO_SKIP_GALAXY_TESTS=1
2121
py27: PLANEMO_SKIP_PYTHON3=1
2222
py36: PLANEMO_SKIP_PYTHON2=1
23+
py36: PLANEMO_DEFAULT_PYTHON_VERSION=3
2324
gx: NOSE_ATTR=tests_galaxy_branch
2425
master: PLANEMO_TEST_GALAXY_BRANCH=master
2526
dev: PLANEMO_TEST_GALAXY_BRANCH=dev

0 commit comments

Comments
 (0)