diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2014-06-29 12:39:35 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2014-06-29 12:39:35 +0800 |
commit | a9484e1bc7291319c14a35adf7f277e826900af2 (patch) | |
tree | 9aaf605db46b8758874c5248873ede8b0c1138a1 | |
parent | 0eab0d1c356b81d6e08feba6f7584fa524d17c85 (diff) | |
download | smartypants-git-a9484e1bc7291319c14a35adf7f277e826900af2.tar.gz |
fix install_test on missing Wheel package and argpare version option breaks CLI on Python
-rw-r--r-- | CHANGES.rst | 3 | ||||
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | smartypants | 7 |
4 files changed, 9 insertions, 4 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 66b642a..b3ac7e9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -61,6 +61,9 @@ Development + add missing ``COPYING`` and ``CHANGES.rst`` to package (#3) + add ``bdist_wheel`` to the building process for Python Wheel format + add ``test_doc8`` target +* fix ``install_test`` on missing of Wheel package +* fix argparse version option breaks CLI on Python 3 + Release 1.8.3: 2013-11-08T03:03:43Z ----------------------------------- @@ -47,7 +47,7 @@ smartypants smartypants is a derivative work of SmartyPants. - Copyright (c) 2013 Yu-Jie Lin + Copyright (c) 2013, 2014 Yu-Jie Lin Copyright (c) 2004, 2005, 2007, 2013 Chad Miller Redistribution and use in source and binary forms, with or without @@ -73,6 +73,7 @@ $(VENV_PY2_CMD) $(VENV_PY3_CMD): rm -rf $(INSTALL_TEST_DIR) $@ $(INSTALL_TEST_DIR) ./setup.py sdist --dist-dir $(INSTALL_TEST_DIR) + $(INSTALL_TEST_DIR)/bin/pip install wheel $(INSTALL_TEST_DIR)/bin/pip install $(INSTALL_TEST_DIR)/*.tar.gz @\ CHK_VER="`$(PY2_CMD) $(SCRIPT) --version 2>&1`";\ diff --git a/smartypants b/smartypants index d6f2f7b..0b822df 100755 --- a/smartypants +++ b/smartypants @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (c) 2013 Yu-Jie Lin +# Copyright (c) 2013, 2014 Yu-Jie Lin # Licensed under the BSD License, for detailed license information, see COPYING """ @@ -75,8 +75,9 @@ import smartypants def main(): - parser = argparse.ArgumentParser(description=smartypants.__description__, - version=smartypants.__version__) + parser = argparse.ArgumentParser(description=smartypants.__description__) + parser.add_argument('-v', '--version', action='version', + version=smartypants.__version__) parser.add_argument('-a', '--attr', default='1', help='processing attributes (Default: %(default)s)') parser.add_argument('-s', '--skip', |