Hello!
Grant here. Member of a team of avid Pants-wearers. Running into an issue for which I've failed to find a solution.
I have Python code that uses 'raise...from' syntax as outlined
here. And
here is a Gist containing some test code I'm trying to run.
A file named "test.py" containing only the contents of the above Gist fails to run / bundle with Pants. Error:
"Exception message: invalid syntax (test.py, line 4)"
The same test.py runs successfully when invoked with Python3.4.3, and gives the expected syntax error with Python2.
Here is my pants.ini. I'm specifying "interpreter_requirement: CPython>=3.4,<3.5".
I'm specifying a version of Python that should support 'raise...from', so I can't figure out why Pants is giving me a syntax error. I'm wondering if there's something else I need to do to tell Pants which version of Python I'm using.
Am I missing something? Thanks so much in advance for your help.
Best,
Grant Wu