-
Notifications
You must be signed in to change notification settings - Fork 10
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
flake8-black, pipenv, black dependency hell #18
Comments
Sounds like this is worth reporting to pipenv as a bug? Surely black==19.3b0,>=19.3b0 is solved as 19.3b0 Also worth nudging black for that overdue release... If I changed the flake8-black dependency to == it would solve this, but make trouble once there is a newer black release. It’s perhaps possible to recreate a backwards compatible hack for older versions of black, but my recent refactoring to cache any parsed configuration makes that a bit harder than it used to be. |
I don't think pipenv has a bug here, when we say "black>=19.3b0" this is asking for a release that is greater than 19.3b0, of which there are none. I do think the correct thing to do for For now, we have fixed Pushing black for a proper release is probably counter-productive, many people already have and more noise just stops them from getting the things done that they want to do before making an actual release (see psf/black#517 , every few weeks it is prompted for!) |
Reading black issue 517, I agree further noise won't do any good (although a few more thumbs up wouldn't hurt). From that discussion it sounds like installing black==19.3b0 explicitly, possibly prior to the other dependencies, is a workaround?
There is pypa/pipenv#1760 but perhaps you should open a new |
Where you said:
This comment seems directly relevant, pypa/pipenv#1760 (comment)
This does to me seem like a problem in |
Problem with such a great tool as pipenv, I assumed that it was following PEP-440 :) Happy to close this and follow it up with pipenv. |
Fingers crossed for a Looking at the error message again, I doubt changing the |
Use: |
@atwoodjw using |
Fixed via #22 (a good compromise now that the minimum version of black we need is over a year old) |
Some slight problems with the 0.1.1 release when using with pipenv. Because black does not yet have a "stable" release (unbelievably, its been coming "in a few weeks" for about 18 months now!), every single release of black must be installed with
--pre
flag with pipenv, unless an exact version match is specified.However, with the 0.1.1 release of flake8-black, we've got two specifiers for black specified - "==19.3b0" from the project, and ">=19.3b0" from flake8-black. This makes pipenv look for the latest released version of black to install... except there is no latest release that is not a pre-release!
This is then double complicated by pipenv. There is no "--pre" flag for pipenv that applies just to a single package, so now in order to get a lock, we must allow all pre-release packages to be considered by pipenv. This is not ideal!
The text was updated successfully, but these errors were encountered: