coala / coala-bears

Bears for coala
https://coala.io/
GNU Affero General Public License v3.0
294 stars 580 forks source link

bear-requirements.txt: Add six~=1.11.0 #2897

Closed abhishalya closed 5 years ago

abhishalya commented 5 years ago

coala-bears has been throwing internal version conflict due to six requirement. This works as temporary fix and ensures that six is managed manually.

Closes https://github.com/coala/coala-bears/issues/2885

For short term contributors: we understand that getting your commits well defined like we require is a hard task and takes some learning. If you look to help without wanting to contribute long term there's no need for you to learn this. Just drop us a message and we'll take care of brushing up your stuff for merge!

Checklist

After you submit your pull request, DO NOT click the 'Update Branch' button. When asked for a rebase, consult coala.io/rebase instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will review your PRs faster!

abhishalya commented 5 years ago

@Makman2 @jayvdb Can you please review :)

abhishalya commented 5 years ago

This works as a hotfix for the six version conflict. This was happening on Python3.4 because jsonschema dropped support for Python3.4 and which bumped the requirement to six>=1.11.0 while everyone else had six>=1.10.0. I did some analysis here, and found that the best way to handle this would be to manually handle the six dependency. This also means that if the packages update their six dependency or the build start to break this will need change as per them.

I still think this not a good best approach of handling version conflicts, but the way pip works right now, its hard to find a good fix. If you have better approaches, mention them here. :smiley:

Makman2 commented 5 years ago

Is it possible to add a comment there referring to the issue? If someone reads that a year later that change is still understandable^^ And we then might even remove it again if things have improved^^

abhishalya commented 5 years ago

Irrelevant now due to https://github.com/coala/coala-bears/pull/2910