Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a mechanism where users can specify the python version which will be used to run the specs #7

Closed
kashishm opened this issue Jul 18, 2016 · 3 comments

Comments

@kashishm
Copy link
Collaborator

From @galacticgumshoe

In order to use Python 3 on mac, I have to use 'python3' command. Otherwise, if I just run 'python' command it runs as Python 2(default version). Getgauge package uses python command to run the tests, So it uses python 2 and mac doesn't recommend to change the default python to python3 because many Apple- or third-party software are dependent on that(https://docs.python.org/3/using/mac.html).

There should be a mechanism where users can specify the python version which will be used to run the specs. For more details refer #5.

@galacticgumshoe
Copy link

@kashishm 👍 for this enhancement! I was just noticing that when running my specs it was running as 2.7, even though I had written everything to be compliant with 3.5! Can't wait until this is available!

@kashishm
Copy link
Collaborator Author

Implemented this enhancement in Gauge-Python 0.1.5. The docs has info on how to specify a version.

Run the following commands to update the plugin:

gauge --update python
pip install --upgrade getgauge

@galacticgumshoe
Copy link

@kashishm this latest version works well! I was able to successfully execute gauge with the 3.5 python runner after setting this in my python.properties file. Awesome job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants