Repository navigation
replaced collections with collections.abc for inheritance - #28
Conversation
|
Unfortunately it looks like We'll either need to extend the compatibility code around line 56 a bit, or make a new release explicitly Python 3 only and cut out all the compatibility code. Pickleshare needs so few changes that I'd lean towards the latter approach. |
|
Oh, I understand, I'll change this to: and then inherit from collections_abc Once I am at home I'll add this. That should work for python 2.7 as well. |
|
Passes now, but you can safely add 3.6 and 3.7 to the test too. 3.7 ran fine on my machine. |
|
Thanks. Do you want to add those in |
|
Interesting, I think we are save if we move to xenial for >= python 3.7 |
|
Finally, we can talk about additional pypy testing ;-) |
| - "3.4" | ||
| - 3.5 | ||
| dist: trusty | ||
| sudo: required |
There was a problem hiding this comment.
I don't think we need either sudo or the dist specification here, we can just let it use the defaults except for 3.7 and 3.8.
| - "3.5" | ||
| - "3.6-dev" | ||
| - "3.6" | ||
| - "3.7-dev" |
There was a problem hiding this comment.
Let's drop the 3.5/6/7 dev versions. Pickleshare has needed no changes for new Python versions - up to now - for several years. I know that 3.7-dev is also stuck somewhere in the past before the openssl requirement shifted.
| dist: xenial | ||
| sudo: true | ||
| install: pip install -e . | ||
| script: py.test |
There was a problem hiding this comment.
Also, I don't think these sections need the install & script lines - Travis should use the top-level ones for all matrix items that don't override them. Sorry for not noticing that before.
There was a problem hiding this comment.
No worries, I'll check, ...
|
@takluyver Do you think we get this done tonight? I am not very experienced in this, a bloody beginner, sorry to ask. My trio tests fail currently and I'd be happy to work on them as soon as possible. |
|
Yup, I think we can. Thanks! |
|
Thank you, step by step I am getting a better overview how this works. Great help. |
|
No problem. I probably need to put a new release on PyPI before you can easily pick it up for trio tests, but that shouldn't take long. |
|
That would have been my next questions ;-) Enjoy your week. |
|
And here you go, a new release: https://pypi.org/project/pickleshare/#history |
|
Thanks @takluyver! |
Needed to pick up the fix in ipython/pickleshare#28
Importing directly from collection is deprecated in python 3.7 and will stop to work in python 3.8
CI tests with -W error will already fail now.
By replacing collections with collections.abc this problem will be fixed.
Addresses #27