black: Pipenv fail installation - Add documentation

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.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 7
  • Comments: 20 (1 by maintainers)

Commits related to this issue

Most upvoted comments

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

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

This is still an issue

Do you have an update plan about this issue?

my solution

$ pipenv install --dev black==19.3b0

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

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 🤣

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.

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