Skip to content

Commit

Permalink
Remove self-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Apr 23, 2021
1 parent 1950e6e commit 6f9b8fc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions reprounzip-vistrails/reprounzip_vistrails.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
if __name__ == '__main__': # noqa
from reprounzip_vistrails import run_from_vistrails
run_from_vistrails()
assert False

import argparse
from datetime import datetime
Expand Down
8 changes: 8 additions & 0 deletions reprounzip/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (C) 2014-2017 New York University
# This file is part of ReproZip which is released under the Revised BSD License
# See file LICENSE for full license details.

from reprounzip.main import main


main()
4 changes: 0 additions & 4 deletions reprounzip/reprounzip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
``reprounzip.unpackers``.
"""

if __name__ == '__main__': # noqa
from reprounzip.main import main
main()

import argparse
import locale
import logging
Expand Down
8 changes: 8 additions & 0 deletions reprozip/reprozip/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (C) 2014-2017 New York University
# This file is part of ReproZip which is released under the Revised BSD License
# See file LICENSE for full license details.

from reprozip.main import main


main()
4 changes: 0 additions & 4 deletions reprozip/reprozip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
It dispatches to other routines, or handles the testrun command.
"""

if __name__ == '__main__': # noqa
from reprozip.main import main
main()

import argparse
import locale
import logging
Expand Down
4 changes: 2 additions & 2 deletions tests/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
rpz_python.extend(['-m'] + os.environ['COVER'].split(' '))
rpuz_python.extend(['-m'] + os.environ['COVER'].split(' '))

reprozip_main = tests.parent / 'reprozip/reprozip/main.py'
reprounzip_main = tests.parent / 'reprounzip/reprounzip/main.py'
reprozip_main = tests.parent / 'reprozip/reprozip/__main__.py'
reprounzip_main = tests.parent / 'reprounzip/reprounzip/__main__.py'

verbose = ['-v'] * 3
rpz = rpz_python + [reprozip_main.absolute().path] + verbose
Expand Down

0 comments on commit 6f9b8fc

Please sign in to comment.