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
65ff74a9
Commit
65ff74a9
authored
Aug 14, 2022
by
Randy Döring
Committed by
Bjorn Neergaard
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mypy: adapt type hints to change in poetry-core#442
parent
d1dbdefc
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
85 additions
and
60 deletions
+85
-60
poetry.lock
+55
-46
pyproject.toml
+1
-1
src/poetry/console/commands/init.py
+2
-1
src/poetry/console/commands/show.py
+2
-1
src/poetry/installation/installer.py
+1
-0
src/poetry/repositories/legacy_repository.py
+5
-2
src/poetry/repositories/pypi_repository.py
+6
-3
src/poetry/repositories/repository.py
+4
-1
src/poetry/utils/env.py
+3
-2
src/poetry/utils/extras.py
+5
-2
tests/utils/test_extras.py
+1
-1
No files found.
poetry.lock
View file @
65ff74a9
...
@@ -110,7 +110,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
...
@@ -110,7 +110,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
[[package]]
name = "coverage"
name = "coverage"
version = "6.4.
3
"
version = "6.4.
4
"
description = "Code coverage measurement for Python"
description = "Code coverage measurement for Python"
category = "dev"
category = "dev"
optional = false
optional = false
...
@@ -444,7 +444,7 @@ testing = ["pytest", "pytest-benchmark"]
...
@@ -444,7 +444,7 @@ testing = ["pytest", "pytest-benchmark"]
[[package]]
[[package]]
name = "poetry-core"
name = "poetry-core"
version = "1.1.0
b3
"
version = "1.1.0
rc1
"
description = "Poetry PEP 517 Build Backend"
description = "Poetry PEP 517 Build Backend"
category = "main"
category = "main"
optional = false
optional = false
...
@@ -888,7 +888,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-
...
@@ -888,7 +888,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-
[metadata]
[metadata]
lock-version = "1.1"
lock-version = "1.1"
python-versions = "^3.7"
python-versions = "^3.7"
content-hash = "
5f82ec1a5c13c6bec3e428cb9468204f986d5ebcbe0b2d5e19e929c4f16e816b
"
content-hash = "
456ca5c1feac6de29d4877117b37ae015d7b52e373b89618e6b69d67fcdf9b74
"
[metadata.files]
[metadata.files]
atomicwrites = [
atomicwrites = [
...
@@ -980,47 +980,56 @@ colorama = [
...
@@ -980,47 +980,56 @@ colorama = [
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
]
]
coverage = [
coverage = [
{file = "coverage-6.4.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f50d3a822947572496ea922ee7825becd8e3ae6fbd2400cd8236b7d64b17f285"},
{file = "coverage-6.4.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e7b4da9bafad21ea45a714d3ea6f3e1679099e420c8741c74905b92ee9bfa7cc"},
{file = "coverage-6.4.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d5191d53afbe5b6059895fa7f58223d3751c42b8101fb3ce767e1a0b1a1d8f87"},
{file = "coverage-6.4.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fde17bc42e0716c94bf19d92e4c9f5a00c5feb401f5bc01101fdf2a8b7cacf60"},
{file = "coverage-6.4.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:04010af3c06ce2bfeb3b1e4e05d136f88d88c25f76cd4faff5d1fd84d11581ea"},
{file = "coverage-6.4.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdbb0d89923c80dbd435b9cf8bba0ff55585a3cdb28cbec65f376c041472c60d"},
{file = "coverage-6.4.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6630d8d943644ea62132789940ca97d05fac83f73186eaf0930ffa715fbdab6b"},
{file = "coverage-6.4.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:67f9346aeebea54e845d29b487eb38ec95f2ecf3558a3cffb26ee3f0dcc3e760"},
{file = "coverage-6.4.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:05de0762c1caed4a162b3e305f36cf20a548ff4da0be6766ad5c870704be3660"},
{file = "coverage-6.4.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42c499c14efd858b98c4e03595bf914089b98400d30789511577aa44607a1b74"},
{file = "coverage-6.4.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0e3a41aad5919613483aad9ebd53336905cab1bd6788afd3995c2a972d89d795"},
{file = "coverage-6.4.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:c35cca192ba700979d20ac43024a82b9b32a60da2f983bec6c0f5b84aead635c"},
{file = "coverage-6.4.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a2738ba1ee544d6f294278cfb6de2dc1f9a737a780469b5366e662a218f806c3"},
{file = "coverage-6.4.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:9cc4f107009bca5a81caef2fca843dbec4215c05e917a59dec0c8db5cff1d2aa"},
{file = "coverage-6.4.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a0d2df4227f645a879010461df2cea6b7e3fb5a97d7eafa210f7fb60345af9e8"},
{file = "coverage-6.4.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5f444627b3664b80d078c05fe6a850dd711beeb90d26731f11d492dcbadb6973"},
{file = "coverage-6.4.3-cp310-cp310-win32.whl", hash = "sha256:73a10939dc345460ca0655356a470dd3de9759919186a82383c87b6eb315faf2"},
{file = "coverage-6.4.4-cp310-cp310-win32.whl", hash = "sha256:66e6df3ac4659a435677d8cd40e8eb1ac7219345d27c41145991ee9bf4b806a0"},
{file = "coverage-6.4.3-cp310-cp310-win_amd64.whl", hash = "sha256:53c8edd3b83a4ddba3d8c506f1359401e7770b30f2188f15c17a338adf5a14db"},
{file = "coverage-6.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:35ef1f8d8a7a275aa7410d2f2c60fa6443f4a64fae9be671ec0696a68525b875"},
{file = "coverage-6.4.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:f1eda5cae434282712e40b42aaf590b773382afc3642786ac3ed39053973f61f"},
{file = "coverage-6.4.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c1328d0c2f194ffda30a45f11058c02410e679456276bfa0bbe0b0ee87225fac"},
{file = "coverage-6.4.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59fc88bc13e30f25167e807b8cad3c41b7218ef4473a20c86fd98a7968733083"},
{file = "coverage-6.4.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61b993f3998ee384935ee423c3d40894e93277f12482f6e777642a0141f55782"},
{file = "coverage-6.4.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d75314b00825d70e1e34b07396e23f47ed1d4feedc0122748f9f6bd31a544840"},
{file = "coverage-6.4.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d5dd4b8e9cd0deb60e6fcc7b0647cbc1da6c33b9e786f9c79721fd303994832f"},
{file = "coverage-6.4.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:52f8b9fcf3c5e427d51bbab1fb92b575a9a9235d516f175b24712bcd4b5be917"},
{file = "coverage-6.4.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7026f5afe0d1a933685d8f2169d7c2d2e624f6255fb584ca99ccca8c0e966fd7"},
{file = "coverage-6.4.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:5a559aab40c716de80c7212295d0dc96bc1b6c719371c20dd18c5187c3155518"},
{file = "coverage-6.4.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9c7b9b498eb0c0d48b4c2abc0e10c2d78912203f972e0e63e3c9dc21f15abdaa"},
{file = "coverage-6.4.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:306788fd019bb90e9cbb83d3f3c6becad1c048dd432af24f8320cf38ac085684"},
{file = "coverage-6.4.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:ee2b2fb6eb4ace35805f434e0f6409444e1466a47f620d1d5763a22600f0f892"},
{file = "coverage-6.4.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:920a734fe3d311ca01883b4a19aa386c97b82b69fbc023458899cff0a0d621b9"},
{file = "coverage-6.4.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ab066f5ab67059d1f1000b5e1aa8bbd75b6ed1fc0014559aea41a9eb66fc2ce0"},
{file = "coverage-6.4.3-cp37-cp37m-win32.whl", hash = "sha256:ab9ef0187d6c62b09dec83a84a3b94f71f9690784c84fd762fb3cf2d2b44c914"},
{file = "coverage-6.4.4-cp311-cp311-win32.whl", hash = "sha256:9d6e1f3185cbfd3d91ac77ea065d85d5215d3dfa45b191d14ddfcd952fa53796"},
{file = "coverage-6.4.3-cp37-cp37m-win_amd64.whl", hash = "sha256:39ebd8e120cb77a06ee3d5fc26f9732670d1c397d7cd3acf02f6f62693b89b80"},
{file = "coverage-6.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:e3d3c4cc38b2882f9a15bafd30aec079582b819bec1b8afdbde8f7797008108a"},
{file = "coverage-6.4.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:bc698580216050b5f4a34d2cdd2838b429c53314f1c4835fab7338200a8396f2"},
{file = "coverage-6.4.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a095aa0a996ea08b10580908e88fbaf81ecf798e923bbe64fb98d1807db3d68a"},
{file = "coverage-6.4.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:877ee5478fd78e100362aed56db47ccc5f23f6e7bb035a8896855f4c3e49bc9b"},
{file = "coverage-6.4.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef6f44409ab02e202b31a05dd6666797f9de2aa2b4b3534e9d450e42dea5e817"},
{file = "coverage-6.4.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:555a498999c44f5287cc95500486cd0d4f021af9162982cbe504d4cb388f73b5"},
{file = "coverage-6.4.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b7101938584d67e6f45f0015b60e24a95bf8dea19836b1709a80342e01b472f"},
{file = "coverage-6.4.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eff095a5aac7011fdb51a2c82a8fae9ec5211577f4b764e1e59cfa27ceeb1b59"},
{file = "coverage-6.4.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14a32ec68d721c3d714d9b105c7acf8e0f8a4f4734c811eda75ff3718570b5e3"},
{file = "coverage-6.4.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5de1e9335e2569974e20df0ce31493d315a830d7987e71a24a2a335a8d8459d3"},
{file = "coverage-6.4.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:6a864733b22d3081749450466ac80698fe39c91cb6849b2ef8752fd7482011f3"},
{file = "coverage-6.4.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:7856ea39059d75f822ff0df3a51ea6d76307c897048bdec3aad1377e4e9dca20"},
{file = "coverage-6.4.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:08002f9251f51afdcc5e3adf5d5d66bb490ae893d9e21359b085f0e03390a820"},
{file = "coverage-6.4.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:411fdd9f4203afd93b056c0868c8f9e5e16813e765de962f27e4e5798356a052"},
{file = "coverage-6.4.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:a3b2752de32c455f2521a51bd3ffb53c5b3ae92736afde67ce83477f5c1dd928"},
{file = "coverage-6.4.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:cdf7b83f04a313a21afb1f8730fe4dd09577fefc53bbdfececf78b2006f4268e"},
{file = "coverage-6.4.4-cp37-cp37m-win32.whl", hash = "sha256:f855b39e4f75abd0dfbcf74a82e84ae3fc260d523fcb3532786bcbbcb158322c"},
{file = "coverage-6.4.3-cp38-cp38-win32.whl", hash = "sha256:ab2b1a89d2bc7647622e9eaf06128a5b5451dccf7c242deaa31420b055716481"},
{file = "coverage-6.4.4-cp37-cp37m-win_amd64.whl", hash = "sha256:ee6ae6bbcac0786807295e9687169fba80cb0617852b2fa118a99667e8e6815d"},
{file = "coverage-6.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:0e34247274bde982bbc613894d33f9e36358179db2ed231dd101c48dd298e7b0"},
{file = "coverage-6.4.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:564cd0f5b5470094df06fab676c6d77547abfdcb09b6c29c8a97c41ad03b103c"},
{file = "coverage-6.4.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b104b6b1827d6a22483c469e3983a204bcf9c6bf7544bf90362c4654ebc2edf3"},
{file = "coverage-6.4.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cbbb0e4cd8ddcd5ef47641cfac97d8473ab6b132dd9a46bacb18872828031685"},
{file = "coverage-6.4.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:adf1a0d272633b21d645dd6e02e3293429c1141c7d65a58e4cbcd592d53b8e01"},
{file = "coverage-6.4.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6113e4df2fa73b80f77663445be6d567913fb3b82a86ceb64e44ae0e4b695de1"},
{file = "coverage-6.4.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ff9832434a9193fbd716fbe05f9276484e18d26cc4cf850853594bb322807ac3"},
{file = "coverage-6.4.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8d032bfc562a52318ae05047a6eb801ff31ccee172dc0d2504614e911d8fa83e"},
{file = "coverage-6.4.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:923f9084d7e1d31b5f74c92396b05b18921ed01ee5350402b561a79dce3ea48d"},
{file = "coverage-6.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e431e305a1f3126477abe9a184624a85308da8edf8486a863601d58419d26ffa"},
{file = "coverage-6.4.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4d64304acf79766e650f7acb81d263a3ea6e2d0d04c5172b7189180ff2c023c"},
{file = "coverage-6.4.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:cf2afe83a53f77aec067033199797832617890e15bed42f4a1a93ea24794ae3e"},
{file = "coverage-6.4.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:fc294de50941d3da66a09dca06e206297709332050973eca17040278cb0918ff"},
{file = "coverage-6.4.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:783bc7c4ee524039ca13b6d9b4186a67f8e63d91342c713e88c1865a38d0892a"},
{file = "coverage-6.4.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:a42eaaae772f14a5194f181740a67bfd48e8806394b8c67aa4399e09d0d6b5db"},
{file = "coverage-6.4.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ff934ced84054b9018665ca3967fc48e1ac99e811f6cc99ea65978e1d384454b"},
{file = "coverage-6.4.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4822327b35cb032ff16af3bec27f73985448f08e874146b5b101e0e558b613dd"},
{file = "coverage-6.4.4-cp38-cp38-win32.whl", hash = "sha256:e1fabd473566fce2cf18ea41171d92814e4ef1495e04471786cbc943b89a3781"},
{file = "coverage-6.4.3-cp39-cp39-win32.whl", hash = "sha256:f217850ac0e046ede611312703423767ca032a7b952b5257efac963942c055de"},
{file = "coverage-6.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:4179502f210ebed3ccfe2f78bf8e2d59e50b297b598b100d6c6e3341053066a2"},
{file = "coverage-6.4.3-cp39-cp39-win_amd64.whl", hash = "sha256:0a84376e4fd13cebce2c0ef8c2f037929c8307fb94af1e5dbe50272a1c651b5d"},
{file = "coverage-6.4.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:98c0b9e9b572893cdb0a00e66cf961a238f8d870d4e1dc8e679eb8bdc2eb1b86"},
{file = "coverage-6.4.3-pp36.pp37.pp38-none-any.whl", hash = "sha256:068d6f2a893af838291b8809c876973d885543411ea460f3e6886ac0ee941732"},
{file = "coverage-6.4.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc600f6ec19b273da1d85817eda339fb46ce9eef3e89f220055d8696e0a06908"},
{file = "coverage-6.4.3.tar.gz", hash = "sha256:ec2ae1f398e5aca655b7084392d23e80efb31f7a660d2eecf569fb9f79b3fb94"},
{file = "coverage-6.4.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a98d6bf6d4ca5c07a600c7b4e0c5350cd483c85c736c522b786be90ea5bac4f"},
{file = "coverage-6.4.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01778769097dbd705a24e221f42be885c544bb91251747a8a3efdec6eb4788f2"},
{file = "coverage-6.4.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dfa0b97eb904255e2ab24166071b27408f1f69c8fbda58e9c0972804851e0558"},
{file = "coverage-6.4.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:fcbe3d9a53e013f8ab88734d7e517eb2cd06b7e689bedf22c0eb68db5e4a0a19"},
{file = "coverage-6.4.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:15e38d853ee224e92ccc9a851457fb1e1f12d7a5df5ae44544ce7863691c7a0d"},
{file = "coverage-6.4.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:6913dddee2deff8ab2512639c5168c3e80b3ebb0f818fed22048ee46f735351a"},
{file = "coverage-6.4.4-cp39-cp39-win32.whl", hash = "sha256:354df19fefd03b9a13132fa6643527ef7905712109d9c1c1903f2133d3a4e145"},
{file = "coverage-6.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:1238b08f3576201ebf41f7c20bf59baa0d05da941b123c6656e42cdb668e9827"},
{file = "coverage-6.4.4-pp36.pp37.pp38-none-any.whl", hash = "sha256:f67cf9f406cf0d2f08a3515ce2db5b82625a7257f88aad87904674def6ddaec1"},
{file = "coverage-6.4.4.tar.gz", hash = "sha256:e16c45b726acb780e1e6f88b286d3c10b3914ab03438f32117c4aa52d7f30d58"},
]
]
crashtest = [
crashtest = [
{file = "crashtest-0.3.1-py3-none-any.whl", hash = "sha256:300f4b0825f57688b47b6d70c6a31de33512eb2fa1ac614f780939aa0cf91680"},
{file = "crashtest-0.3.1-py3-none-any.whl", hash = "sha256:300f4b0825f57688b47b6d70c6a31de33512eb2fa1ac614f780939aa0cf91680"},
...
@@ -1239,8 +1248,8 @@ pluggy = [
...
@@ -1239,8 +1248,8 @@ pluggy = [
{file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"},
{file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"},
]
]
poetry-core = [
poetry-core = [
{file = "poetry-core-1.1.0
b3.tar.gz", hash = "sha256:ea257bb0aab15008d1680cc221a46f3457a3b36f3d463736f552497f0b6b9350
"},
{file = "poetry-core-1.1.0
rc1.tar.gz", hash = "sha256:993ebe45b3fe06deb022a0fd5483d760211f37eef6337122caa098d75d7da1f3
"},
{file = "poetry_core-1.1.0
b3-py3-none-any.whl", hash = "sha256:2b65b697e22fc6fc9b60afcadfd4421db796d30d558a003654b5e67e3b262ea
a"},
{file = "poetry_core-1.1.0
rc1-py3-none-any.whl", hash = "sha256:4a5ae0cda9df52fa6725d6afecca7b3207576c4e896c18b1e20cf3a57e4f513
a"},
]
]
poetry-plugin-export = [
poetry-plugin-export = [
{file = "poetry-plugin-export-1.0.6.tar.gz", hash = "sha256:af870afceb38e583afa57bcfadfa5cd35ebd74e35aacadcb802bb3a073c13adb"},
{file = "poetry-plugin-export-1.0.6.tar.gz", hash = "sha256:af870afceb38e583afa57bcfadfa5cd35ebd74e35aacadcb802bb3a073c13adb"},
...
...
pyproject.toml
View file @
65ff74a9
...
@@ -44,7 +44,7 @@ generate-setup-file = false
...
@@ -44,7 +44,7 @@ generate-setup-file = false
[tool.poetry.dependencies]
[tool.poetry.dependencies]
python
=
"^3.7"
python
=
"^3.7"
poetry-core
=
"^1.1.0
b3
"
poetry-core
=
"^1.1.0
rc1
"
poetry-plugin-export
=
"^1.0.6"
poetry-plugin-export
=
"^1.0.6"
cachecontrol
=
{
version
=
"^0.12.9"
,
extras
=
["filecache"]
}
cachecontrol
=
{
version
=
"^0.12.9"
,
extras
=
["filecache"]
}
cachy
=
"^0.3.0"
cachy
=
"^0.3.0"
...
...
src/poetry/console/commands/init.py
View file @
65ff74a9
...
@@ -19,6 +19,7 @@ from poetry.utils.dependency_specification import parse_dependency_specification
...
@@ -19,6 +19,7 @@ from poetry.utils.dependency_specification import parse_dependency_specification
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
packaging.utils
import
NormalizedName
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
from
tomlkit.items
import
InlineTable
from
tomlkit.items
import
InlineTable
...
@@ -238,7 +239,7 @@ You can specify a package in the following forms:
...
@@ -238,7 +239,7 @@ You can specify a package in the following forms:
return
0
return
0
def
_generate_choice_list
(
def
_generate_choice_list
(
self
,
matches
:
list
[
Package
],
canonicalized_name
:
str
self
,
matches
:
list
[
Package
],
canonicalized_name
:
NormalizedName
)
->
list
[
str
]:
)
->
list
[
str
]:
choices
=
[]
choices
=
[]
matches_names
=
[
p
.
name
for
p
in
matches
]
matches_names
=
[
p
.
name
for
p
in
matches
]
...
...
src/poetry/console/commands/show.py
View file @
65ff74a9
...
@@ -11,6 +11,7 @@ from poetry.console.commands.group_command import GroupCommand
...
@@ -11,6 +11,7 @@ from poetry.console.commands.group_command import GroupCommand
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
cleo.io.io
import
IO
from
cleo.io.io
import
IO
from
packaging.utils
import
NormalizedName
from
poetry.core.packages.dependency
import
Dependency
from
poetry.core.packages.dependency
import
Dependency
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.packages.project_package
import
ProjectPackage
...
@@ -423,7 +424,7 @@ lists all packages available."""
...
@@ -423,7 +424,7 @@ lists all packages available."""
io
:
IO
,
io
:
IO
,
dependency
:
Dependency
,
dependency
:
Dependency
,
installed_packages
:
list
[
Package
],
installed_packages
:
list
[
Package
],
packages_in_tree
:
list
[
str
],
packages_in_tree
:
list
[
NormalizedName
],
previous_tree_bar
:
str
=
"├"
,
previous_tree_bar
:
str
=
"├"
,
level
:
int
=
1
,
level
:
int
=
1
,
)
->
None
:
)
->
None
:
...
...
src/poetry/installation/installer.py
View file @
65ff74a9
...
@@ -544,6 +544,7 @@ class Installer:
...
@@ -544,6 +544,7 @@ class Installer:
Maybe we just let the solver handle it?
Maybe we just let the solver handle it?
"""
"""
extras
:
dict
[
str
,
list
[
str
]]
if
self
.
_update
:
if
self
.
_update
:
extras
=
{
k
:
[
d
.
name
for
d
in
v
]
for
k
,
v
in
self
.
_package
.
extras
.
items
()}
extras
=
{
k
:
[
d
.
name
for
d
in
v
]
for
k
,
v
in
self
.
_package
.
extras
.
items
()}
else
:
else
:
...
...
src/poetry/repositories/legacy_repository.py
View file @
65ff74a9
...
@@ -14,6 +14,7 @@ from poetry.repositories.link_sources.html import SimpleRepositoryPage
...
@@ -14,6 +14,7 @@ from poetry.repositories.link_sources.html import SimpleRepositoryPage
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
packaging.utils
import
NormalizedName
from
poetry.core.packages.utils.link
import
Link
from
poetry.core.packages.utils.link
import
Link
from
poetry.core.semver.version_constraint
import
VersionConstraint
from
poetry.core.semver.version_constraint
import
VersionConstraint
...
@@ -66,13 +67,15 @@ class LegacyRepository(HTTPRepository):
...
@@ -66,13 +67,15 @@ class LegacyRepository(HTTPRepository):
return
list
(
page
.
links_for_version
(
package
.
name
,
package
.
version
))
return
list
(
page
.
links_for_version
(
package
.
name
,
package
.
version
))
def
_find_packages
(
self
,
name
:
str
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
def
_find_packages
(
self
,
name
:
NormalizedName
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
"""
"""
Find packages on the remote server.
Find packages on the remote server.
"""
"""
versions
:
list
[
Version
]
versions
:
list
[
Version
]
key
=
name
key
:
str
=
name
if
not
constraint
.
is_any
():
if
not
constraint
.
is_any
():
key
=
f
"{key}:{constraint!s}"
key
=
f
"{key}:{constraint!s}"
...
...
src/poetry/repositories/pypi_repository.py
View file @
65ff74a9
...
@@ -27,6 +27,7 @@ logger = logging.getLogger(__name__)
...
@@ -27,6 +27,7 @@ logger = logging.getLogger(__name__)
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
packaging.utils
import
NormalizedName
from
poetry.core.semver.version_constraint
import
VersionConstraint
from
poetry.core.semver.version_constraint
import
VersionConstraint
...
@@ -90,7 +91,7 @@ class PyPiRepository(HTTPRepository):
...
@@ -90,7 +91,7 @@ class PyPiRepository(HTTPRepository):
return
results
return
results
def
get_package_info
(
self
,
name
:
str
)
->
dict
[
str
,
Any
]:
def
get_package_info
(
self
,
name
:
NormalizedName
)
->
dict
[
str
,
Any
]:
"""
"""
Return the package information given its name.
Return the package information given its name.
...
@@ -105,7 +106,9 @@ class PyPiRepository(HTTPRepository):
...
@@ -105,7 +106,9 @@ class PyPiRepository(HTTPRepository):
)
)
return
package_info
return
package_info
def
_find_packages
(
self
,
name
:
str
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
def
_find_packages
(
self
,
name
:
NormalizedName
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
"""
"""
Find packages on the remote server.
Find packages on the remote server.
"""
"""
...
@@ -145,7 +148,7 @@ class PyPiRepository(HTTPRepository):
...
@@ -145,7 +148,7 @@ class PyPiRepository(HTTPRepository):
return
packages
return
packages
def
_get_package_info
(
self
,
name
:
str
)
->
dict
[
str
,
Any
]:
def
_get_package_info
(
self
,
name
:
NormalizedName
)
->
dict
[
str
,
Any
]:
data
=
self
.
_get
(
f
"pypi/{name}/json"
)
data
=
self
.
_get
(
f
"pypi/{name}/json"
)
if
data
is
None
:
if
data
is
None
:
raise
PackageNotFound
(
f
"Package [{name}] not found."
)
raise
PackageNotFound
(
f
"Package [{name}] not found."
)
...
...
src/poetry/repositories/repository.py
View file @
65ff74a9
...
@@ -12,6 +12,7 @@ from poetry.repositories.exceptions import PackageNotFound
...
@@ -12,6 +12,7 @@ from poetry.repositories.exceptions import PackageNotFound
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
packaging.utils
import
NormalizedName
from
poetry.core.packages.dependency
import
Dependency
from
poetry.core.packages.dependency
import
Dependency
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.utils.link
import
Link
from
poetry.core.packages.utils.link
import
Link
...
@@ -112,7 +113,9 @@ class Repository:
...
@@ -112,7 +113,9 @@ class Repository:
return
constraint
,
allow_prereleases
return
constraint
,
allow_prereleases
def
_find_packages
(
self
,
name
:
str
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
def
_find_packages
(
self
,
name
:
NormalizedName
,
constraint
:
VersionConstraint
)
->
list
[
Package
]:
return
[
return
[
package
package
for
package
in
self
.
_packages
for
package
in
self
.
_packages
...
...
src/poetry/utils/env.py
View file @
65ff74a9
...
@@ -641,8 +641,9 @@ class EnvManager:
...
@@ -641,8 +641,9 @@ class EnvManager:
def
deactivate
(
self
,
io
:
IO
)
->
None
:
def
deactivate
(
self
,
io
:
IO
)
->
None
:
venv_path
=
self
.
_poetry
.
config
.
virtualenvs_path
venv_path
=
self
.
_poetry
.
config
.
virtualenvs_path
name
=
self
.
_poetry
.
package
.
name
name
=
self
.
generate_env_name
(
name
=
self
.
generate_env_name
(
name
,
str
(
self
.
_poetry
.
file
.
parent
))
self
.
_poetry
.
package
.
name
,
str
(
self
.
_poetry
.
file
.
parent
)
)
envs_file
=
TOMLFile
(
venv_path
/
self
.
ENVS_FILE
)
envs_file
=
TOMLFile
(
venv_path
/
self
.
ENVS_FILE
)
if
envs_file
.
exists
():
if
envs_file
.
exists
():
...
...
src/poetry/utils/extras.py
View file @
65ff74a9
...
@@ -9,6 +9,7 @@ if TYPE_CHECKING:
...
@@ -9,6 +9,7 @@ if TYPE_CHECKING:
from
collections.abc
import
Sequence
from
collections.abc
import
Sequence
from
typing
import
Mapping
from
typing
import
Mapping
from
packaging.utils
import
NormalizedName
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
...
@@ -43,13 +44,15 @@ def get_extra_package_names(
...
@@ -43,13 +44,15 @@ def get_extra_package_names(
# keep record of packages seen during recursion in order to avoid recursion error
# keep record of packages seen during recursion in order to avoid recursion error
seen_package_names
=
set
()
seen_package_names
=
set
()
def
_extra_packages
(
package_names
:
Iterable
[
str
])
->
Iterator
[
str
]:
def
_extra_packages
(
package_names
:
Iterable
[
NormalizedName
],
)
->
Iterator
[
NormalizedName
]:
"""Recursively find dependencies for packages names"""
"""Recursively find dependencies for packages names"""
# for each extra package name
# for each extra package name
for
package_name
in
package_names
:
for
package_name
in
package_names
:
# Find the actual Package object. A missing key indicates an implicit
# Find the actual Package object. A missing key indicates an implicit
# dependency (like setuptools), which should be ignored
# dependency (like setuptools), which should be ignored
package
=
packages_by_name
.
get
(
canonicalize_name
(
package_name
)
)
package
=
packages_by_name
.
get
(
package_name
)
if
package
:
if
package
:
if
package
.
name
not
in
seen_package_names
:
if
package
.
name
not
in
seen_package_names
:
seen_package_names
.
add
(
package
.
name
)
seen_package_names
.
add
(
package
.
name
)
...
...
tests/utils/test_extras.py
View file @
65ff74a9
...
@@ -63,7 +63,7 @@ def test_get_extra_package_names(
...
@@ -63,7 +63,7 @@ def test_get_extra_package_names(
extras
:
dict
[
str
,
list
[
str
]],
extras
:
dict
[
str
,
list
[
str
]],
extra_names
:
list
[
str
],
extra_names
:
list
[
str
],
expected_extra_package_names
:
list
[
str
],
expected_extra_package_names
:
list
[
str
],
):
)
->
None
:
assert
(
assert
(
list
(
get_extra_package_names
(
packages
,
extras
,
extra_names
))
list
(
get_extra_package_names
(
packages
,
extras
,
extra_names
))
==
expected_extra_package_names
==
expected_extra_package_names
...
...
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