Skip to content

Commit 8e96864

Browse files
committed
Refactor galaxy modules ....
- planemo.galaxy_test -> planemo.galaxy.test - planemo.galaxy_config -> planemo.galaxy.config - planemo.galaxy_run -> planemo.galaxy.run - planemo.galaxy_serve -> planemo.galaxy.serve
1 parent 2cf30e3 commit 8e96864

24 files changed

+138
-65
lines changed

docs/planemo.galaxy.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
planemo.galaxy package
2+
======================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
planemo.galaxy.test
10+
11+
Submodules
12+
----------
13+
14+
planemo.galaxy.config module
15+
----------------------------
16+
17+
.. automodule:: planemo.galaxy.config
18+
:members:
19+
:undoc-members:
20+
:show-inheritance:
21+
22+
planemo.galaxy.profiles module
23+
------------------------------
24+
25+
.. automodule:: planemo.galaxy.profiles
26+
:members:
27+
:undoc-members:
28+
:show-inheritance:
29+
30+
planemo.galaxy.run module
31+
-------------------------
32+
33+
.. automodule:: planemo.galaxy.run
34+
:members:
35+
:undoc-members:
36+
:show-inheritance:
37+
38+
planemo.galaxy.serve module
39+
---------------------------
40+
41+
.. automodule:: planemo.galaxy.serve
42+
:members:
43+
:undoc-members:
44+
:show-inheritance:
45+
46+
47+
Module contents
48+
---------------
49+
50+
.. automodule:: planemo.galaxy
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
planemo.galaxy_test package
1+
planemo.galaxy.test package
22
===========================
33

44
Submodules
55
----------
66

7-
planemo.galaxy_test.actions module
7+
planemo.galaxy.test.actions module
88
----------------------------------
99

10-
.. automodule:: planemo.galaxy_test.actions
10+
.. automodule:: planemo.galaxy.test.actions
1111
:members:
1212
:undoc-members:
1313
:show-inheritance:
1414

15-
planemo.galaxy_test.structures module
15+
planemo.galaxy.test.structures module
1616
-------------------------------------
1717

18-
.. automodule:: planemo.galaxy_test.structures
18+
.. automodule:: planemo.galaxy.test.structures
1919
:members:
2020
:undoc-members:
2121
:show-inheritance:
@@ -24,7 +24,7 @@ planemo.galaxy_test.structures module
2424
Module contents
2525
---------------
2626

27-
.. automodule:: planemo.galaxy_test
27+
.. automodule:: planemo.galaxy.test
2828
:members:
2929
:undoc-members:
3030
:show-inheritance:

docs/planemo.rst

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Subpackages
88

99
planemo.commands
1010
planemo.cwl
11-
planemo.galaxy_test
11+
planemo.galaxy
1212
planemo.linters
1313
planemo.reports
1414
planemo.shed
@@ -58,30 +58,6 @@ planemo.exit_codes module
5858
:undoc-members:
5959
:show-inheritance:
6060

61-
planemo.galaxy_config module
62-
----------------------------
63-
64-
.. automodule:: planemo.galaxy_config
65-
:members:
66-
:undoc-members:
67-
:show-inheritance:
68-
69-
planemo.galaxy_run module
70-
-------------------------
71-
72-
.. automodule:: planemo.galaxy_run
73-
:members:
74-
:undoc-members:
75-
:show-inheritance:
76-
77-
planemo.galaxy_serve module
78-
---------------------------
79-
80-
.. automodule:: planemo.galaxy_serve
81-
:members:
82-
:undoc-members:
83-
:show-inheritance:
84-
8561
planemo.git module
8662
------------------
8763

planemo/commands/cmd_serve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import click
22

33
from planemo.cli import pass_context
4-
from planemo import galaxy_serve
4+
from planemo.galaxy import galaxy_serve
55
from planemo import options
66

77

