Skip to content
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

Pinned minimum version of the six package #106

Merged

Conversation

ivellios
Copy link
Contributor

@ivellios ivellios commented Apr 12, 2023

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 since asttokens 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 introduce ensure_text function, that is being used in executing package. In my case the issue came from ipython (newest version) that is using asttokens deeper in its dependencies.

…e is being installed the manager can ensure proper version in the dependencies list
@alexmojaki
Copy link
Contributor

alexmojaki commented Apr 12, 2023

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...

@dsagal
Copy link
Member

dsagal commented Apr 13, 2023

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.

@dsagal dsagal merged commit 1bef343 into gristlabs:master Apr 13, 2023
14 checks passed
@ivellios ivellios deleted the pin_minimum_required_version_of_six branch April 14, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants