libgraphqlparser
libgraphqlparser copied to clipboard
Add python3 support for building the lib.
Hello, The idea behind this is to have libgraphql not requiring python2 for file generation but also work with python3.
CMakeLists.txt is modified in order to ask for at least
python 2 and not only python 2
ast/*.py modified in order to support python2 or python3.
Thanks
@abusi 👍
fix all an error
@swolchok @gjtorikian could we move forward with this pull-request?
@tsunammis Why are you pinging me? I’m not a maintainer on this project, please don’t do that.
@gjtorikian You are the second contributor, it was just a ping. Sorry.
(Sorry for the delay in responding!) Isn't it possible to write code that works under both Python 2 and Python 3? I don't mind supporting Python 3, but I would rather not duplicate the generator code in order to provide that support.
Yep, it is possible to do so. I wanted to be the less intrusive possible. But yeah i can modify the generator to be python2 and python3 compatible. Thanks.
@swolchok Done, now the ast/*.py file are runable by python2 or python3. Thanks again.
@swolchok I'll add diff tests with python2 and python3. Do you know if python2 and python3 are available in the travis-ci executor?
Any update on this PR?
Yeah, sorry, i'm currently on holydays, i'll finish it when i'll be back, in a week or two. Sorry for the delays.
@swolchok - Are there any remaining issues preventing this PR from merging? Py2 goes away really soon and I know @abusi is maintaining a py3 fork for Tartiflette.
Thanks
Hi @bobh66, i cannot say that i'm maintaining a python3 fork, it's just that I stop the project from requering python 2. As i don't have any use of the 'ctypesgen'erated files, cause i use cffi, i just need the lib to built on an env whithout python2. I thought it would be cool to make the 'type generator' to run for python3 and python2 in case someone wants it. But then I had other priority at work and completly forgot about this.
The missing Python 3 support is blocking the inclusion of Tartiflette into the Fedora Package Collection as libgraphqlparser is a dependency.
Would be nice if that could be resolved any time soon.