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

Fix only six's major version #154

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

erdnaxeli
Copy link

@erdnaxeli erdnaxeli commented Apr 25, 2019

This PR changes the six dependency to fix only the major (1.X.Y) version. Libraries should not fix minor versions, it is a source of conflicts. If dependencies follow semver (which they should), upgrading a minor version should not break.

@@ -1,3 +1,3 @@
pycryptodome>=3.4
requests>=2.5,<3.0
six~=1.10
six>=1.10,<2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask, what does this have to do with six's major version? I may be incorrect, but I don't see the difference this change makes according to https://www.python.org/dev/peps/pep-0440/#compatible-release. Please elucidate.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masojus the current code is pinning to any (generally latest) version of 1.10.x. This PR is allowing 1.11.x, 1.12.x, etc.

The problem here is that it's causing conflicts during dependency resolution, so if I have a package that needs six > 1.11, I can't install both this package and the other, even though this package shouldn't be affected by updating six's minor version (second part of the version number).

@@ -25,7 +25,7 @@

setup(
name="keen",
version="0.5.1",
version="0.5.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several other files have to change to release another minor version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants