Skip to content

Commit

Permalink
adding ability to invoke fabric package as a script using python -m f…
Browse files Browse the repository at this point in the history
…abric
  • Loading branch information
RupeshPatro committed May 17, 2018
1 parent e4d7fbe commit 6343a44
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fabric/__main__.py
Expand Up @@ -4,6 +4,6 @@
Usage: python -m fabric
'''

from .main import program
from .main import program

program.run()
1 change: 0 additions & 1 deletion sites/www/changelog.rst
Expand Up @@ -5,7 +5,6 @@ Changelog
.. note::
Looking for the Fabric 1.x changelog? See :doc:`/changelog-v1`.

- :feature: `-` Invoke fabric as a script using m flag; python -m fabric.
- :support:`1761 backported` Integration tests were never added to Travis or
ported to pytest before 2.0's release; this has been addressed.
- :support:`1759 backported` Apply the ``black`` code formatter to the codebase
Expand Down
3 changes: 1 addition & 2 deletions tests/main.py
Expand Up @@ -263,7 +263,6 @@ def check_version_on_invoking_fab_as_module(self, capsys):
# Temporary disable of capture is required to be able to
# read the fabric module on invoke.run(). Thus, capsys.disabled()
with capsys.disabled():
output = _run_fab_as_module("python -m fabric --version",
output = _run_fab_as_module("python -m fabric --version",
hide='out')
assert re.match(expected_output, output.stdout)

0 comments on commit 6343a44

Please sign in to comment.