Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/allinone/test.spy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from common.common import common_func
# iteration over command output
for line in `ls -l`:
# print of output with local variable capture
print `echo LINE IS: {line}
print `echo 'LINE IS: {line}'

# return code capture
s = `ls -l | grep non_existent_string
Expand Down
2 changes: 1 addition & 1 deletion example/allinone/test3.spy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from common.common import common_func
# iteration over command output
for line in `ls -l`:
# print of output with local variable capture
print(`echo LINE IS: {line}`)
print(`echo 'LINE IS: {line}'`)

# return code capture
s = `ls -l | grep non_existent_string
Expand Down
18 changes: 12 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@

try:
from setuptools import setup

args_for_setup = {'entry_points': {
'console_scripts': {
'shellpy = shellpython.shellpy:main'
}
}}

except ImportError:
from distutils.core import setup

args_for_setup = {'scripts': ['shellpy']}


setup(name='shellpy',
version='0.4.0',
description='A convenient tool for shell scripting in python',
Expand All @@ -14,11 +24,7 @@
download_url='https://github.com/lamerman/shellpy/tarball/0.4.0',
keywords=['shell', 'bash', 'sh'],
packages=['shellpython'],
entry_points = {
'console_scripts': {
'shellpy = shellpython.shellpy:main'
}
},
package_data={'shellpython': ['*.tpl']},
install_requires=['colorama']
install_requires=['colorama'],
**args_for_setup
)
1 change: 1 addition & 0 deletions shellpy
Empty file modified shellpython/shellpy.py
100644 → 100755
Empty file.