-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
dev-python/python-language-server: Add Python 3.8 compatibility #16732
Conversation
Pull Request assignmentSubmitter: @mattst88 dev-python/python-jsonrpc-server: @AndrewAmmerlaan, @gentoo/proxy-maint Linked bugsNo bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment. If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers. In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2020-07-17 21:41 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Hmm, interesting, I remember I had a failure somewhere when I tried, will try again. |
Should I hold this PR until you've had a chance to investigate the test failure I mentioned? In case I was unclear, it's an existing failure that happens with Python 3.7. |
I get:
on python-jsonrpc-server. Could you show me your depgraph, so we can compare what is different? Here's mine:
Instead of depending on PyQt5 directly, I would prefer to expand the QtPy dependency to include the gui flag, e.g.:
instead of
That should pull in PyQt5 with both the gui and the widgets flag, as the QtPy ebuild has:
I would prefer this solution, because QtPy is an abstraction layer for PyQt5 and PySide2, and in principle this package should work with both (even though PySide2 is not packaged in ::gentoo), therefore I would like to avoid a direct dependency on PyQt5. |
The only difference I see is that I have pylint-2.4.4-r1 and you have 2.5.3. I installed 2.5.3 and the python-jsonrpc-server tests still pass for me. But in running the tests again, I noticed this
Says it's still using 3.7. So I emerged Crap, so I guess it's not ready. |
Oh, but I guess this means that |
FWIW, looks like there's an open PR upstream at palantir/python-jsonrpc-server#37 |
The The distutils-r1 eclass has:
and
and
And pytest is shown in the python-jsonrpc-server dependency graph, so I'm a bit confused as to why the ebuild didn't complain about pytest not being installed with the correct
Awesome, thank you! |
It looks like the upstream PR I linked to has been merged. Do you think we should apply those patches and enable Python 3.8? |
I think that is a good idea. The latest release is from January, but no functional changes seem to have been made since then, so I don't expect upstream to release a new version soon. And if we can get py3.8 here, I can probably add it to spyder-5.0 as well (#17148). |
Closes: gentoo#16732 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2cfe922
to
01b29a8
Compare
Pull request CI reportReport generated at: 2020-08-19 04:12 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
(Untested so far. Hopefully tomorrow) |
Just tested this, works for me 👍 |
Closes: gentoo#16732 Signed-off-by: Matt Turner <mattst88@gentoo.org>
All tests pass for both
dev-python/python-language-server
anddev-python/python-jsonrpc-server
under Python 3.8.While testing, I noticed that
test/plugins/test_completion.py::test_pyqt_completion
will fail ifdev-python/PyQt5
is built withoutUSE=widgets
.which I guess makes sense because the test tries to import from
PyQt5.QtWidgets
. I'm not sure if we want to add an explicit test dependency. I suppose so?