-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Partially revert astroid install requirement #4130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the problem we had for 2.7.0
was because we did not launch the benchmark tests in CI. With this change we would have to test multiple version of astroid for each pylint version. Shouldn't we theoretically have a matrix of astroid version from 2.4.2 to 2.7 in CI for each python interpreter? Plus we can't test the version of astroid that are not yet released
I was thinking about this from another angle. In theory the minor releases from Just to illustrate an example. A project currently uses pylint -- What I'm trying to say is that we would still recommend using the current astroid version and only actively validate that combination. Once we receive bug reports that a newer combination doesn't work, we could simply update the dependency and do a new bug-fix release. Like what you did for Additionally we could regularly update the min required astroid version, maybe before a new minor release. Adding a new CI workflow that checks different astroid versions once per day could also help to identify if a combination breaks. |
Hum, I see your point. I feel though that users being able to tinker with astroid version |
True, 😂
I agree with
Just to make our lives easier
If it's an important bugfix for astroid we would probably still need to release a new pylint version with the updated dependency. I don't expect many would update astroid separately. |
Ha ok, I see the problem with the continuous integration that need <=x+2. Maybe we can add a step to the release documentation where we make the upper bound smaller just for the release ? |
CI works fine without it! It only uses the release versions (tags) so that's not the issue. It becomes a problem if a developer manually once to test a future dev version of astroid.
IMHO I wouldn't bother updating it assuming that a new minor release of pylint follows shortly after a new one from astroid. Users only noticed the issue since there was a larger gap between astroid |
Closed in favor of #4152 |
Steps
doc/whatsnew/<current release.rst>
.Description
Partially revert the
install_requires
version for astroid. It seems to cause too many issues for users and developers if it's pinned to a specific version.A better solution might be to update the min dependency every so often after a new release turned out to be stable. For this MR I updated it from
>=2.4.0
to>=2.4.2
for example.--
I didn't update the
requirements
files, since it still might be best to run the CI checks against the latest released version. If that would be of interest, I could add another CI workflow for it. Test different astroid versions maybe once per day.?Type of Changes
Related Issue
#4116 (comment)
#4119 (comment)