Skip to content

Comment on Poetry – Dependency Management for Python – v1.0

Comments

Just to note, dev dependencies in Poetry is still rather flaky vis-à-vis projects forever in pre-release mode e.g. Black. Consider sticking with Pipenv if you have heavy dev dependencies requirements.

I have been bitten by this. I love Black to death, but I don't understand why they're still tagging their project as bêta when it's been so stable over the last year, at least.

Anyway, the solution is simple: put

black = { version = "*", allows-prereleases = true }

in your pyproject.toml file. Or use --allow-prerelease as suggested by others.

It definitely was in the past, but I haven't had any troubles recently. Are you still experiencing issues?

Isn't that Black fault more than Poetry fault? They do not have a non alpha release.

Nowadays its just --allow-prerelease

If I read the 1.0 changelog correctly, I think you don't need that flag anymore

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.