Skip to content

Commit

Permalink
Few changes for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Sep 24, 2015
1 parent d5e41c9 commit 6d6e1b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion supercron/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
setup(
name = 'supercron',
packages = ['supercron', 'tests'],
version = '0.1',
version = '0.1.2',
description = 'Intelligent interface to cron in UNIX systems',
author = 'Anas El Husseini',
author_email = '[email protected]',
Expand All @@ -11,6 +11,11 @@
download_url = 'https://github.com/linostar/SuperCron/tarball/0.1',
keywords = ['cron', 'crontab', 'scheduling'],
install_requires = ['python-crontab>=1.9.3'],
entry_points = {
'console_scripts': [
'supercron = supercron.supercron:main',
],
},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
Expand Down
5 changes: 4 additions & 1 deletion supercron/supercron/supercron.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def parse_repetition(repetition):
return repeat


if __name__ == "__main__":
def main():
name, command, repetition = SuperCron.parse_arguments()
SuperCron.add_job(name, command[0], repetition[0])
sys.exit(0)

if __name__ == "__main__":
main()

0 comments on commit 6d6e1b7

Please sign in to comment.