Closed ivellios closed 1 year ago
I have pinned the version >= 1.12.0 because this is the first one to introduce ensure_text function, that is being used in executing package
executing
doesn't use six
at all though...
I think the point is that asttokens
itself uses six.ensure_text
, so it makes sense to pin the version of six
to one that includes that function.
I have stumbled upon this issue, when migrating to python 3.11 in my project. I had
six==1.11.0
pinned in our requirements and sinceasttokens
setup config does not specify minimum six version, that seemed to be OK. It is a good practice to always pin at least minimum needed version, when using some functions introduced in newer ones.I have pinned the version
>= 1.12.0
because this is the first one to introduceensure_text
function, that is being used inexecuting
package. In my case the issue came from ipython (newest version) that is usingasttokens
deeper in its dependencies.