Unverified Commit cb67a322 authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Improve Poetry support

parent 2f0a1852
Loading
Loading
Loading
Loading
+0 −1
Changes for .gitignore: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -8,4 +8,3 @@ __pycache__
black.egg-info
build/
dist/
pyproject.lock

pyproject.lock

0 → 100644
+687 −0

File added.

Preview size limit exceeded, changes collapsed.

+14 −4
Changes for pyproject.toml: 14 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -30,15 +30,21 @@ exclude = '''


# Poetry package information below.
# NOTE: You don't need this in your own Black configuration.

[tool.poetry]
name = "black"
version = "18.6b4"
description = "The uncompromising code formatter."
readme = "README.md"
# FIXME: use proper Unicode below when new `pip` comes out with a fix for
# https://github.com/pypa/pip/pull/5482.
authors = ["Lukasz Langa <lukasz@langa.pl>"]
authors = [
    "Łukasz Langa <lukasz@langa.pl>",
    "Carol Willing <carolcode@willingconsulting.com>",
    "Carl Meyer <carl@oddbird.net>",
    "Jelle Zijlstra <jelle.zijlstra@gmail.com>",
    "Mika Naylor <mail@autophagy.io>",
    "Zsolt Dollenstein <zsol.zsol@gmail.com>",
]
homepage = "https://github.com/ambv/black/"
documentation = "https://black.readthedocs.io/en/stable/"
license = "MIT"
@@ -59,6 +65,7 @@ packages = [

[tool.poetry.scripts]
black = "black:main"
# blackd = "blackd:main"  # TODO: how to make this only appear on `poetry install -E d`?

[tool.poetry.dependencies]
python = "^3.6"
@@ -66,7 +73,10 @@ attrs = "^17.4"
click = "^6.5"
toml = "^0.9.4"
appdirs = "^1.4"
aiohttp = "^3.4"
aiohttp = { version = "^3.4", optional = true }

[tool.poetry.extras]
d = ["aiohttp"]

[tool.poetry.dev-dependencies]
Sphinx = "^1.7"