Element-34 / py.saunter

sample framework for using selenium with python and page objects
Apache License 2.0
94 stars 35 forks source link

need an easy way to determine which version of py.saunter is installed #22

Closed mmaypumphrey closed 12 years ago

mmaypumphrey commented 12 years ago

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$

adamgoucher commented 12 years ago

adding a --version to 0.38