Black: Pipenv fail installation - Add documentation

Created on 4 May 2019  Â·  10Comments  Â·  Source: psf/black

Operating system: OSX Mohaje latest release
Python version: 3.7.2
Pipenv version: 2018.11.26
Black version: Not relevant
Does also happen on master: Not relevant, it has to do with PyPi

Seems like a very cool tool! But seems like it is not very friendly for users trying to install it using pipenv.
Simply running pipenv install black fails, probably due to what mentioned here https://github.com/python/black/issues/517. As pipenv an the official tool, the first thing people run is pipenv install black and the first thing they see is a weird failure.

You mention pip install black in the documentation, so I recommend simply adding instructions for how to install with pipenv so people don't have to google around until they find the relevant issue.

installation

Most helpful comment

We're hoping to release a stable release in the next few days.

All 10 comments

Better solution would be to just release 1.0.0 of black, so that it can be installed normally. What's the status on that? @ambv

We're hoping to release a stable release in the next few days.

Awesome work thank you, I enjoy this tool very much! Saves lots of time....

On Mon, May 6, 2019 at 1:08 AM Jelle Zijlstra notifications@github.com
wrote:

We're hoping to release a stable release in the next few days.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/python/black/issues/822#issuecomment-489539952, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA5VOZUVEOVV4YVHZFEAVCLPT7RP5ANCNFSM4HKXZWEA
.

--

Almog Cohen

https://htmlsig.com/signatures/01ADE8F6/edit

[image: Linkedin] http://linkedin.com/in/almogcohen
US: (415) 413-6714

Any update on that 1.0.0? 😄

@rpdelaney See this issue: https://github.com/psf/black/issues/517

Do you have an update plan about this issue?

my solution

$ pipenv install --dev black==19.3b0

How about a general update to the documentation?

Common installation options using poetry, pip, pipenv and pipx and also a note about the pre-commit hook.

I would be interested in doing a general update of the documentation to make it easier to get started in using _Black_. The only issue is that my main laptop is out of action, so I am using an old Ubuntu laptop :rofl:

This is still an issue

This happens because pipenv does not look for beta releases and black only has beta releases https://github.com/microsoft/vscode-python/issues/5171
Try it with pipenv install black --pre.
If you are installing from your pipfiles try pipenv install --dev --pre

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gyermolenko picture gyermolenko  Â·  3Comments

dimaqq picture dimaqq  Â·  3Comments

brettcannon picture brettcannon  Â·  3Comments

dgnsrekt picture dgnsrekt  Â·  3Comments

bhearsum picture bhearsum  Â·  3Comments