@@ -34,4 +34,4 @@ def cli(ctx, paths, **kwds):
3434
proof yet so please careful and do not try this against production Galaxy
3535
instances.
3636
"""
37-
galaxy_serve.serve(ctx, paths, **kwds)
37+
galaxy_serve(ctx, paths, **kwds)

planemo/commands/cmd_shed_serve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from planemo.cli import pass_context
77
from planemo import options
8-
from planemo import galaxy_serve
8+
from planemo.galaxy import shed_serve
99
from planemo import shed
1010
from planemo import io
1111

@@ -29,7 +29,7 @@ def cli(ctx, paths, **kwds):
2929
logged into and explored interactively.
3030
"""
3131
install_args_list = shed.install_arg_lists(ctx, paths, **kwds)
32-
with galaxy_serve.shed_serve(ctx, install_args_list, **kwds) as config:
32+
with shed_serve(ctx, install_args_list, **kwds) as config:
3333
gx_url = "http://localhost:%d/" % config.port
3434
io.info("Galaxy running with tools installed at %s" % gx_url)
3535
time.sleep(1000000)

planemo/commands/cmd_shed_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
from planemo.cli import pass_context
99
from planemo import options
10-
from planemo import galaxy_serve
10+
from planemo.galaxy.serve import shed_serve
1111
from planemo import shed
12-
from planemo import galaxy_test
12+
from planemo.galaxy.test import run_in_config
1313

1414

1515
@click.command("shed_test")
@@ -36,9 +36,9 @@ def cli(ctx, paths, **kwds):
3636
port = get_free_port()
3737
kwds["port"] = port
3838
return_code = 1
39-
with galaxy_serve.shed_serve(ctx, install_args_list, **kwds) as config:
39+
with shed_serve(ctx, install_args_list, **kwds) as config:
4040
config.kill()
41-
return_code = galaxy_test.run_in_config(
41+
return_code = run_in_config(
4242
ctx,
4343
config,
4444
installed=True,

planemo/commands/cmd_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
from planemo.cli import pass_context
66
from planemo import options
7-
from planemo import galaxy_config
7+
from planemo.galaxy import galaxy_config
88

9-
from planemo.galaxy_test import (
9+
from planemo.galaxy.test import (
1010
run_in_config,
1111
)
1212

@@ -55,7 +55,7 @@ def cli(ctx, paths, **kwds):
5555
please careful and do not try this against production Galaxy instances.
5656
"""
5757
kwds["for_tests"] = True
58-
with galaxy_config.galaxy_config(ctx, paths, **kwds) as config:
58+
with galaxy_config(ctx, paths, **kwds) as config:
5959
return_value = run_in_config(ctx, config, **kwds)
6060
if return_value:
6161
sys.exit(return_value)

planemo/commands/cmd_test_reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from planemo.cli import pass_context
66
from planemo import io
77
from planemo import options
8-
from planemo.galaxy_test import StructuredData, handle_reports
8+
from planemo.galaxy.test import StructuredData, handle_reports
99

1010

1111
@click.command('test_reports')

planemo/commands/cmd_tool_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import click
44
from planemo.cli import pass_context
55
from planemo import options
6-
from planemo import galaxy_serve
6+
from planemo.galaxy import serve
77

88

99
@click.command('tool_factory')
@@ -19,4 +19,4 @@ def cli(ctx, **kwds):
1919
"""
2020
mod_dir = os.path.dirname(__file__)
2121
tf_dir = os.path.join(mod_dir, '..', '..', 'planemo_ext', 'tool_factory_2')
22-
galaxy_serve.serve(ctx, [os.path.abspath(tf_dir)], **kwds)
22+
serve(ctx, [os.path.abspath(tf_dir)], **kwds)

planemo/conda.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" Planemo specific utilities for dealing with conda, extending Galaxy's
22
features with planemo specific idioms.
33
"""
4+
from __future__ import absolute_import
45

56
from galaxy.tools.deps import conda_util
67
from planemo.io import shell

0 commit comments

Comments
 (0)