Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
5484122c
Unverified
Commit
5484122c
authored
Jul 24, 2020
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display logging messages from poetry-core when building
parent
2ba36c82
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
59 deletions
+56
-59
poetry.lock
+35
-47
poetry/console/commands/build.py
+1
-0
poetry/console/config/application_config.py
+5
-0
poetry/console/logging/formatters/__init__.py
+1
-0
poetry/console/logging/formatters/builder_formatter.py
+12
-4
poetry/console/logging/io_handler.py
+1
-7
pyproject.toml
+1
-1
No files found.
poetry.lock
View file @
5484122c
...
@@ -315,24 +315,6 @@ genshi = ["genshi"]
...
@@ -315,24 +315,6 @@ genshi = ["genshi"]
lxml = ["lxml"]
lxml = ["lxml"]
[[package]]
[[package]]
category = "main"
description = "HTML parser based on the WHATWG HTML specification"
name = "html5lib"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
version = "1.1"
[package.dependencies]
six = ">=1.9"
webencodings = "*"
[package.extras]
all = ["genshi", "chardet (>=2.2)", "lxml"]
chardet = ["chardet (>=2.2)"]
genshi = ["genshi"]
lxml = ["lxml"]
[[package]]
category = "dev"
category = "dev"
description = "HTTP client mock for Python"
description = "HTTP client mock for Python"
name = "httpretty"
name = "httpretty"
...
@@ -590,6 +572,14 @@ description = "More routines for operating on iterables, beyond itertools"
...
@@ -590,6 +572,14 @@ description = "More routines for operating on iterables, beyond itertools"
name = "more-itertools"
name = "more-itertools"
optional = false
optional = false
python-versions = ">=3.5"
python-versions = ">=3.5"
version = "8.3.0"
[[package]]
category = "dev"
description = "More routines for operating on iterables, beyond itertools"
name = "more-itertools"
optional = false
python-versions = ">=3.5"
version = "8.4.0"
version = "8.4.0"
[[package]]
[[package]]
...
@@ -698,11 +688,12 @@ description = "Core utilities for Poetry"
...
@@ -698,11 +688,12 @@ description = "Core utilities for Poetry"
name = "poetry-core"
name = "poetry-core"
optional = false
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
version = "1.0.0a
8
"
version = "1.0.0a
9
"
[package.dependencies]
[package.dependencies]
enum34 = {version = ">=1.1.10,<2.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
enum34 = {version = ">=1.1.10,<2.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
functools32 = {version = ">=3.2.3-2,<4.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
functools32 = {version = ">=3.2.3-2,<4.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
importlib-metadata = {version = ">=1.7.0,<2.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\" or python_version >= \"3.5\" and python_version < \"3.8\""}
pathlib2 = {version = ">=2.3.5,<3.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
pathlib2 = {version = ">=2.3.5,<3.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
typing = {version = ">=3.7.4.1,<4.0.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
typing = {version = ">=3.7.4.1,<4.0.0.0", markers = "python_version >= \"2.7\" and python_version < \"2.8\""}
...
@@ -1169,7 +1160,8 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
...
@@ -1169,7 +1160,8 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"]
testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"]
[metadata]
[metadata]
content-hash = "31e245abc965de18a070191e854be0f3e7161386fb22439b0a297f187d94b3d7"
content-hash = "20c1d02c76ead833a0b43da34477554bdb262f20fd1b7a8b530a5bf551cd9d4a"
lock-version = "1.0"
python-versions = "~2.7 || ^3.5"
python-versions = "~2.7 || ^3.5"
[metadata.files]
[metadata.files]
...
@@ -1308,25 +1300,25 @@ crashtest = [
...
@@ -1308,25 +1300,25 @@ crashtest = [
{file = "crashtest-0.3.0.tar.gz", hash = "sha256:e9c06cc96400939ab5327123a3f699078eaad8a6283247d7b2ae0f6afffadf14"},
{file = "crashtest-0.3.0.tar.gz", hash = "sha256:e9c06cc96400939ab5327123a3f699078eaad8a6283247d7b2ae0f6afffadf14"},
]
]
cryptography = [
cryptography = [
{file = "cryptography-
2.9.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:daf54a4b07d67ad437ff239c8a4080cfd1cc7213df57d33c97de7b4738048d5e
"},
{file = "cryptography-
3.0-cp27-cp27m-macosx_10_10_x86_64.whl", hash = "sha256:ab49edd5bea8d8b39a44b3db618e4783ef84c19c8b47286bf05dfdb3efb01c83
"},
{file = "cryptography-
2.9.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:3b3eba865ea2754738616f87292b7f29448aec342a7c720956f8083d252bf28b
"},
{file = "cryptography-
3.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:124af7255ffc8e964d9ff26971b3a6153e1a8a220b9a685dc407976ecb27a06a
"},
{file = "cryptography-
2.9.2-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:c447cf087cf2dbddc1add6987bbe2f767ed5317adb2d08af940db517dd704365
"},
{file = "cryptography-
3.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:51e40123083d2f946794f9fe4adeeee2922b581fa3602128ce85ff813d85b81f
"},
{file = "cryptography-
2.9.2-cp27-cp27m-win32.whl", hash = "sha256:f118a95c7480f5be0df8afeb9a11bd199aa20afab7a96bcf20409b411a3a85f0
"},
{file = "cryptography-
3.0-cp27-cp27m-win32.whl", hash = "sha256:dea0ba7fe6f9461d244679efa968d215ea1f989b9c1957d7f10c21e5c7c09ad6
"},
{file = "cryptography-
2.9.2-cp27-cp27m-win_amd64.whl", hash = "sha256:c4fd17d92e9d55b84707f4fd09992081ba872d1a0c610c109c18e062e06a2e55
"},
{file = "cryptography-
3.0-cp27-cp27m-win_amd64.whl", hash = "sha256:8ecf9400d0893836ff41b6f977a33972145a855b6efeb605b49ee273c5e6469f
"},
{file = "cryptography-
2.9.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:d0d5aeaedd29be304848f1c5059074a740fa9f6f26b84c5b63e8b29e73dfc270
"},
{file = "cryptography-
3.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:0c608ff4d4adad9e39b5057de43657515c7da1ccb1807c3a27d4cf31fc923b4b
"},
{file = "cryptography-
2.9.2-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:1e4014639d3d73fbc5ceff206049c5a9a849cefd106a49fa7aaaa25cc0ce35cf
"},
{file = "cryptography-
3.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:bec7568c6970b865f2bcebbe84d547c52bb2abadf74cefce396ba07571109c67
"},
{file = "cryptography-
2.9.2-cp35-abi3-macosx_10_9_x86_64.whl", hash = "sha256:96c080ae7118c10fcbe6229ab43eb8b090fccd31a09ef55f83f690d1ef619a1
d"},
{file = "cryptography-
3.0-cp35-abi3-macosx_10_10_x86_64.whl", hash = "sha256:0cbfed8ea74631fe4de00630f4bb592dad564d57f73150d6f6796a24e76c76c
d"},
{file = "cryptography-
2.9.2-cp35-abi3-manylinux1_x86_64.whl", hash = "sha256:e993468c859d084d5579e2ebee101de8f5a27ce8e2159959b6673b418fd8c785
"},
{file = "cryptography-
3.0-cp35-abi3-manylinux1_x86_64.whl", hash = "sha256:a09fd9c1cca9a46b6ad4bea0a1f86ab1de3c0c932364dbcf9a6c2a5eeb44fa77
"},
{file = "cryptography-
2.9.2-cp35-abi3-manylinux2010_x86_64.whl", hash = "sha256:88c881dd5a147e08d1bdcf2315c04972381d026cdb803325c03fe2b4a8ed858b
"},
{file = "cryptography-
3.0-cp35-abi3-manylinux2010_x86_64.whl", hash = "sha256:ce82cc06588e5cbc2a7df3c8a9c778f2cb722f56835a23a68b5a7264726bb00c
"},
{file = "cryptography-
2.9.2-cp35-cp35m-win32.whl", hash = "sha256:651448cd2e3a6bc2bb76c3663785133c40d5e1a8c1a9c5429e4354201c6024ae
"},
{file = "cryptography-
3.0-cp35-cp35m-win32.whl", hash = "sha256:9367d00e14dee8d02134c6c9524bb4bd39d4c162456343d07191e2a0b5ec8b3b
"},
{file = "cryptography-
2.9.2-cp35-cp35m-win_amd64.whl", hash = "sha256:726086c17f94747cedbee6efa77e99ae170caebeb1116353c6cf0ab67ea6829b
"},
{file = "cryptography-
3.0-cp35-cp35m-win_amd64.whl", hash = "sha256:384d7c681b1ab904fff3400a6909261cae1d0939cc483a68bdedab282fb89a07
"},
{file = "cryptography-
2.9.2-cp36-cp36m-win32.whl", hash = "sha256:091d31c42f444c6f519485ed528d8b451d1a0c7bf30e8ca583a0cac44b8a0df6
"},
{file = "cryptography-
3.0-cp36-cp36m-win32.whl", hash = "sha256:4d355f2aee4a29063c10164b032d9fa8a82e2c30768737a2fd56d256146ad559
"},
{file = "cryptography-
2.9.2-cp36-cp36m-win_amd64.whl", hash = "sha256:bb1f0281887d89617b4c68e8db9a2c42b9efebf2702a3c5bf70599421a8623e3
"},
{file = "cryptography-
3.0-cp36-cp36m-win_amd64.whl", hash = "sha256:45741f5499150593178fc98d2c1a9c6722df88b99c821ad6ae298eff0ba1ae71
"},
{file = "cryptography-
2.9.2-cp37-cp37m-win32.whl", hash = "sha256:18452582a3c85b96014b45686af264563e3e5d99d226589f057ace56196ec78b
"},
{file = "cryptography-
3.0-cp37-cp37m-win32.whl", hash = "sha256:8ecef21ac982aa78309bb6f092d1677812927e8b5ef204a10c326fc29f1367e2
"},
{file = "cryptography-
2.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:22e91636a51170df0ae4dcbd250d318fd28c9f491c4e50b625a49964b24fe46e
"},
{file = "cryptography-
3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:4b9303507254ccb1181d1803a2080a798910ba89b1a3c9f53639885c90f7a756
"},
{file = "cryptography-
2.9.2-cp38-cp38-win32.whl", hash = "sha256:844a76bc04472e5135b909da6aed84360f522ff5dfa47f93e3dd2a0b84a89fa0
"},
{file = "cryptography-
3.0-cp38-cp38-win32.whl", hash = "sha256:8713ddb888119b0d2a1462357d5946b8911be01ddbf31451e1d07eaa5077a261
"},
{file = "cryptography-
2.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:1dfa985f62b137909496e7fc182dac687206d8d089dd03eaeb28ae16eec8e7d5
"},
{file = "cryptography-
3.0-cp38-cp38-win_amd64.whl", hash = "sha256:bea0b0468f89cdea625bb3f692cd7a4222d80a6bdafd6fb923963f2b9da0e15f
"},
{file = "cryptography-
2.9.2.tar.gz", hash = "sha256:a0c30272fb4ddda5f5ffc1089d7405b7a71b0b0f51993cb4e5dbb4590b2fc229
"},
{file = "cryptography-
3.0.tar.gz", hash = "sha256:8e924dbc025206e97756e8903039662aa58aa9ba357d8e1d8fc29e3092322053
"},
]
]
distlib = [
distlib = [
{file = "distlib-0.3.1-py2.py3-none-any.whl", hash = "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb"},
{file = "distlib-0.3.1-py2.py3-none-any.whl", hash = "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb"},
...
@@ -1445,11 +1437,6 @@ markupsafe = [
...
@@ -1445,11 +1437,6 @@ markupsafe = [
{file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"},
{file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"},
{file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"},
{file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"},
{file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"},
{file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"},
{file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"},
{file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"},
]
]
mkdocs = [
mkdocs = [
...
@@ -1464,6 +1451,8 @@ more-itertools = [
...
@@ -1464,6 +1451,8 @@ more-itertools = [
{file = "more-itertools-5.0.0.tar.gz", hash = "sha256:38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4"},
{file = "more-itertools-5.0.0.tar.gz", hash = "sha256:38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4"},
{file = "more_itertools-5.0.0-py2-none-any.whl", hash = "sha256:c0a5785b1109a6bd7fac76d6837fd1feca158e54e521ccd2ae8bfe393cc9d4fc"},
{file = "more_itertools-5.0.0-py2-none-any.whl", hash = "sha256:c0a5785b1109a6bd7fac76d6837fd1feca158e54e521ccd2ae8bfe393cc9d4fc"},
{file = "more_itertools-5.0.0-py3-none-any.whl", hash = "sha256:fe7a7cae1ccb57d33952113ff4fa1bc5f879963600ed74918f1236e212ee50b9"},
{file = "more_itertools-5.0.0-py3-none-any.whl", hash = "sha256:fe7a7cae1ccb57d33952113ff4fa1bc5f879963600ed74918f1236e212ee50b9"},
{file = "more-itertools-8.3.0.tar.gz", hash = "sha256:558bb897a2232f5e4f8e2399089e35aecb746e1f9191b6584a151647e89267be"},
{file = "more_itertools-8.3.0-py3-none-any.whl", hash = "sha256:7818f596b1e87be009031c7653d01acc46ed422e6656b394b0f765ce66ed4982"},
{file = "more-itertools-8.4.0.tar.gz", hash = "sha256:68c70cc7167bdf5c7c9d8f6954a7837089c6a36bf565383919bb595efb8a17e5"},
{file = "more-itertools-8.4.0.tar.gz", hash = "sha256:68c70cc7167bdf5c7c9d8f6954a7837089c6a36bf565383919bb595efb8a17e5"},
{file = "more_itertools-8.4.0-py3-none-any.whl", hash = "sha256:b78134b2063dd214000685165d81c154522c3ee0a1c0d4d113c80361c234c5a2"},
{file = "more_itertools-8.4.0-py3-none-any.whl", hash = "sha256:b78134b2063dd214000685165d81c154522c3ee0a1c0d4d113c80361c234c5a2"},
]
]
...
@@ -1523,8 +1512,8 @@ pluggy = [
...
@@ -1523,8 +1512,8 @@ pluggy = [
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
]
]
poetry-core = [
poetry-core = [
{file = "poetry-core-1.0.0a
8.tar.gz", hash = "sha256:02237e5abaa4fda4ef865cc49111a3f8a7999cfb149b30d5e93f85c3acdc4d95
"},
{file = "poetry-core-1.0.0a
9.tar.gz", hash = "sha256:f08e9829fd06609ca5615faa91739b589eb71e025a6aaf7ddffb698676eb7c8c
"},
{file = "poetry_core-1.0.0a
8-py2.py3-none-any.whl", hash = "sha256:d7d9e702fbae06c05abb1ada63678e940d746b2696f4601b951b27ac7c2c5337
"},
{file = "poetry_core-1.0.0a
9-py2.py3-none-any.whl", hash = "sha256:79a63629ae44533ba9aa828e0eff0002c61b3af5fc9bec212e006cc643f4eb19
"},
]
]
pre-commit = [
pre-commit = [
{file = "pre_commit-2.6.0-py2.py3-none-any.whl", hash = "sha256:e8b1315c585052e729ab7e99dcca5698266bedce9067d21dc909c23e3ceed626"},
{file = "pre_commit-2.6.0-py2.py3-none-any.whl", hash = "sha256:e8b1315c585052e729ab7e99dcca5698266bedce9067d21dc909c23e3ceed626"},
...
@@ -1659,7 +1648,6 @@ six = [
...
@@ -1659,7 +1648,6 @@ six = [
]
]
subprocess32 = [
subprocess32 = [
{file = "subprocess32-3.5.4-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:88e37c1aac5388df41cc8a8456bb49ebffd321a3ad4d70358e3518176de3a56b"},
{file = "subprocess32-3.5.4-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:88e37c1aac5388df41cc8a8456bb49ebffd321a3ad4d70358e3518176de3a56b"},
{file = "subprocess32-3.5.4-cp27-cp27mu-manylinux2014_x86_64.whl", hash = "sha256:e45d985aef903c5b7444d34350b05da91a9e0ea015415ab45a21212786c649d0"},
{file = "subprocess32-3.5.4.tar.gz", hash = "sha256:eb2937c80497978d181efa1b839ec2d9622cf9600a039a79d0e108d1f9aec79d"},
{file = "subprocess32-3.5.4.tar.gz", hash = "sha256:eb2937c80497978d181efa1b839ec2d9622cf9600a039a79d0e108d1f9aec79d"},
]
]
termcolor = [
termcolor = [
...
...
poetry/console/commands/build.py
View file @
5484122c
...
@@ -13,6 +13,7 @@ class BuildCommand(EnvCommand):
...
@@ -13,6 +13,7 @@ class BuildCommand(EnvCommand):
]
]
loggers
=
[
loggers
=
[
"poetry.core.masonry.builders.builder"
,
"poetry.core.masonry.builders.sdist"
,
"poetry.core.masonry.builders.sdist"
,
"poetry.core.masonry.builders.wheel"
,
"poetry.core.masonry.builders.wheel"
,
]
]
...
...
poetry/console/config/application_config.py
View file @
5484122c
...
@@ -90,6 +90,11 @@ class ApplicationConfig(BaseApplicationConfig):
...
@@ -90,6 +90,11 @@ class ApplicationConfig(BaseApplicationConfig):
logger
.
handlers
=
[
handler
]
logger
.
handlers
=
[
handler
]
level
=
logging
.
WARNING
level
=
logging
.
WARNING
# The builders loggers are special and we can actually
# start at the INFO level.
if
logger
.
name
.
startswith
(
"poetry.core.masonry.builders"
):
level
=
logging
.
INFO
if
io
.
is_debug
():
if
io
.
is_debug
():
level
=
logging
.
DEBUG
level
=
logging
.
DEBUG
elif
io
.
is_very_verbose
()
or
io
.
is_verbose
():
elif
io
.
is_very_verbose
()
or
io
.
is_verbose
():
...
...
poetry/console/logging/formatters/__init__.py
View file @
5484122c
...
@@ -2,6 +2,7 @@ from .builder_formatter import BuilderLogFormatter
...
@@ -2,6 +2,7 @@ from .builder_formatter import BuilderLogFormatter
FORMATTERS
=
{
FORMATTERS
=
{
"poetry.core.masonry.builders.builder"
:
BuilderLogFormatter
(),
"poetry.core.masonry.builders.sdist"
:
BuilderLogFormatter
(),
"poetry.core.masonry.builders.sdist"
:
BuilderLogFormatter
(),
"poetry.core.masonry.builders.wheel"
:
BuilderLogFormatter
(),
"poetry.core.masonry.builders.wheel"
:
BuilderLogFormatter
(),
}
}
poetry/console/logging/formatters/builder_formatter.py
View file @
5484122c
...
@@ -5,9 +5,17 @@ from .formatter import Formatter
...
@@ -5,9 +5,17 @@ from .formatter import Formatter
class
BuilderLogFormatter
(
Formatter
):
class
BuilderLogFormatter
(
Formatter
):
def
format
(
self
,
msg
):
# type: (str) -> str
def
format
(
self
,
msg
):
# type: (str) -> str
if
msg
.
startswith
(
" - Building "
)
or
msg
.
startswith
(
" - Built "
):
if
msg
.
startswith
(
"Building "
):
msg
=
re
.
sub
(
r" - (Buil(?:t|ing)) (.+)"
,
" -
\\
1 <c2>
\\
2</c2>"
,
msg
)
msg
=
re
.
sub
(
"Building (.+)"
,
" - Building <info>
\\
1</info>"
,
msg
)
elif
msg
.
startswith
(
" - Adding: "
):
elif
msg
.
startswith
(
"Built "
):
msg
=
re
.
sub
(
r" - Adding: (.+)"
,
" - Adding: <b>
\\
1</b>"
,
msg
)
msg
=
re
.
sub
(
"Built (.+)"
,
" - Built <success>
\\
1</success>"
,
msg
)
elif
msg
.
startswith
(
"Adding: "
):
msg
=
re
.
sub
(
"Adding: (.+)"
,
" - Adding: <b>
\\
1</b>"
,
msg
)
elif
msg
.
startswith
(
"Executing build script: "
):
msg
=
re
.
sub
(
"Executing build script: (.+)"
,
" - Executing build script: <b>
\\
1</b>"
,
msg
,
)
return
msg
return
msg
poetry/console/logging/io_handler.py
View file @
5484122c
...
@@ -5,13 +5,7 @@ class IOHandler(logging.Handler):
...
@@ -5,13 +5,7 @@ class IOHandler(logging.Handler):
def
__init__
(
self
,
io
):
def
__init__
(
self
,
io
):
self
.
_io
=
io
self
.
_io
=
io
level
=
logging
.
WARNING
super
(
IOHandler
,
self
)
.
__init__
()
if
io
.
is_debug
():
level
=
logging
.
DEBUG
elif
io
.
is_very_verbose
()
or
io
.
is_verbose
():
level
=
logging
.
INFO
super
(
IOHandler
,
self
)
.
__init__
(
level
)
def
emit
(
self
,
record
):
def
emit
(
self
,
record
):
try
:
try
:
...
...
pyproject.toml
View file @
5484122c
...
@@ -24,7 +24,7 @@ classifiers = [
...
@@ -24,7 +24,7 @@ classifiers = [
[tool.poetry.dependencies]
[tool.poetry.dependencies]
python
=
"~2.7 || ^3.5"
python
=
"~2.7 || ^3.5"
poetry-core
=
"^1.0.0a
8
"
poetry-core
=
"^1.0.0a
9
"
cleo
=
"^0.8.1"
cleo
=
"^0.8.1"
clikit
=
"^0.6.2"
clikit
=
"^0.6.2"
crashtest
=
{
version
=
"^0.3.0"
,
python
=
"^3.6"
}
crashtest
=
{
version
=
"^0.3.0"
,
python
=
"^3.6"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment