From 8b792687cf52edb48abcd697217c920243aab3b4 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 17 Jun 2016 11:30:30 -0400 Subject: [PATCH] add a command script --- bin/funniest-joke | 5 +++++ setup.py | 3 +++ 2 files changed, 8 insertions(+) create mode 100755 bin/funniest-joke diff --git a/bin/funniest-joke b/bin/funniest-joke new file mode 100755 index 0000000..4cc4ccc --- /dev/null +++ b/bin/funniest-joke @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +import funniest + +print(funniest.joke()) diff --git a/setup.py b/setup.py index a823cc0..989b527 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,9 @@ setup(name = "funniest", license = "MIT", packages = ["funniest"], zip_safe = False, + test_suite = "nose.collector", tests_require = ["nose"], + + scripts = ["bin/funniest-joke"], )