Element-34/py.saunter — Issue #22: need an easy way to determine which version of py.saunter is installed
Author: mmaypumphrey
Created: 2011-12-08 00:01:19+00:00
State: open

How about a --version?

adobe-MacBookPro:echosign mmaypump$ pysaunter.py -h
usage: pysaunter.py [-h] [--new] [-v] [-s] [--tb TB] [-p P] [-m M]
[--traceconfig] [--pdb] [--maxfail MAXFAIL]
[--collectonly]

optional arguments:
-h, --help show this help message and exit
--new creates a new Py.Saunter environment
-v increase verbosity
-s don't capture output
--tb TB traceback print mode (long/short/line/native/no)
-p P early-load given plugin (multi-allowed)
-m M filter based on marks
--traceconfig trace considerations of conftest.py files
--pdb start the interactive Python debugger on errors
--maxfail MAXFAIL exit after first num failures or errors.
--collectonly only collect tests, don't execute them
adobe-MacBookPro:echosign mmaypump$ more `which pysaunter.py`
#!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
# EASY-INSTALL-SCRIPT: 'py.saunter==0.28','pysaunter.py'
__requires__ = 'py.saunter==0.28'
import pkg_resources
pkg_resources.run_script('py.saunter==0.28', 'pysaunter.py')
adobe-MacBookPro:echosign mmaypump$