Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscz committed Jun 9, 2017
2 parents 99f7ea2 + 6854e27 commit 8909c16
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions pysorter/tests/test_commandline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os
import subprocess
from .. import commandline


def test_help_option():
basedir = os.path.dirname(commandline.package_directory())
os.chdir(basedir)

try:
env = {'PYTHONPATH': basedir}
output = subprocess.check_output(
['python', '-m', 'pysorter', '--help'],
stderr=subprocess.STDOUT,
env=env
)
except subprocess.CalledProcessError as e:
output = e.output

assert '-d DEST_DIR' in output.decode('utf-8')
2 changes: 1 addition & 1 deletion pysorter/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.1
0.4.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},

entry_points={
"console_scripts": ['pysorter=pysorter.core.pysorter:main']
"console_scripts": ['pysorter=pysorter.commandline:main']
},
extras_require=dict(
build=['twine', 'wheel', 'setuptools-git', 'sphinx'],
Expand Down

0 comments on commit 8909c16

Please sign in to comment.