From 001e69f484a8b1d751d32bb9180b77a87fc3429d Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 10 Feb 2017 18:11:34 +0000 Subject: [PATCH 1/2] Fixed version shield in readme --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index d07dc7fd0..76586278b 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ JIRA Python Library =================== -.. image:: https://img.shields.io/pypi/pyversions/jira.svg +.. image:: https://img.shields.io/pypi/v/jira.svg :target: https://pypi.python.org/pypi/jira/ .. image:: https://img.shields.io/pypi/l/jira.svg From 8f16cb82c88b2913db3fef4be2f874f3de356671 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 10 Feb 2017 18:12:08 +0000 Subject: [PATCH 2/2] Added back the jirashell command line entry point --- setup.cfg | 5 +++-- tests/tests.py | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 99aa1bdf5..cf8fba8bf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,6 +20,7 @@ classifier = Programming Language :: Python :: 3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 Topic :: Software Development :: Libraries :: Python Modules Topic :: Internet :: WWW/HTTP @@ -36,8 +37,8 @@ packages = jira [entry_points] -pbr.config.drivers = - plain = pbr.cfg.driver:Plain +console_scripts = + jirashell = jira.jirashell:main [egg_info] egg_base = . diff --git a/tests/tests.py b/tests/tests.py index 3383f9840..a69906e45 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -2097,6 +2097,13 @@ def test_remove_user_from_group(self): self.jira.delete_user(self.test_username) +class JiraShellTests(unittest.TestCase): + + def test_jirashell_command_exists(self): + result = os.system('jirashell --help') + self.assertEqual(result, 0) + + if __name__ == '__main__': # when running tests we expect various errors and we don't want to display them by default