Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/RECORD +169 -0
- parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/REQUESTED +0 -0
- parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/entry_points.txt +6 -0
- parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/LICENSE +202 -0
- parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/RECORD +16 -0
- parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/entry_points.txt +2 -0
- parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/top_level.txt +1 -0
- parrot/lib/python3.10/site-packages/fire-0.6.0.dist-info/METADATA +49 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/INSTALLER +1 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/METADATA +165 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/RECORD +218 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/REQUESTED +0 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/WHEEL +5 -0
- parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/top_level.txt +1 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/INSTALLER +1 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/LICENCE +201 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/METADATA +156 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/RECORD +66 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/REQUESTED +0 -0
- parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/WHEEL +4 -0
- parrot/lib/python3.10/site-packages/multiprocess-0.70.16.dist-info/COPYING +28 -0
- parrot/lib/python3.10/site-packages/multiprocess-0.70.16.dist-info/top_level.txt +2 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/INSTALLER +1 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/METADATA +565 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/RECORD +11 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/REQUESTED +0 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/WHEEL +4 -0
- parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/licenses/LICENSE +1398 -0
- parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/INSTALLER +1 -0
- parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/RECORD +0 -0
- parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/REQUESTED +0 -0
- parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/WHEEL +5 -0
- parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/entry_points.txt +2 -0
- videollama2/lib/python3.10/site-packages/setuptools/_importlib.py +9 -0
- videollama2/lib/python3.10/site-packages/setuptools/archive_util.py +219 -0
- videollama2/lib/python3.10/site-packages/setuptools/cli-32.exe +0 -0
- videollama2/lib/python3.10/site-packages/setuptools/errors.py +67 -0
- videollama2/lib/python3.10/site-packages/setuptools/package_index.py +1141 -0
- videollama2/lib/python3.10/site-packages/setuptools/script.tmpl +3 -0
- videollama2/lib/python3.10/site-packages/websockets/extensions/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContextLight.h +99 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDADevice.h +23 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/Exceptions.h +205 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/PeerToPeerAccess.h +11 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/cub.h +87 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/CUDAHooks.h +58 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/DeviceThreadHandles.h +151 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/IndexUtils.cuh +36 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/IntegerDivider.cuh +124 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/KernelUtils.h +37 -0
parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/accelerate,sha256=Y5s6cVp0u5YlpuHcX3pjKh4QzZcgfJV6HJ1-Rk5npvQ,245
|
| 2 |
+
../../../bin/accelerate-config,sha256=GoYjls0O7tiydeM6qtdQepYdpq1Vw1VICCFMA98VGyc,237
|
| 3 |
+
../../../bin/accelerate-estimate-memory,sha256=lCUfFozverLnLgeUQ__YbMSnGnqBVq2lvRWrai2HWik,239
|
| 4 |
+
../../../bin/accelerate-launch,sha256=osW7svnIqDA2MygvXZ0W2kPafaksYdhhaTd89mYW-MM,237
|
| 5 |
+
../../../bin/accelerate-merge-weights,sha256=VItTXAP9VZjkm91bl7fOIZhk2cyAAa7mEgRYUMcdY_E,236
|
| 6 |
+
accelerate-0.31.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 7 |
+
accelerate-0.31.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
| 8 |
+
accelerate-0.31.0.dist-info/METADATA,sha256=8nL0ie_SpU8S_zVeJEfSD-PZKR4xDim03LfBOttB0Nk,19027
|
| 9 |
+
accelerate-0.31.0.dist-info/RECORD,,
|
| 10 |
+
accelerate-0.31.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 11 |
+
accelerate-0.31.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
| 12 |
+
accelerate-0.31.0.dist-info/entry_points.txt,sha256=Vpy8gUGfZ-1VnM2229fb8CpJNLBdMH_wtJ9PQ7b_2tQ,296
|
| 13 |
+
accelerate-0.31.0.dist-info/top_level.txt,sha256=esVfdxTidsjQ90zsN_rPpjLFJ4ijRlx4mnLrG09hlt4,11
|
| 14 |
+
accelerate/__init__.py,sha256=FddaOKiOTPyY1cyTlWzS03v30FjD8RWhrgV_yvYilFA,1456
|
| 15 |
+
accelerate/__pycache__/__init__.cpython-310.pyc,,
|
| 16 |
+
accelerate/__pycache__/accelerator.cpython-310.pyc,,
|
| 17 |
+
accelerate/__pycache__/big_modeling.cpython-310.pyc,,
|
| 18 |
+
accelerate/__pycache__/checkpointing.cpython-310.pyc,,
|
| 19 |
+
accelerate/__pycache__/data_loader.cpython-310.pyc,,
|
| 20 |
+
accelerate/__pycache__/hooks.cpython-310.pyc,,
|
| 21 |
+
accelerate/__pycache__/inference.cpython-310.pyc,,
|
| 22 |
+
accelerate/__pycache__/launchers.cpython-310.pyc,,
|
| 23 |
+
accelerate/__pycache__/local_sgd.cpython-310.pyc,,
|
| 24 |
+
accelerate/__pycache__/logging.cpython-310.pyc,,
|
| 25 |
+
accelerate/__pycache__/memory_utils.cpython-310.pyc,,
|
| 26 |
+
accelerate/__pycache__/optimizer.cpython-310.pyc,,
|
| 27 |
+
accelerate/__pycache__/scheduler.cpython-310.pyc,,
|
| 28 |
+
accelerate/__pycache__/state.cpython-310.pyc,,
|
| 29 |
+
accelerate/__pycache__/tracking.cpython-310.pyc,,
|
| 30 |
+
accelerate/accelerator.py,sha256=7C2aAfMjbcpP4qxTFJCZm0-UTtW5C3LdXNXFpMe0yo4,151923
|
| 31 |
+
accelerate/big_modeling.py,sha256=pmtLTKTf8mJK1E2o51E3H5TBAuw_zLX_7pWtogtbP1w,29278
|
| 32 |
+
accelerate/checkpointing.py,sha256=0IMj7BMLXOozDnPCI7t32RVYB0867zsCoTFY8ZkxuKQ,11377
|
| 33 |
+
accelerate/commands/__init__.py,sha256=m1PPTDT4ziIAvM0-FDSgIMIZ69Konn126s6LwuzH6v8,606
|
| 34 |
+
accelerate/commands/__pycache__/__init__.cpython-310.pyc,,
|
| 35 |
+
accelerate/commands/__pycache__/accelerate_cli.cpython-310.pyc,,
|
| 36 |
+
accelerate/commands/__pycache__/env.cpython-310.pyc,,
|
| 37 |
+
accelerate/commands/__pycache__/estimate.cpython-310.pyc,,
|
| 38 |
+
accelerate/commands/__pycache__/launch.cpython-310.pyc,,
|
| 39 |
+
accelerate/commands/__pycache__/merge.cpython-310.pyc,,
|
| 40 |
+
accelerate/commands/__pycache__/test.cpython-310.pyc,,
|
| 41 |
+
accelerate/commands/__pycache__/tpu.cpython-310.pyc,,
|
| 42 |
+
accelerate/commands/__pycache__/utils.cpython-310.pyc,,
|
| 43 |
+
accelerate/commands/accelerate_cli.py,sha256=aaqbgTuvtj0N4FPFI0KBpPTiVtWTPUWSlbSBzsy58l8,1856
|
| 44 |
+
accelerate/commands/config/__init__.py,sha256=iJK8dgj3pc5Vdr1E7UuGoFu-BlybyXLxYDoTg9gXngE,1645
|
| 45 |
+
accelerate/commands/config/__pycache__/__init__.cpython-310.pyc,,
|
| 46 |
+
accelerate/commands/config/__pycache__/cluster.cpython-310.pyc,,
|
| 47 |
+
accelerate/commands/config/__pycache__/config.cpython-310.pyc,,
|
| 48 |
+
accelerate/commands/config/__pycache__/config_args.cpython-310.pyc,,
|
| 49 |
+
accelerate/commands/config/__pycache__/config_utils.cpython-310.pyc,,
|
| 50 |
+
accelerate/commands/config/__pycache__/default.cpython-310.pyc,,
|
| 51 |
+
accelerate/commands/config/__pycache__/sagemaker.cpython-310.pyc,,
|
| 52 |
+
accelerate/commands/config/__pycache__/update.cpython-310.pyc,,
|
| 53 |
+
accelerate/commands/config/cluster.py,sha256=5BJPRzYp7ky7lCv2r1Xc-tukBC0DOje7jWId8XJ6sLo,30864
|
| 54 |
+
accelerate/commands/config/config.py,sha256=FuRlQvOjgATEtyqOSsGD-KEtOCvACOHjs2C-krrtldk,3035
|
| 55 |
+
accelerate/commands/config/config_args.py,sha256=dhP8dnsMYtCVbfezLpydvZPHnPtWkr1avr7LMgz_Uw8,10062
|
| 56 |
+
accelerate/commands/config/config_utils.py,sha256=DcjIV1mDInFmct2_XQ-9KYAkREINs6YuHRbZe5HFjT8,2926
|
| 57 |
+
accelerate/commands/config/default.py,sha256=q6mmtu8i2qaFZOhuhDujGRo6Tf32D3QmrJmQN00_--8,5392
|
| 58 |
+
accelerate/commands/config/sagemaker.py,sha256=GjHE2-h4tRr1P_PFtMF3miiAtJlzkbHbMb6kFXqn8eo,10341
|
| 59 |
+
accelerate/commands/config/update.py,sha256=NXW1J7GkUHpg71QlIXsmMB_0z8S8IZo2FWax5POwrhc,2395
|
| 60 |
+
accelerate/commands/env.py,sha256=J4Gz8wQUUvkzvmy2SNtAIMaE042aGaaBuHBFRU1DSdk,3670
|
| 61 |
+
accelerate/commands/estimate.py,sha256=shEn2nXyHmz94zpAzV2R8__lcNYW9f9djl7bOHoo04k,12398
|
| 62 |
+
accelerate/commands/launch.py,sha256=3xtgfCLuOE0Qw3tdr1ES8F42hjks6TOGHdfL8UmlZLo,42521
|
| 63 |
+
accelerate/commands/menu/__init__.py,sha256=uqSlBM0TFHBwzdv3p3SXfpAk1lZFp4h1a7mbBdscPHs,645
|
| 64 |
+
accelerate/commands/menu/__pycache__/__init__.cpython-310.pyc,,
|
| 65 |
+
accelerate/commands/menu/__pycache__/cursor.cpython-310.pyc,,
|
| 66 |
+
accelerate/commands/menu/__pycache__/helpers.cpython-310.pyc,,
|
| 67 |
+
accelerate/commands/menu/__pycache__/input.cpython-310.pyc,,
|
| 68 |
+
accelerate/commands/menu/__pycache__/keymap.cpython-310.pyc,,
|
| 69 |
+
accelerate/commands/menu/__pycache__/selection_menu.cpython-310.pyc,,
|
| 70 |
+
accelerate/commands/menu/cursor.py,sha256=-lmpJVAzvNc0c3EOtSuLoKB59zqylVCbYyWLPnrOmvQ,2028
|
| 71 |
+
accelerate/commands/menu/helpers.py,sha256=KrSB5fJjH4MUEUAQJ6bYaN16AYcnl9UalDrPD3DYeeg,1483
|
| 72 |
+
accelerate/commands/menu/input.py,sha256=Uj9eDp8-Mb0Fe49nuogqo9W_RCfYd6udfjiPKx7Wjmg,2537
|
| 73 |
+
accelerate/commands/menu/keymap.py,sha256=eXj-suyYs1m5dEHoUKN4mKAMLc8DWHnwhP6G6JSU0jQ,4086
|
| 74 |
+
accelerate/commands/menu/selection_menu.py,sha256=bxy-DHaKKC6SCToOlMBv5_z0MdUzylEg6Sio9OuV3GM,4921
|
| 75 |
+
accelerate/commands/merge.py,sha256=s9mwYpWKOBjiDFxPgUlttXAStwggfV0VRXRfZfDevZc,2387
|
| 76 |
+
accelerate/commands/test.py,sha256=YrPYEaAACOGZ6btn2MV6NbMSEdBUcMWADLbQWaZSHtk,2149
|
| 77 |
+
accelerate/commands/tpu.py,sha256=KyxDP7IuveidZrbW4rx2s8Ku3o_ptI6tzwr_R7ck0os,5548
|
| 78 |
+
accelerate/commands/utils.py,sha256=ilcfE32oHh28EToM00nc_SR6upfZiuxUI0AjjZu8KYY,3995
|
| 79 |
+
accelerate/data_loader.py,sha256=xZUGfnmUQF6Duf5vPQ6XX7IDS4YtqkpxmhE78LcH1Zg,50316
|
| 80 |
+
accelerate/hooks.py,sha256=x0FBwwoy6PKSwulavYTpc4gERIoB7RHGPF0Qe6qjXNA,31244
|
| 81 |
+
accelerate/inference.py,sha256=Ci7kkw2cocNpuvmbo1ytW2QgcI_HKWoXkIdonFOr0tg,7977
|
| 82 |
+
accelerate/launchers.py,sha256=xir4KGz9n8EOtW-U3szP3M6StelvbWZYaUDLO8XlFaw,13351
|
| 83 |
+
accelerate/local_sgd.py,sha256=v0-AxldUSCYCI-rqjLiEHsVtSqyEIWTC5ppn7CW7qfY,4002
|
| 84 |
+
accelerate/logging.py,sha256=4XcgY_BV7Qn_enh2tZ-8fNtuaE_3n-LsYJbgwhRx_PI,5042
|
| 85 |
+
accelerate/memory_utils.py,sha256=3R5LoeHl6GgTZ-IMPrDZMdaEehWarGdPqODushb-6pg,862
|
| 86 |
+
accelerate/optimizer.py,sha256=vpEUhlmbh68ut7DPtTNRoUNcarI1aO58c_qJ0BYQKxc,8071
|
| 87 |
+
accelerate/scheduler.py,sha256=des_4M_Tt1W8gCYZZbLla0GHBEgJY3Wx2EGBQPTzeiY,4238
|
| 88 |
+
accelerate/state.py,sha256=2M8J4fHwwjBVQo8mO6YdvSGAS9TwLnhcwxr0zqaFuD4,50301
|
| 89 |
+
accelerate/test_utils/__init__.py,sha256=V_ndBKNVKT7Hs_Kn0_DQtHkBt2IOk21k7ntjx5YGC3U,1484
|
| 90 |
+
accelerate/test_utils/__pycache__/__init__.cpython-310.pyc,,
|
| 91 |
+
accelerate/test_utils/__pycache__/examples.cpython-310.pyc,,
|
| 92 |
+
accelerate/test_utils/__pycache__/testing.cpython-310.pyc,,
|
| 93 |
+
accelerate/test_utils/__pycache__/training.cpython-310.pyc,,
|
| 94 |
+
accelerate/test_utils/examples.py,sha256=jRm1S9TkmeoLaqprBvtVFN4LesiaDZtKMNIoLNY2euw,7281
|
| 95 |
+
accelerate/test_utils/scripts/__init__.py,sha256=m1PPTDT4ziIAvM0-FDSgIMIZ69Konn126s6LwuzH6v8,606
|
| 96 |
+
accelerate/test_utils/scripts/__pycache__/__init__.cpython-310.pyc,,
|
| 97 |
+
accelerate/test_utils/scripts/__pycache__/test_cli.cpython-310.pyc,,
|
| 98 |
+
accelerate/test_utils/scripts/__pycache__/test_distributed_data_loop.cpython-310.pyc,,
|
| 99 |
+
accelerate/test_utils/scripts/__pycache__/test_merge_weights.cpython-310.pyc,,
|
| 100 |
+
accelerate/test_utils/scripts/__pycache__/test_notebook.cpython-310.pyc,,
|
| 101 |
+
accelerate/test_utils/scripts/__pycache__/test_ops.cpython-310.pyc,,
|
| 102 |
+
accelerate/test_utils/scripts/__pycache__/test_script.cpython-310.pyc,,
|
| 103 |
+
accelerate/test_utils/scripts/__pycache__/test_sync.cpython-310.pyc,,
|
| 104 |
+
accelerate/test_utils/scripts/external_deps/__init__.py,sha256=m1PPTDT4ziIAvM0-FDSgIMIZ69Konn126s6LwuzH6v8,606
|
| 105 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/__init__.cpython-310.pyc,,
|
| 106 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_checkpointing.cpython-310.pyc,,
|
| 107 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_metrics.cpython-310.pyc,,
|
| 108 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_peak_memory_usage.cpython-310.pyc,,
|
| 109 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_performance.cpython-310.pyc,,
|
| 110 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_pippy.cpython-310.pyc,,
|
| 111 |
+
accelerate/test_utils/scripts/external_deps/__pycache__/test_zero3_integration.cpython-310.pyc,,
|
| 112 |
+
accelerate/test_utils/scripts/external_deps/test_checkpointing.py,sha256=zILzHevzqxB1NPPDrJ1furaitI8MTvhBeG9QzzL0bmE,10668
|
| 113 |
+
accelerate/test_utils/scripts/external_deps/test_metrics.py,sha256=67-S1qeCpCL9ceaH22RsIsBJscMS7VQWaO4Krcszzbw,12133
|
| 114 |
+
accelerate/test_utils/scripts/external_deps/test_peak_memory_usage.py,sha256=D0YnKCxkI4ZwDOmZ5Ev6hL9jPyP7SU4WffpVFiK14bs,11072
|
| 115 |
+
accelerate/test_utils/scripts/external_deps/test_performance.py,sha256=8fV3wCM1H9HVRRyC5C4EGWt-9aHILX_y3-E7LfSiv7M,9803
|
| 116 |
+
accelerate/test_utils/scripts/external_deps/test_pippy.py,sha256=RdMoD1rlLKMyjyl0soSqR3iDbGidS6-z5GHo3bJUOw8,4647
|
| 117 |
+
accelerate/test_utils/scripts/external_deps/test_zero3_integration.py,sha256=bJ0Jio-6OCyS2FIgFmZi3duqG1gbkOoTEcHsrORYIL4,1503
|
| 118 |
+
accelerate/test_utils/scripts/test_cli.py,sha256=qfk1aYFtdvYFCYPkl05602SNGvk08QTv0xZVVcFVtzM,833
|
| 119 |
+
accelerate/test_utils/scripts/test_distributed_data_loop.py,sha256=NIap96XXauEV5sTZXpRj_u85BX4C6Xz1g56pl5Keitk,10714
|
| 120 |
+
accelerate/test_utils/scripts/test_merge_weights.py,sha256=tzOWY02-7N1RQcr7jyLvlPaaTz_AOphoMhKiOwwpCM8,6015
|
| 121 |
+
accelerate/test_utils/scripts/test_notebook.py,sha256=BmZClvVddor2yZF-R3jmoR4a-h0sekjGTdF6xeE7CV0,3821
|
| 122 |
+
accelerate/test_utils/scripts/test_ops.py,sha256=BcGn3xJT2wUJ0Yk_6VLNkneSv9z24JeAoQjsgdIIRr4,6170
|
| 123 |
+
accelerate/test_utils/scripts/test_script.py,sha256=sbZXylLJQyAh5AAsH3EXT7FJkXVGhyKMtjTPn5A79yY,33124
|
| 124 |
+
accelerate/test_utils/scripts/test_sync.py,sha256=u-k414DPNQumRaXeKcId5qvIHiPc0Lf3x9th5kNsHkk,18219
|
| 125 |
+
accelerate/test_utils/testing.py,sha256=wyQxaMVUx1h3iCgk--t2_PSXOWjfc18f2JUqHy6u-C0,21259
|
| 126 |
+
accelerate/test_utils/training.py,sha256=8k_YAQ21MzUdb2aFWq1t2fihW1b-iBGh1OJSL3whY68,4019
|
| 127 |
+
accelerate/tracking.py,sha256=WLY-H1DTsxrz4BVzle7QZMp0Irg84yFMbA1e6JaY3pM,39789
|
| 128 |
+
accelerate/utils/__init__.py,sha256=sBfqdXEV2j3Mu6-TShql2ec9Ei1NQxZp7HZu6z652ME,6275
|
| 129 |
+
accelerate/utils/__pycache__/__init__.cpython-310.pyc,,
|
| 130 |
+
accelerate/utils/__pycache__/bnb.cpython-310.pyc,,
|
| 131 |
+
accelerate/utils/__pycache__/constants.cpython-310.pyc,,
|
| 132 |
+
accelerate/utils/__pycache__/dataclasses.cpython-310.pyc,,
|
| 133 |
+
accelerate/utils/__pycache__/deepspeed.cpython-310.pyc,,
|
| 134 |
+
accelerate/utils/__pycache__/environment.cpython-310.pyc,,
|
| 135 |
+
accelerate/utils/__pycache__/fsdp_utils.cpython-310.pyc,,
|
| 136 |
+
accelerate/utils/__pycache__/imports.cpython-310.pyc,,
|
| 137 |
+
accelerate/utils/__pycache__/launch.cpython-310.pyc,,
|
| 138 |
+
accelerate/utils/__pycache__/megatron_lm.cpython-310.pyc,,
|
| 139 |
+
accelerate/utils/__pycache__/memory.cpython-310.pyc,,
|
| 140 |
+
accelerate/utils/__pycache__/modeling.cpython-310.pyc,,
|
| 141 |
+
accelerate/utils/__pycache__/offload.cpython-310.pyc,,
|
| 142 |
+
accelerate/utils/__pycache__/operations.cpython-310.pyc,,
|
| 143 |
+
accelerate/utils/__pycache__/other.cpython-310.pyc,,
|
| 144 |
+
accelerate/utils/__pycache__/random.cpython-310.pyc,,
|
| 145 |
+
accelerate/utils/__pycache__/rich.cpython-310.pyc,,
|
| 146 |
+
accelerate/utils/__pycache__/torch_xla.cpython-310.pyc,,
|
| 147 |
+
accelerate/utils/__pycache__/tqdm.cpython-310.pyc,,
|
| 148 |
+
accelerate/utils/__pycache__/transformer_engine.cpython-310.pyc,,
|
| 149 |
+
accelerate/utils/__pycache__/versions.cpython-310.pyc,,
|
| 150 |
+
accelerate/utils/bnb.py,sha256=3i59dy8EcBYJEnT2alJ5_M-zeIpFsrceQ4bImiJJKOk,20570
|
| 151 |
+
accelerate/utils/constants.py,sha256=e6Bpf7gSZLFkvfr-1B1841b6lVoKJ5uyyf5kefe0aT4,2566
|
| 152 |
+
accelerate/utils/dataclasses.py,sha256=2YmE731i3M_xnC51qPnWQaYTiJ3gRsrArrT6DwSiQGM,81538
|
| 153 |
+
accelerate/utils/deepspeed.py,sha256=1JFnz-dY6xP9yHywnX8bzZNq-d-8Cpg5CvVNLZ74b_0,10276
|
| 154 |
+
accelerate/utils/environment.py,sha256=8eVGMCu7xT1y0Hxochnxz_RghDePtWo2TghDlOm5Gf0,10409
|
| 155 |
+
accelerate/utils/fsdp_utils.py,sha256=moyRlCC6tWqjpi3MYecv43mQZeG4ZgH_6GtUoYbkF9g,13566
|
| 156 |
+
accelerate/utils/imports.py,sha256=OmqM6r-7AsWeTW4Vjjbiyx1Ko6-btQJCp3nRbxxtk4k,12747
|
| 157 |
+
accelerate/utils/launch.py,sha256=34d2bRhy22EGFno_23oF6NdXq-x8prmaJu_9MrgA9Ac,27723
|
| 158 |
+
accelerate/utils/megatron_lm.py,sha256=Td4pQAUB0JGBXrMIL7KJZo4GQT8bY2r15SjrkDEN060,57897
|
| 159 |
+
accelerate/utils/memory.py,sha256=UAO7PyfDN1YvlKuglhlN7K7vWWQb3x2G0DAii5A4Ipo,5217
|
| 160 |
+
accelerate/utils/modeling.py,sha256=TimHIJs4a5wBwJGl2gxyKZa41-HMuFIMUYvf7D5Z-RA,82383
|
| 161 |
+
accelerate/utils/offload.py,sha256=qjaVai81wbkA0YH2WkmOXvZT0BRphygfRV_4Ua4j4U4,7837
|
| 162 |
+
accelerate/utils/operations.py,sha256=hAoF0RYKj8YpGPtbfYpT5H79BfHEQ8JzYQdFBHL_nHw,30531
|
| 163 |
+
accelerate/utils/other.py,sha256=kgON65EhzQN3oQZqzgAOmmNC2vsQkeO77qEuzN7Zv7c,12283
|
| 164 |
+
accelerate/utils/random.py,sha256=BowDGdBPbeBgGfn8M1K0ymOK4uAejHR2nu3YPvSVDUI,4958
|
| 165 |
+
accelerate/utils/rich.py,sha256=8JZX_uGMQX-BufdXxJpdne7BWd1KyLHSgbiGxrDMYr8,847
|
| 166 |
+
accelerate/utils/torch_xla.py,sha256=Pq1tuqN0X_pWDVza6YgjfO45uoJdoRVRForLeLQzFus,1908
|
| 167 |
+
accelerate/utils/tqdm.py,sha256=jhniZKNOGl7TQfF36yCu2XdtFkJOtCdR9jZ1SbkE-ig,1783
|
| 168 |
+
accelerate/utils/transformer_engine.py,sha256=gNPkOv_D1SDLm6nVZtxWIjyA6snxWtAQeBWUZLIErJE,3582
|
| 169 |
+
accelerate/utils/versions.py,sha256=UgmcbjBm--6CIx1ZamSAMjAK_B_2l48LbeaNygqej8M,2149
|
parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/REQUESTED
ADDED
|
File without changes
|
parrot/lib/python3.10/site-packages/accelerate-0.31.0.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
accelerate = accelerate.commands.accelerate_cli:main
|
| 3 |
+
accelerate-config = accelerate.commands.config:main
|
| 4 |
+
accelerate-estimate-memory = accelerate.commands.estimate:main
|
| 5 |
+
accelerate-launch = accelerate.commands.launch:main
|
| 6 |
+
accelerate-merge-weights = accelerate.commands.merge:main
|
parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright {yyyy} {name of copyright owner}
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
| 202 |
+
|
parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/distro,sha256=0d47UIf1c3WF-bRaHJ34U7PnbYaPSHd4xMHu58s-k1g,224
|
| 2 |
+
distro-1.9.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 3 |
+
distro-1.9.0.dist-info/LICENSE,sha256=y16Ofl9KOYjhBjwULGDcLfdWBfTEZRXnduOspt-XbhQ,11325
|
| 4 |
+
distro-1.9.0.dist-info/METADATA,sha256=MWMqst5VkRMQkbM5e9zfeXcYV52Fp1GG8Gg53QwJ6B0,6791
|
| 5 |
+
distro-1.9.0.dist-info/RECORD,,
|
| 6 |
+
distro-1.9.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
distro-1.9.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
| 8 |
+
distro-1.9.0.dist-info/entry_points.txt,sha256=3ObjqQMbh1xeQQwsWtgbfDNDMDD-EbggR1Oj_z8s9hc,46
|
| 9 |
+
distro-1.9.0.dist-info/top_level.txt,sha256=ikde_V_XEdSBqaGd5tEriN_wzYHLgTX_zVtlsGLHvwQ,7
|
| 10 |
+
distro/__init__.py,sha256=2fHjF-SfgPvjyNZ1iHh_wjqWdR_Yo5ODHwZC0jLBPhc,981
|
| 11 |
+
distro/__main__.py,sha256=bu9d3TifoKciZFcqRBuygV3GSuThnVD_m2IK4cz96Vs,64
|
| 12 |
+
distro/__pycache__/__init__.cpython-310.pyc,,
|
| 13 |
+
distro/__pycache__/__main__.cpython-310.pyc,,
|
| 14 |
+
distro/__pycache__/distro.cpython-310.pyc,,
|
| 15 |
+
distro/distro.py,sha256=XqbefacAhDT4zr_trnbA15eY8vdK4GTghgmvUGrEM_4,49430
|
| 16 |
+
distro/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
distro = distro.distro:main
|
parrot/lib/python3.10/site-packages/distro-1.9.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
distro
|
parrot/lib/python3.10/site-packages/fire-0.6.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.2
|
| 2 |
+
Name: fire
|
| 3 |
+
Version: 0.6.0
|
| 4 |
+
Summary: A library for automatically generating command line interfaces.
|
| 5 |
+
Home-page: https://github.com/google/python-fire
|
| 6 |
+
Author: David Bieber
|
| 7 |
+
Author-email: dbieber@google.com
|
| 8 |
+
License: Apache Software License
|
| 9 |
+
Keywords: command line interface cli python fire interactive bash tool
|
| 10 |
+
Classifier: Development Status :: 4 - Beta
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 13 |
+
Classifier: License :: OSI Approved :: Apache Software License
|
| 14 |
+
Classifier: Programming Language :: Python
|
| 15 |
+
Classifier: Programming Language :: Python :: 2
|
| 16 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 17 |
+
Classifier: Programming Language :: Python :: 3
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 26 |
+
Classifier: Operating System :: OS Independent
|
| 27 |
+
Classifier: Operating System :: POSIX
|
| 28 |
+
Classifier: Operating System :: MacOS
|
| 29 |
+
Classifier: Operating System :: Unix
|
| 30 |
+
License-File: LICENSE
|
| 31 |
+
Requires-Dist: six
|
| 32 |
+
Requires-Dist: termcolor
|
| 33 |
+
Requires-Dist: enum34; python_version < "3.4"
|
| 34 |
+
Dynamic: author
|
| 35 |
+
Dynamic: author-email
|
| 36 |
+
Dynamic: classifier
|
| 37 |
+
Dynamic: description
|
| 38 |
+
Dynamic: home-page
|
| 39 |
+
Dynamic: keywords
|
| 40 |
+
Dynamic: license
|
| 41 |
+
Dynamic: requires-dist
|
| 42 |
+
Dynamic: summary
|
| 43 |
+
|
| 44 |
+
Python Fire is a library for automatically generating command line interfaces
|
| 45 |
+
(CLIs) with a single line of code.
|
| 46 |
+
|
| 47 |
+
It will turn any Python module, class, object, function, etc. (any Python
|
| 48 |
+
component will work!) into a CLI. It's called Fire because when you call Fire(),
|
| 49 |
+
it fires off your command.
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/METADATA
ADDED
|
@@ -0,0 +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1
|
| 2 |
+
Name: joblib
|
| 3 |
+
Version: 1.4.2
|
| 4 |
+
Summary: Lightweight pipelining with Python functions
|
| 5 |
+
Author-email: Gael Varoquaux <gael.varoquaux@normalesup.org>
|
| 6 |
+
License: BSD 3-Clause
|
| 7 |
+
Project-URL: Homepage, https://joblib.readthedocs.io
|
| 8 |
+
Project-URL: Source, https://github.com/joblib/joblib
|
| 9 |
+
Platform: any
|
| 10 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 11 |
+
Classifier: Environment :: Console
|
| 12 |
+
Classifier: Intended Audience :: Developers
|
| 13 |
+
Classifier: Intended Audience :: Science/Research
|
| 14 |
+
Classifier: Intended Audience :: Education
|
| 15 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 16 |
+
Classifier: Operating System :: OS Independent
|
| 17 |
+
Classifier: Programming Language :: Python :: 3
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 23 |
+
Classifier: Topic :: Scientific/Engineering
|
| 24 |
+
Classifier: Topic :: Utilities
|
| 25 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 26 |
+
Requires-Python: >=3.8
|
| 27 |
+
Description-Content-Type: text/x-rst
|
| 28 |
+
License-File: LICENSE.txt
|
| 29 |
+
|
| 30 |
+
|PyPi| |Azure| |ReadTheDocs| |Codecov|
|
| 31 |
+
|
| 32 |
+
.. |PyPi| image:: https://badge.fury.io/py/joblib.svg
|
| 33 |
+
:target: https://badge.fury.io/py/joblib
|
| 34 |
+
:alt: Joblib version
|
| 35 |
+
|
| 36 |
+
.. |Azure| image:: https://dev.azure.com/joblib/joblib/_apis/build/status/joblib.joblib?branchName=main
|
| 37 |
+
:target: https://dev.azure.com/joblib/joblib/_build?definitionId=3&_a=summary&branchFilter=40
|
| 38 |
+
:alt: Azure CI status
|
| 39 |
+
|
| 40 |
+
.. |ReadTheDocs| image:: https://readthedocs.org/projects/joblib/badge/?version=latest
|
| 41 |
+
:target: https://joblib.readthedocs.io/en/latest/?badge=latest
|
| 42 |
+
:alt: Documentation Status
|
| 43 |
+
|
| 44 |
+
.. |Codecov| image:: https://codecov.io/gh/joblib/joblib/branch/main/graph/badge.svg
|
| 45 |
+
:target: https://codecov.io/gh/joblib/joblib
|
| 46 |
+
:alt: Codecov coverage
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
The homepage of joblib with user documentation is located on:
|
| 50 |
+
|
| 51 |
+
https://joblib.readthedocs.io
|
| 52 |
+
|
| 53 |
+
Getting the latest code
|
| 54 |
+
=======================
|
| 55 |
+
|
| 56 |
+
To get the latest code using git, simply type::
|
| 57 |
+
|
| 58 |
+
git clone https://github.com/joblib/joblib.git
|
| 59 |
+
|
| 60 |
+
If you don't have git installed, you can download a zip
|
| 61 |
+
of the latest code: https://github.com/joblib/joblib/archive/refs/heads/main.zip
|
| 62 |
+
|
| 63 |
+
Installing
|
| 64 |
+
==========
|
| 65 |
+
|
| 66 |
+
You can use `pip` to install joblib::
|
| 67 |
+
|
| 68 |
+
pip install joblib
|
| 69 |
+
|
| 70 |
+
from any directory or::
|
| 71 |
+
|
| 72 |
+
python setup.py install
|
| 73 |
+
|
| 74 |
+
from the source directory.
|
| 75 |
+
|
| 76 |
+
Dependencies
|
| 77 |
+
============
|
| 78 |
+
|
| 79 |
+
- Joblib has no mandatory dependencies besides Python (supported versions are
|
| 80 |
+
3.8+).
|
| 81 |
+
- Joblib has an optional dependency on Numpy (at least version 1.6.1) for array
|
| 82 |
+
manipulation.
|
| 83 |
+
- Joblib includes its own vendored copy of
|
| 84 |
+
`loky <https://github.com/tomMoral/loky>`_ for process management.
|
| 85 |
+
- Joblib can efficiently dump and load numpy arrays but does not require numpy
|
| 86 |
+
to be installed.
|
| 87 |
+
- Joblib has an optional dependency on
|
| 88 |
+
`python-lz4 <https://pypi.python.org/pypi/lz4>`_ as a faster alternative to
|
| 89 |
+
zlib and gzip for compressed serialization.
|
| 90 |
+
- Joblib has an optional dependency on psutil to mitigate memory leaks in
|
| 91 |
+
parallel worker processes.
|
| 92 |
+
- Some examples require external dependencies such as pandas. See the
|
| 93 |
+
instructions in the `Building the docs`_ section for details.
|
| 94 |
+
|
| 95 |
+
Workflow to contribute
|
| 96 |
+
======================
|
| 97 |
+
|
| 98 |
+
To contribute to joblib, first create an account on `github
|
| 99 |
+
<https://github.com/>`_. Once this is done, fork the `joblib repository
|
| 100 |
+
<https://github.com/joblib/joblib>`_ to have your own repository,
|
| 101 |
+
clone it using 'git clone' on the computers where you want to work. Make
|
| 102 |
+
your changes in your clone, push them to your github account, test them
|
| 103 |
+
on several computers, and when you are happy with them, send a pull
|
| 104 |
+
request to the main repository.
|
| 105 |
+
|
| 106 |
+
Running the test suite
|
| 107 |
+
======================
|
| 108 |
+
|
| 109 |
+
To run the test suite, you need the pytest (version >= 3) and coverage modules.
|
| 110 |
+
Run the test suite using::
|
| 111 |
+
|
| 112 |
+
pytest joblib
|
| 113 |
+
|
| 114 |
+
from the root of the project.
|
| 115 |
+
|
| 116 |
+
Building the docs
|
| 117 |
+
=================
|
| 118 |
+
|
| 119 |
+
To build the docs you need to have sphinx (>=1.4) and some dependencies
|
| 120 |
+
installed::
|
| 121 |
+
|
| 122 |
+
pip install -U -r .readthedocs-requirements.txt
|
| 123 |
+
|
| 124 |
+
The docs can then be built with the following command::
|
| 125 |
+
|
| 126 |
+
make doc
|
| 127 |
+
|
| 128 |
+
The html docs are located in the ``doc/_build/html`` directory.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
Making a source tarball
|
| 132 |
+
=======================
|
| 133 |
+
|
| 134 |
+
To create a source tarball, eg for packaging or distributing, run the
|
| 135 |
+
following command::
|
| 136 |
+
|
| 137 |
+
python setup.py sdist
|
| 138 |
+
|
| 139 |
+
The tarball will be created in the `dist` directory. This command will
|
| 140 |
+
compile the docs, and the resulting tarball can be installed with
|
| 141 |
+
no extra dependencies than the Python standard library. You will need
|
| 142 |
+
setuptool and sphinx.
|
| 143 |
+
|
| 144 |
+
Making a release and uploading it to PyPI
|
| 145 |
+
=========================================
|
| 146 |
+
|
| 147 |
+
This command is only run by project manager, to make a release, and
|
| 148 |
+
upload in to PyPI::
|
| 149 |
+
|
| 150 |
+
python setup.py sdist bdist_wheel
|
| 151 |
+
twine upload dist/*
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
Note that the documentation should automatically get updated at each git
|
| 155 |
+
push. If that is not the case, try building th doc locally and resolve
|
| 156 |
+
any doc build error (in particular when running the examples).
|
| 157 |
+
|
| 158 |
+
Updating the changelog
|
| 159 |
+
======================
|
| 160 |
+
|
| 161 |
+
Changes are listed in the CHANGES.rst file. They must be manually updated
|
| 162 |
+
but, the following git command may be used to generate the lines::
|
| 163 |
+
|
| 164 |
+
git log --abbrev-commit --date=short --no-merges --sparse
|
| 165 |
+
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,1527
|
| 3 |
+
joblib-1.4.2.dist-info/METADATA,sha256=-PL7OT7ROjEST8XDvFsNetiT1C39xP0HjiPNfR51N78,5364
|
| 4 |
+
joblib-1.4.2.dist-info/RECORD,,
|
| 5 |
+
joblib-1.4.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
joblib-1.4.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
| 7 |
+
joblib-1.4.2.dist-info/top_level.txt,sha256=P0LsoZ45gBL7ckL4lqQt7tdbrHD4xlVYhffmhHeeT_U,7
|
| 8 |
+
joblib/__init__.py,sha256=EWm6ua-5pq_jWGwJ05txJUmKq5C0f_48NOMQhJ6Ge4I,5132
|
| 9 |
+
joblib/__pycache__/__init__.cpython-310.pyc,,
|
| 10 |
+
joblib/__pycache__/_cloudpickle_wrapper.cpython-310.pyc,,
|
| 11 |
+
joblib/__pycache__/_dask.cpython-310.pyc,,
|
| 12 |
+
joblib/__pycache__/_memmapping_reducer.cpython-310.pyc,,
|
| 13 |
+
joblib/__pycache__/_multiprocessing_helpers.cpython-310.pyc,,
|
| 14 |
+
joblib/__pycache__/_parallel_backends.cpython-310.pyc,,
|
| 15 |
+
joblib/__pycache__/_store_backends.cpython-310.pyc,,
|
| 16 |
+
joblib/__pycache__/_utils.cpython-310.pyc,,
|
| 17 |
+
joblib/__pycache__/backports.cpython-310.pyc,,
|
| 18 |
+
joblib/__pycache__/compressor.cpython-310.pyc,,
|
| 19 |
+
joblib/__pycache__/disk.cpython-310.pyc,,
|
| 20 |
+
joblib/__pycache__/executor.cpython-310.pyc,,
|
| 21 |
+
joblib/__pycache__/func_inspect.cpython-310.pyc,,
|
| 22 |
+
joblib/__pycache__/hashing.cpython-310.pyc,,
|
| 23 |
+
joblib/__pycache__/logger.cpython-310.pyc,,
|
| 24 |
+
joblib/__pycache__/memory.cpython-310.pyc,,
|
| 25 |
+
joblib/__pycache__/numpy_pickle.cpython-310.pyc,,
|
| 26 |
+
joblib/__pycache__/numpy_pickle_compat.cpython-310.pyc,,
|
| 27 |
+
joblib/__pycache__/numpy_pickle_utils.cpython-310.pyc,,
|
| 28 |
+
joblib/__pycache__/parallel.cpython-310.pyc,,
|
| 29 |
+
joblib/__pycache__/pool.cpython-310.pyc,,
|
| 30 |
+
joblib/__pycache__/testing.cpython-310.pyc,,
|
| 31 |
+
joblib/_cloudpickle_wrapper.py,sha256=-PBMUqgZCfd5EMaKn5FCQhWKiAJfbq4i2o6Z6KZ1ynE,417
|
| 32 |
+
joblib/_dask.py,sha256=IhFjN6oMQVIcLC7bLHnA7KgO7nnEp7p6P4JH12934J4,13313
|
| 33 |
+
joblib/_memmapping_reducer.py,sha256=4xclMWTgI5l-C6OFyt6FvamH-ToJu3DmopAXwt7a9F4,28092
|
| 34 |
+
joblib/_multiprocessing_helpers.py,sha256=t7wIXfrLfzqFXjOeOYs4JP45tptxmYm5_yE8ylIRbR8,1925
|
| 35 |
+
joblib/_parallel_backends.py,sha256=82qX4mJ5eHz4i0e5gbdHgvzST3P6LJ59hpfee0IyZCQ,25489
|
| 36 |
+
joblib/_store_backends.py,sha256=PaoeHo4Mr7idPI3MvX766OqBQ_y_WkG_oZbE4MjbdKw,16683
|
| 37 |
+
joblib/_utils.py,sha256=BBUs4ZHpDRxpgTsdrZSyBb39MqacM6JauI3dTRmnHm4,2076
|
| 38 |
+
joblib/backports.py,sha256=aGh0cjs_xMhO2ym7RprpDjCBudiPtDhgD1vf5YMbMaI,5361
|
| 39 |
+
joblib/compressor.py,sha256=WwRzsQhdQp0lbQvvEbAcaevCOCM2_Qyv_HJ4PVHtobQ,19768
|
| 40 |
+
joblib/disk.py,sha256=PxUC63dBG2O1GriL1SLskHUjz7XzR-y6rqKEJHEY0jA,4389
|
| 41 |
+
joblib/executor.py,sha256=PiaOwENhecRVnOdvHZLwGsr-RMKfk_F_Noy8y7nntJY,5136
|
| 42 |
+
joblib/externals/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 43 |
+
joblib/externals/__pycache__/__init__.cpython-310.pyc,,
|
| 44 |
+
joblib/externals/cloudpickle/__init__.py,sha256=vb2JCOn1EpLUdVyPe1ESyhLymcvh-Rk3ISHJ-52aDLw,308
|
| 45 |
+
joblib/externals/cloudpickle/__pycache__/__init__.cpython-310.pyc,,
|
| 46 |
+
joblib/externals/cloudpickle/__pycache__/cloudpickle.cpython-310.pyc,,
|
| 47 |
+
joblib/externals/cloudpickle/__pycache__/cloudpickle_fast.cpython-310.pyc,,
|
| 48 |
+
joblib/externals/cloudpickle/cloudpickle.py,sha256=APCGMuIfVpWcelGsLlo2zRmwKRloaoiznQEOAoEWH9Y,55283
|
| 49 |
+
joblib/externals/cloudpickle/cloudpickle_fast.py,sha256=1GqUD4nLKsv0vv9ty2La3eVLyeWNrPFlhUCN-aNI-30,322
|
| 50 |
+
joblib/externals/loky/__init__.py,sha256=T20hgxG9YPps-AhsElBMzIJD73q0h3x0Hys49alTvq8,1104
|
| 51 |
+
joblib/externals/loky/__pycache__/__init__.cpython-310.pyc,,
|
| 52 |
+
joblib/externals/loky/__pycache__/_base.cpython-310.pyc,,
|
| 53 |
+
joblib/externals/loky/__pycache__/cloudpickle_wrapper.cpython-310.pyc,,
|
| 54 |
+
joblib/externals/loky/__pycache__/initializers.cpython-310.pyc,,
|
| 55 |
+
joblib/externals/loky/__pycache__/process_executor.cpython-310.pyc,,
|
| 56 |
+
joblib/externals/loky/__pycache__/reusable_executor.cpython-310.pyc,,
|
| 57 |
+
joblib/externals/loky/_base.py,sha256=LsQnEoKWKGhdeqGhMc68Aqwz4MrTnEs20KAYbFiUHzo,1057
|
| 58 |
+
joblib/externals/loky/backend/__init__.py,sha256=Ix9KThV1CYk7-M5OQnJ_A_JrrrWJ-Jowa-HMMeGbp18,312
|
| 59 |
+
joblib/externals/loky/backend/__pycache__/__init__.cpython-310.pyc,,
|
| 60 |
+
joblib/externals/loky/backend/__pycache__/_posix_reduction.cpython-310.pyc,,
|
| 61 |
+
joblib/externals/loky/backend/__pycache__/_win_reduction.cpython-310.pyc,,
|
| 62 |
+
joblib/externals/loky/backend/__pycache__/context.cpython-310.pyc,,
|
| 63 |
+
joblib/externals/loky/backend/__pycache__/fork_exec.cpython-310.pyc,,
|
| 64 |
+
joblib/externals/loky/backend/__pycache__/popen_loky_posix.cpython-310.pyc,,
|
| 65 |
+
joblib/externals/loky/backend/__pycache__/popen_loky_win32.cpython-310.pyc,,
|
| 66 |
+
joblib/externals/loky/backend/__pycache__/process.cpython-310.pyc,,
|
| 67 |
+
joblib/externals/loky/backend/__pycache__/queues.cpython-310.pyc,,
|
| 68 |
+
joblib/externals/loky/backend/__pycache__/reduction.cpython-310.pyc,,
|
| 69 |
+
joblib/externals/loky/backend/__pycache__/resource_tracker.cpython-310.pyc,,
|
| 70 |
+
joblib/externals/loky/backend/__pycache__/spawn.cpython-310.pyc,,
|
| 71 |
+
joblib/externals/loky/backend/__pycache__/synchronize.cpython-310.pyc,,
|
| 72 |
+
joblib/externals/loky/backend/__pycache__/utils.cpython-310.pyc,,
|
| 73 |
+
joblib/externals/loky/backend/_posix_reduction.py,sha256=xgCSrIaLI0k_MI0XNOBSp5e1ox1WN9idgrWbkWpMUr4,1776
|
| 74 |
+
joblib/externals/loky/backend/_win_reduction.py,sha256=WmNB0NXtyJ_o_WzfPUEGh5dPhXIeI6FkEnFNXUxO2ws,683
|
| 75 |
+
joblib/externals/loky/backend/context.py,sha256=GGBUGp4QDx1qvBuWDvyOSjNWYA79shxgAagsrcxA50E,13654
|
| 76 |
+
joblib/externals/loky/backend/fork_exec.py,sha256=c3I22U_ewtT1T5Xn65SUXHrftspvllrGezGiv5KSRQY,1186
|
| 77 |
+
joblib/externals/loky/backend/popen_loky_posix.py,sha256=ZFFs6H7Xp3CCQDE4oqmd_flWday6EdtlQ34Hkpa2PFQ,5580
|
| 78 |
+
joblib/externals/loky/backend/popen_loky_win32.py,sha256=bYkhRA0w8qUcYFwoezeGwcnlCocEdheWXc6SZ-_rVxo,5325
|
| 79 |
+
joblib/externals/loky/backend/process.py,sha256=4-Y94EoIrg4btsjTNxUBHAHhR96Nrugn_7_PGL6aU50,2018
|
| 80 |
+
joblib/externals/loky/backend/queues.py,sha256=eETFvbPHwKfdoYyOgNQCyKq_Zlm-lzH3fwwpUIh-_4U,7322
|
| 81 |
+
joblib/externals/loky/backend/reduction.py,sha256=CRu922R8xOxog2Snhop7y6fN1fPX9_h110brrICwZUE,7063
|
| 82 |
+
joblib/externals/loky/backend/resource_tracker.py,sha256=421689XAmmxmNXktfkhNHNERIY3LbAcmWAsmRHPNUjg,14498
|
| 83 |
+
joblib/externals/loky/backend/spawn.py,sha256=PVOHs8ou7IPcISb7t_Pp86FnUtPUw_KUAdxmDHOrAaU,8962
|
| 84 |
+
joblib/externals/loky/backend/synchronize.py,sha256=nlDwBoLZB93m_l55qfZM_Ql-4L84PSYimoQqt5TzpDk,11768
|
| 85 |
+
joblib/externals/loky/backend/utils.py,sha256=RVsxqyET4TJdbjc9uUHJmfhlQ2v4Uq-fiT_5b5rfC0s,5757
|
| 86 |
+
joblib/externals/loky/cloudpickle_wrapper.py,sha256=9VfrXIfHiJcoXDqwgaHWbRsWipVA23oRJaxnXzSu7GM,3608
|
| 87 |
+
joblib/externals/loky/initializers.py,sha256=dtKtRsJUmVwiJu0yZ-Ih0m8PvW_MxmouG7mShEcsStc,2567
|
| 88 |
+
joblib/externals/loky/process_executor.py,sha256=TjIjwesAyFsJAp0qq43vNWh-8euuu1uE85jzu0xD5SU,51048
|
| 89 |
+
joblib/externals/loky/reusable_executor.py,sha256=XVxLGMhCDij8CU6BDHbYKPxn8lG-rnqXaIfxO2nXGXg,10305
|
| 90 |
+
joblib/func_inspect.py,sha256=Cwei03uwnZKJ9mbGmdCSjVGgq2_1lJNJSkeUn1GTvSo,14204
|
| 91 |
+
joblib/hashing.py,sha256=4X9OOofkfDQr3N8NZKTsMOKWr8IiIV0kjBwqCUJCej4,10535
|
| 92 |
+
joblib/logger.py,sha256=meT-hFPTZukfBRkeyCVCxhssPSr668_R5Nn25S-iXtc,5463
|
| 93 |
+
joblib/memory.py,sha256=RhCqLAgrN0qtyUcdGtAiHOqYYXoVa6CTpRK2Q2Zg4zM,46539
|
| 94 |
+
joblib/numpy_pickle.py,sha256=5_L7EbPg94T3iSODEdkikJNj_z2qvpZYaGei9HlMBWU,26886
|
| 95 |
+
joblib/numpy_pickle_compat.py,sha256=U7zVNNF03an_7AgHOxhTxcOSbLJTWcGsnV_xbT3vRdY,8547
|
| 96 |
+
joblib/numpy_pickle_utils.py,sha256=KccSp_MhMFsV41Mw9pSijchtGOCympDaHWH0VpIUeSs,8723
|
| 97 |
+
joblib/parallel.py,sha256=Wd-2YyzR9qQzIelayayWZxsh_iH-nbDv9DKjGMKznLs,84583
|
| 98 |
+
joblib/pool.py,sha256=wRrlDLW_6Cx7pGxK5AGY8M8QW8OwJRqOkiCfYNVty5A,14415
|
| 99 |
+
joblib/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 100 |
+
joblib/test/__pycache__/__init__.cpython-310.pyc,,
|
| 101 |
+
joblib/test/__pycache__/common.cpython-310.pyc,,
|
| 102 |
+
joblib/test/__pycache__/test_backports.cpython-310.pyc,,
|
| 103 |
+
joblib/test/__pycache__/test_cloudpickle_wrapper.cpython-310.pyc,,
|
| 104 |
+
joblib/test/__pycache__/test_config.cpython-310.pyc,,
|
| 105 |
+
joblib/test/__pycache__/test_dask.cpython-310.pyc,,
|
| 106 |
+
joblib/test/__pycache__/test_disk.cpython-310.pyc,,
|
| 107 |
+
joblib/test/__pycache__/test_func_inspect.cpython-310.pyc,,
|
| 108 |
+
joblib/test/__pycache__/test_func_inspect_special_encoding.cpython-310.pyc,,
|
| 109 |
+
joblib/test/__pycache__/test_hashing.cpython-310.pyc,,
|
| 110 |
+
joblib/test/__pycache__/test_init.cpython-310.pyc,,
|
| 111 |
+
joblib/test/__pycache__/test_logger.cpython-310.pyc,,
|
| 112 |
+
joblib/test/__pycache__/test_memmapping.cpython-310.pyc,,
|
| 113 |
+
joblib/test/__pycache__/test_memory.cpython-310.pyc,,
|
| 114 |
+
joblib/test/__pycache__/test_memory_async.cpython-310.pyc,,
|
| 115 |
+
joblib/test/__pycache__/test_missing_multiprocessing.cpython-310.pyc,,
|
| 116 |
+
joblib/test/__pycache__/test_module.cpython-310.pyc,,
|
| 117 |
+
joblib/test/__pycache__/test_numpy_pickle.cpython-310.pyc,,
|
| 118 |
+
joblib/test/__pycache__/test_numpy_pickle_compat.cpython-310.pyc,,
|
| 119 |
+
joblib/test/__pycache__/test_numpy_pickle_utils.cpython-310.pyc,,
|
| 120 |
+
joblib/test/__pycache__/test_parallel.cpython-310.pyc,,
|
| 121 |
+
joblib/test/__pycache__/test_store_backends.cpython-310.pyc,,
|
| 122 |
+
joblib/test/__pycache__/test_testing.cpython-310.pyc,,
|
| 123 |
+
joblib/test/__pycache__/test_utils.cpython-310.pyc,,
|
| 124 |
+
joblib/test/__pycache__/testutils.cpython-310.pyc,,
|
| 125 |
+
joblib/test/common.py,sha256=seNB39WwHwu0qfMo6qeV7y0m6wxCcJ1B-Q1MWLvn4Vk,2336
|
| 126 |
+
joblib/test/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 127 |
+
joblib/test/data/__pycache__/__init__.cpython-310.pyc,,
|
| 128 |
+
joblib/test/data/__pycache__/create_numpy_pickle.cpython-310.pyc,,
|
| 129 |
+
joblib/test/data/create_numpy_pickle.py,sha256=BEaSv8dm3a48mvxl_Kf5ASwkkbGhwRplzNotTP4RCC0,3460
|
| 130 |
+
joblib/test/data/joblib_0.10.0_compressed_pickle_py27_np16.gz,sha256=QYRH6Q2DSGVorjCSqWCxjTWCMOJKyew4Nl2qmfQVvQ8,769
|
| 131 |
+
joblib/test/data/joblib_0.10.0_compressed_pickle_py27_np17.gz,sha256=ofTozM_KlPJa50TR8FCwc09mMmO6OO0GQhgUBLNIsXs,757
|
| 132 |
+
joblib/test/data/joblib_0.10.0_compressed_pickle_py33_np18.gz,sha256=2eIVeA-XjOaT5IEQ6tI2UuHG3hwhiRciMmkBmPcIh4g,792
|
| 133 |
+
joblib/test/data/joblib_0.10.0_compressed_pickle_py34_np19.gz,sha256=Gr2z_1tVWDH1H3_wCVHmakknf8KqeHKT8Yz4d1vmUCM,794
|
| 134 |
+
joblib/test/data/joblib_0.10.0_compressed_pickle_py35_np19.gz,sha256=pWw_xuDbOkECqu1KGf1OFU7s2VbzC2v5F5iXhE7TwB4,790
|
| 135 |
+
joblib/test/data/joblib_0.10.0_pickle_py27_np17.pkl,sha256=icRQjj374B-AHk5znxre0T9oWUHokoHIBQ8MqKo8l-U,986
|
| 136 |
+
joblib/test/data/joblib_0.10.0_pickle_py27_np17.pkl.bz2,sha256=oYQVIyMiUxyRgWSuBBSOvCWKzToA-kUpcoQWdV4UoV4,997
|
| 137 |
+
joblib/test/data/joblib_0.10.0_pickle_py27_np17.pkl.gzip,sha256=Jpv3iGcDgKTv-O4nZsUreIbUK7qnt2cugZ-VMgNeEDQ,798
|
| 138 |
+
joblib/test/data/joblib_0.10.0_pickle_py27_np17.pkl.lzma,sha256=c0wu0x8pPv4BcStj7pE61rZpf68FLG_pNzQZ4e82zH8,660
|
| 139 |
+
joblib/test/data/joblib_0.10.0_pickle_py27_np17.pkl.xz,sha256=77FG1FDG0GHQav-1bxc4Tn9ky6ubUW_MbE0_iGmz5wc,712
|
| 140 |
+
joblib/test/data/joblib_0.10.0_pickle_py33_np18.pkl,sha256=4GTC7s_cWNVShERn2nvVbspZYJgyK_0man4TEqvdVzU,1068
|
| 141 |
+
joblib/test/data/joblib_0.10.0_pickle_py33_np18.pkl.bz2,sha256=6G1vbs_iYmz2kYJ6w4qB1k7D67UnxUMus0S4SWeBtFo,1000
|
| 142 |
+
joblib/test/data/joblib_0.10.0_pickle_py33_np18.pkl.gzip,sha256=tlRUWeJS1BXmcwtLNSNK9L0hDHekFl07CqWxTShinmY,831
|
| 143 |
+
joblib/test/data/joblib_0.10.0_pickle_py33_np18.pkl.lzma,sha256=CorPwnfv3rR5hjNtJI01-sEBMOnkSxNlRVaWTszMopA,694
|
| 144 |
+
joblib/test/data/joblib_0.10.0_pickle_py33_np18.pkl.xz,sha256=Dppj3MffOKsKETeptEtDaxPOv6MA6xnbpK5LzlDQ-oE,752
|
| 145 |
+
joblib/test/data/joblib_0.10.0_pickle_py34_np19.pkl,sha256=HL5Fb1uR9aPLjjhoOPJ2wwM1Qyo1FCZoYYd2HVw0Fos,1068
|
| 146 |
+
joblib/test/data/joblib_0.10.0_pickle_py34_np19.pkl.bz2,sha256=Pyr2fqZnwfUxXdyrBr-kRwBYY8HA_Yi7fgSguKy5pUs,1021
|
| 147 |
+
joblib/test/data/joblib_0.10.0_pickle_py34_np19.pkl.gzip,sha256=os8NJjQI9FhnlZM-Ay9dX_Uo35gZnoJCgQSIVvcBPfE,831
|
| 148 |
+
joblib/test/data/joblib_0.10.0_pickle_py34_np19.pkl.lzma,sha256=Q_0y43qU7_GqAabJ8y3PWVhOisurnCAq3GzuCu04V58,697
|
| 149 |
+
joblib/test/data/joblib_0.10.0_pickle_py34_np19.pkl.xz,sha256=BNfmiQfpeLVpdfkwlJK4hJ5Cpgl0vreVyekyc5d_PNM,752
|
| 150 |
+
joblib/test/data/joblib_0.10.0_pickle_py35_np19.pkl,sha256=l7nvLolhBDIdPFznOz3lBHiMOPBPCMi1bXop1tFSCpY,1068
|
| 151 |
+
joblib/test/data/joblib_0.10.0_pickle_py35_np19.pkl.bz2,sha256=pqGpuIS-ZU4uP8mkglHs8MaSDiVcPy7l3XHYJSppRgY,1005
|
| 152 |
+
joblib/test/data/joblib_0.10.0_pickle_py35_np19.pkl.gzip,sha256=YRFXE6LEb6qK72yPqnXdqQVY8Ts8xKUS9PWQKhLxWvk,833
|
| 153 |
+
joblib/test/data/joblib_0.10.0_pickle_py35_np19.pkl.lzma,sha256=Bf7gCUeTuTjCkbcIdyZYz69irblX4SAVQEzxCnMQhNU,701
|
| 154 |
+
joblib/test/data/joblib_0.10.0_pickle_py35_np19.pkl.xz,sha256=As8w2LGWwwNmKy3QNdKljK63Yq46gjRf_RJ0lh5_WqA,752
|
| 155 |
+
joblib/test/data/joblib_0.11.0_compressed_pickle_py36_np111.gz,sha256=1WrnXDqDoNEPYOZX1Q5Wr2463b8vVV6fw4Wm5S4bMt4,800
|
| 156 |
+
joblib/test/data/joblib_0.11.0_pickle_py36_np111.pkl,sha256=XmsOFxeC1f1aYdGETclG6yfF9rLoB11DayOAhDMULrw,1068
|
| 157 |
+
joblib/test/data/joblib_0.11.0_pickle_py36_np111.pkl.bz2,sha256=vI2yWb50LKL_NgZyd_XkoD5teIg93uI42mWnx9ee-AQ,991
|
| 158 |
+
joblib/test/data/joblib_0.11.0_pickle_py36_np111.pkl.gzip,sha256=1WrnXDqDoNEPYOZX1Q5Wr2463b8vVV6fw4Wm5S4bMt4,800
|
| 159 |
+
joblib/test/data/joblib_0.11.0_pickle_py36_np111.pkl.lzma,sha256=IWA0JlZG2ur53HgTUDl1m7q79dcVq6b0VOq33gKoJU0,715
|
| 160 |
+
joblib/test/data/joblib_0.11.0_pickle_py36_np111.pkl.xz,sha256=3Xh_NbMZdBjYx7ynfJ3Fyke28izSRSSzzNB0z5D4k9Y,752
|
| 161 |
+
joblib/test/data/joblib_0.8.4_compressed_pickle_py27_np17.gz,sha256=Sp-ZT7i6pj5on2gbptszu7RarzJpOmHJ67UKOmCPQMg,659
|
| 162 |
+
joblib/test/data/joblib_0.9.2_compressed_pickle_py27_np16.gz,sha256=NLtDrvo2XIH0KvUUAvhOqMeoXEjGW0IuTk_osu5XiDw,658
|
| 163 |
+
joblib/test/data/joblib_0.9.2_compressed_pickle_py27_np17.gz,sha256=NLtDrvo2XIH0KvUUAvhOqMeoXEjGW0IuTk_osu5XiDw,658
|
| 164 |
+
joblib/test/data/joblib_0.9.2_compressed_pickle_py34_np19.gz,sha256=nzO9iiGkG3KbBdrF3usOho8higkrDj_lmICUzxZyF_Y,673
|
| 165 |
+
joblib/test/data/joblib_0.9.2_compressed_pickle_py35_np19.gz,sha256=nzO9iiGkG3KbBdrF3usOho8higkrDj_lmICUzxZyF_Y,673
|
| 166 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np16.pkl,sha256=naijdk2xIeKdIa3mfJw0JlmOdtiN6uRM1yOJg6-M73M,670
|
| 167 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np16.pkl_01.npy,sha256=DvvX2c5-7DpuCg20HnleA5bMo9awN9rWxhtGSEPSiAk,120
|
| 168 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np16.pkl_02.npy,sha256=HBzzbLeB-8whuVO7CgtF3wktoOrg52WILlljzNcBBbE,120
|
| 169 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np16.pkl_03.npy,sha256=oMRa4qKJhBy-uiRDt-uqOzHAqencxzKUrKVynaAJJAU,236
|
| 170 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np16.pkl_04.npy,sha256=PsviRClLqT4IR5sWwbmpQR41af9mDtBFncodJBOB3wU,104
|
| 171 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np17.pkl,sha256=LynX8dLOygfxDfFywOgm7wgWOhSxLG7z-oDsU6X83Dw,670
|
| 172 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np17.pkl_01.npy,sha256=DvvX2c5-7DpuCg20HnleA5bMo9awN9rWxhtGSEPSiAk,120
|
| 173 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np17.pkl_02.npy,sha256=HBzzbLeB-8whuVO7CgtF3wktoOrg52WILlljzNcBBbE,120
|
| 174 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np17.pkl_03.npy,sha256=oMRa4qKJhBy-uiRDt-uqOzHAqencxzKUrKVynaAJJAU,236
|
| 175 |
+
joblib/test/data/joblib_0.9.2_pickle_py27_np17.pkl_04.npy,sha256=PsviRClLqT4IR5sWwbmpQR41af9mDtBFncodJBOB3wU,104
|
| 176 |
+
joblib/test/data/joblib_0.9.2_pickle_py33_np18.pkl,sha256=w9TLxpDTzp5TI6cU6lRvMsAasXEChcQgGE9s30sm_CU,691
|
| 177 |
+
joblib/test/data/joblib_0.9.2_pickle_py33_np18.pkl_01.npy,sha256=DvvX2c5-7DpuCg20HnleA5bMo9awN9rWxhtGSEPSiAk,120
|
| 178 |
+
joblib/test/data/joblib_0.9.2_pickle_py33_np18.pkl_02.npy,sha256=HBzzbLeB-8whuVO7CgtF3wktoOrg52WILlljzNcBBbE,120
|
| 179 |
+
joblib/test/data/joblib_0.9.2_pickle_py33_np18.pkl_03.npy,sha256=jt6aZKUrJdfbMJUJVsl47As5MrfRSs1avGMhbmS6vec,307
|
| 180 |
+
joblib/test/data/joblib_0.9.2_pickle_py33_np18.pkl_04.npy,sha256=PsviRClLqT4IR5sWwbmpQR41af9mDtBFncodJBOB3wU,104
|
| 181 |
+
joblib/test/data/joblib_0.9.2_pickle_py34_np19.pkl,sha256=ilOBAOaulLFvKrD32S1NfnpiK-LfzA9rC3O2I7xROuI,691
|
| 182 |
+
joblib/test/data/joblib_0.9.2_pickle_py34_np19.pkl_01.npy,sha256=DvvX2c5-7DpuCg20HnleA5bMo9awN9rWxhtGSEPSiAk,120
|
| 183 |
+
joblib/test/data/joblib_0.9.2_pickle_py34_np19.pkl_02.npy,sha256=HBzzbLeB-8whuVO7CgtF3wktoOrg52WILlljzNcBBbE,120
|
| 184 |
+
joblib/test/data/joblib_0.9.2_pickle_py34_np19.pkl_03.npy,sha256=jt6aZKUrJdfbMJUJVsl47As5MrfRSs1avGMhbmS6vec,307
|
| 185 |
+
joblib/test/data/joblib_0.9.2_pickle_py34_np19.pkl_04.npy,sha256=PsviRClLqT4IR5sWwbmpQR41af9mDtBFncodJBOB3wU,104
|
| 186 |
+
joblib/test/data/joblib_0.9.2_pickle_py35_np19.pkl,sha256=WfDVIqKcMzzh1gSAshIfzBoIpdLdZQuG79yYf5kfpOo,691
|
| 187 |
+
joblib/test/data/joblib_0.9.2_pickle_py35_np19.pkl_01.npy,sha256=DvvX2c5-7DpuCg20HnleA5bMo9awN9rWxhtGSEPSiAk,120
|
| 188 |
+
joblib/test/data/joblib_0.9.2_pickle_py35_np19.pkl_02.npy,sha256=HBzzbLeB-8whuVO7CgtF3wktoOrg52WILlljzNcBBbE,120
|
| 189 |
+
joblib/test/data/joblib_0.9.2_pickle_py35_np19.pkl_03.npy,sha256=jt6aZKUrJdfbMJUJVsl47As5MrfRSs1avGMhbmS6vec,307
|
| 190 |
+
joblib/test/data/joblib_0.9.2_pickle_py35_np19.pkl_04.npy,sha256=PsviRClLqT4IR5sWwbmpQR41af9mDtBFncodJBOB3wU,104
|
| 191 |
+
joblib/test/data/joblib_0.9.4.dev0_compressed_cache_size_pickle_py35_np19.gz,sha256=8jYfWJsx0oY2J-3LlmEigK5cClnJSW2J2rfeSTZw-Ts,802
|
| 192 |
+
joblib/test/data/joblib_0.9.4.dev0_compressed_cache_size_pickle_py35_np19.gz_01.npy.z,sha256=YT9VvT3sEl2uWlOyvH2CkyE9Sok4od9O3kWtgeuUUqE,43
|
| 193 |
+
joblib/test/data/joblib_0.9.4.dev0_compressed_cache_size_pickle_py35_np19.gz_02.npy.z,sha256=txA5RDI0PRuiU_UNKY8pGp-zQgQQ9vaVvMi60hOPaVs,43
|
| 194 |
+
joblib/test/data/joblib_0.9.4.dev0_compressed_cache_size_pickle_py35_np19.gz_03.npy.z,sha256=d3AwICvU2MpSNjh2aPIsdJeGZLlDjANAF1Soa6uM0Po,37
|
| 195 |
+
joblib/test/test_backports.py,sha256=Y9bhGa6H-K_FgLkDyXaSHzpaWk148Rjn8R9IKCKdy-k,1175
|
| 196 |
+
joblib/test/test_cloudpickle_wrapper.py,sha256=gc05MGe1LJfhCNTv02VdDXg8Z6FeJJ3rFTff1_WmMwc,751
|
| 197 |
+
joblib/test/test_config.py,sha256=EvQKH7n4qXAcPd-BTnfu4duR6b5ag65xjaEjPMDM50w,5284
|
| 198 |
+
joblib/test/test_dask.py,sha256=IIHdXXpH5NenurB6jem9rYisa_rP-usPyoPVaWzBEN0,18418
|
| 199 |
+
joblib/test/test_disk.py,sha256=wJd1o9nLzqEjLqxxkgB9S7-UcKjHPQ8qK5l0czcNp0o,2205
|
| 200 |
+
joblib/test/test_func_inspect.py,sha256=fyR9q1nGHwch5hD1hedut2YeN19hHDyUuDc8mXQuGeY,9488
|
| 201 |
+
joblib/test/test_func_inspect_special_encoding.py,sha256=5xILDjSO-xtjQAMLvMeVD-L7IG4ZURb2gvBiShaDE78,145
|
| 202 |
+
joblib/test/test_hashing.py,sha256=w8_WVgXL1TFueCSriX97GrCAS3mcmu5Ly062pOAOoRI,16054
|
| 203 |
+
joblib/test/test_init.py,sha256=bgNF-9CIJl1MFNA75LBWOaiNtvduVfuvglz_u9Tt8Uc,422
|
| 204 |
+
joblib/test/test_logger.py,sha256=CyA3E8Y74AHZfqJxetNrYfwXSOlLc1Pq1hqt7aJ6PwA,984
|
| 205 |
+
joblib/test/test_memmapping.py,sha256=6kXT4ZMCtPykWhDf66QCcQvsdC9PaJumiCY0jHPwfio,43298
|
| 206 |
+
joblib/test/test_memory.py,sha256=a4WVygTk7SVBwGTrFNrdKpuVms0VgoFeIzc-tel8WS8,50353
|
| 207 |
+
joblib/test/test_memory_async.py,sha256=CQYjFsCc_abCJ3yMBir_uUM1BZR2FFYHlb_dSkeNzI4,5347
|
| 208 |
+
joblib/test/test_missing_multiprocessing.py,sha256=oeneMgi6iUVIbkfazGvXmOp6fqa7ok9uhj902Qjs_nk,1123
|
| 209 |
+
joblib/test/test_module.py,sha256=HTHQSgnwa-1blkvhL_oVBO5yYdw8IrQTIJCK_QCsMtM,1936
|
| 210 |
+
joblib/test/test_numpy_pickle.py,sha256=6rRMvj-9dgBVucPLY7J0qBIIcY2XOSQGh1owqOiGIrg,42485
|
| 211 |
+
joblib/test/test_numpy_pickle_compat.py,sha256=o4mB8M6mVRX8Hxw-fxOmWPcbSAyswTdEHk64hVv_ZCk,609
|
| 212 |
+
joblib/test/test_numpy_pickle_utils.py,sha256=-lQnhOAIGyd5oyWT2LGQPc3QO_Oxb3VhM_H3QjKm5e0,383
|
| 213 |
+
joblib/test/test_parallel.py,sha256=hz7xthkaigLALc3676mAlpIpzu-96BgQIH1Sr7uNElE,74168
|
| 214 |
+
joblib/test/test_store_backends.py,sha256=LCCUS9DN7feJniwnOD7x0pMKAQ-5rgCBBctwi5FhjWM,3121
|
| 215 |
+
joblib/test/test_testing.py,sha256=1O5ZTJkdBjVkM-Ss4mComsEbJgrwROloVu8Mqv7Jv-w,2570
|
| 216 |
+
joblib/test/test_utils.py,sha256=L6aBHiZrF6TUFbPGmQXGyNMnoAy5pEhOJoH5CAG_6CU,584
|
| 217 |
+
joblib/test/testutils.py,sha256=6a7zVJm1kg6M-t4CH9tz8A6rMdC6ZY9sU6wBB8C7Zzo,251
|
| 218 |
+
joblib/testing.py,sha256=6i2ctsokVXohLBhc1dXIZc2TiQDRiB-glGKFbfZDIqE,3093
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/REQUESTED
ADDED
|
File without changes
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.38.4)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
parrot/lib/python3.10/site-packages/joblib-1.4.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
joblib
|
parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright 2024 Mistral AI
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/METADATA
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: mistral_common
|
| 3 |
+
Version: 1.4.4
|
| 4 |
+
Summary:
|
| 5 |
+
Author: bam4d
|
| 6 |
+
Author-email: bam4d@mistral.ai
|
| 7 |
+
Requires-Python: >=3.8.10,<4.0.0
|
| 8 |
+
Classifier: Programming Language :: Python :: 3
|
| 9 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 10 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 11 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 12 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 13 |
+
Provides-Extra: opencv
|
| 14 |
+
Requires-Dist: jsonschema (>=4.21.1,<5.0.0)
|
| 15 |
+
Requires-Dist: numpy (>=1.22,<1.25) ; python_version < "3.9"
|
| 16 |
+
Requires-Dist: numpy (>=1.25) ; python_version >= "3.9"
|
| 17 |
+
Requires-Dist: opencv-python-headless (>=4.0.0,<5.0.0) ; extra == "opencv"
|
| 18 |
+
Requires-Dist: pillow (>=10.3.0,<11.0.0)
|
| 19 |
+
Requires-Dist: pydantic (>=2.6.1,<3.0.0)
|
| 20 |
+
Requires-Dist: requests (>=2.0.0,<3.0.0)
|
| 21 |
+
Requires-Dist: sentencepiece (==0.2.0)
|
| 22 |
+
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
| 23 |
+
Requires-Dist: typing-extensions (>=4.11.0,<5.0.0)
|
| 24 |
+
Description-Content-Type: text/markdown
|
| 25 |
+
|
| 26 |
+
# Mistral Common
|
| 27 |
+
|
| 28 |
+
## What is it?
|
| 29 |
+
mistral-common is a set of tools to help you work with Mistral models.
|
| 30 |
+
|
| 31 |
+
Our first release contains tokenization. Our tokenizers go beyond the usual text <-> tokens, adding parsing of tools and structured conversation. We also release the validation and normalization code that is used in our API.
|
| 32 |
+
|
| 33 |
+
We are releasing three versions of our tokenizer powering different sets of models.
|
| 34 |
+
|
| 35 |
+
<table>
|
| 36 |
+
<tr>
|
| 37 |
+
<td>
|
| 38 |
+
|
| 39 |
+
| Open Model | Tokenizer |
|
| 40 |
+
|------------|-----------|
|
| 41 |
+
| Mistral 7B Instruct v0.1 | v1 |
|
| 42 |
+
| Mistral 7B Instruct v0.2 | v1 |
|
| 43 |
+
| Mistral 7B Instruct v0.3 | v3 |
|
| 44 |
+
| Mixtral 8x7B Instruct v0.1 | v1 |
|
| 45 |
+
| Mixtral 8x22B Instruct v0.1 | v3 |
|
| 46 |
+
| Mixtral 8x22B Instruct v0.3 | v3 |
|
| 47 |
+
| Codestral 22B v0.1 | v3 |
|
| 48 |
+
| Codestral Mamba 7B v0.1 | v3 |
|
| 49 |
+
| Mathstral 7B v0.1 | v3 |
|
| 50 |
+
| Nemo 12B 2407 | v3 - Tekken |
|
| 51 |
+
| Large 123B 2407 | v3 |
|
| 52 |
+
|
| 53 |
+
</td>
|
| 54 |
+
<td>
|
| 55 |
+
|
| 56 |
+
| Endpoint Model | Tokenizer |
|
| 57 |
+
|---------------|-----------|
|
| 58 |
+
| mistral-embed | v1 |
|
| 59 |
+
| open-mistral-7b | v3 |
|
| 60 |
+
| open-mixtral-8x7b | v1 |
|
| 61 |
+
| open-mixtral-8x22b | v3 |
|
| 62 |
+
| mistral-small-latest | v2 |
|
| 63 |
+
| mistral-large-latest | v3 |
|
| 64 |
+
| codestral-22b | v3 |
|
| 65 |
+
| open-codestral-mamba | v3 |
|
| 66 |
+
| open-mistral-nemo | v3 - Tekken |
|
| 67 |
+
|
| 68 |
+
</td>
|
| 69 |
+
</tr>
|
| 70 |
+
</table>
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
## Installation
|
| 74 |
+
|
| 75 |
+
### pip
|
| 76 |
+
You can install `mistral-common` via pip:
|
| 77 |
+
```
|
| 78 |
+
pip install mistral-common
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
### From Source
|
| 82 |
+
Alternatively, you can install from source directly. This repo uses poetry as a dependency and virtual environment manager.
|
| 83 |
+
|
| 84 |
+
You can install poetry with
|
| 85 |
+
```
|
| 86 |
+
pip install poetry
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
poetry will set up a virtual environment and install dependencies with the following command:
|
| 90 |
+
```
|
| 91 |
+
poetry install
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Examples
|
| 95 |
+
<a target="_blank" href="https://colab.research.google.com/github/mistralai/mistral-common/blob/main/examples/tokenizer.ipynb">
|
| 96 |
+
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
| 97 |
+
</a>
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
```py
|
| 102 |
+
# Import needed packages:
|
| 103 |
+
from mistral_common.protocol.instruct.messages import (
|
| 104 |
+
UserMessage,
|
| 105 |
+
)
|
| 106 |
+
from mistral_common.protocol.instruct.request import ChatCompletionRequest
|
| 107 |
+
from mistral_common.protocol.instruct.tool_calls import (
|
| 108 |
+
Function,
|
| 109 |
+
Tool,
|
| 110 |
+
)
|
| 111 |
+
from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
|
| 112 |
+
|
| 113 |
+
# Load Mistral tokenizer
|
| 114 |
+
|
| 115 |
+
model_name = "open-mixtral-8x22b"
|
| 116 |
+
|
| 117 |
+
tokenizer = MistralTokenizer.from_model(model_name)
|
| 118 |
+
|
| 119 |
+
# Tokenize a list of messages
|
| 120 |
+
tokenized = tokenizer.encode_chat_completion(
|
| 121 |
+
ChatCompletionRequest(
|
| 122 |
+
tools=[
|
| 123 |
+
Tool(
|
| 124 |
+
function=Function(
|
| 125 |
+
name="get_current_weather",
|
| 126 |
+
description="Get the current weather",
|
| 127 |
+
parameters={
|
| 128 |
+
"type": "object",
|
| 129 |
+
"properties": {
|
| 130 |
+
"location": {
|
| 131 |
+
"type": "string",
|
| 132 |
+
"description": "The city and state, e.g. San Francisco, CA",
|
| 133 |
+
},
|
| 134 |
+
"format": {
|
| 135 |
+
"type": "string",
|
| 136 |
+
"enum": ["celsius", "fahrenheit"],
|
| 137 |
+
"description": "The temperature unit to use. Infer this from the users location.",
|
| 138 |
+
},
|
| 139 |
+
},
|
| 140 |
+
"required": ["location", "format"],
|
| 141 |
+
},
|
| 142 |
+
)
|
| 143 |
+
)
|
| 144 |
+
],
|
| 145 |
+
messages=[
|
| 146 |
+
UserMessage(content="What's the weather like today in Paris"),
|
| 147 |
+
],
|
| 148 |
+
model=model_name,
|
| 149 |
+
)
|
| 150 |
+
)
|
| 151 |
+
tokens, text = tokenized.tokens, tokenized.text
|
| 152 |
+
|
| 153 |
+
# Count the number of tokens
|
| 154 |
+
print(len(tokens))
|
| 155 |
+
```
|
| 156 |
+
|
parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/RECORD
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mistral_common-1.4.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
mistral_common-1.4.4.dist-info/LICENCE,sha256=Xtb3nndzS1pgdA3YIa9eysmm8zcJyGDupOIPy2zKf8w,11339
|
| 3 |
+
mistral_common-1.4.4.dist-info/METADATA,sha256=zC5lEEoIn6UEmF5SnGbSLT7_87VyrtyRbMXXzVxSUJ4,4580
|
| 4 |
+
mistral_common-1.4.4.dist-info/RECORD,,
|
| 5 |
+
mistral_common-1.4.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
mistral_common-1.4.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
| 7 |
+
mistral_common/__init__.py,sha256=6stz_YFBRP_lguydVylsTgSmj3VTb6WFq8Sp45WYQyY,22
|
| 8 |
+
mistral_common/__pycache__/__init__.cpython-310.pyc,,
|
| 9 |
+
mistral_common/__pycache__/base.cpython-310.pyc,,
|
| 10 |
+
mistral_common/__pycache__/exceptions.cpython-310.pyc,,
|
| 11 |
+
mistral_common/__pycache__/multimodal.cpython-310.pyc,,
|
| 12 |
+
mistral_common/base.py,sha256=16qnCXyrVWlynGPo7iuQeJZenaXqSC7ufavi-K5inpQ,231
|
| 13 |
+
mistral_common/data/mistral_instruct_tokenizer_240216.model.v2,sha256=N_ADdN6khljuj10PIYlbm8VcsBA5OWB8gYW_0cbKH4k,587404
|
| 14 |
+
mistral_common/data/mistral_instruct_tokenizer_240323.model.v3,sha256=mt3Ivc5ZiESK6Btykzb0OoEmIWCujadgZ0utq51MfTM,587591
|
| 15 |
+
mistral_common/data/tekken_240718.json,sha256=7M0WZdLkd2l8M8t_Dapvbf78V6CmvOtm1L5SlS-CdRY,14801223
|
| 16 |
+
mistral_common/data/tekken_240911.json,sha256=OGsfmPummzjD3lEqTrYC3GmpXa4OVObOBI6j4pomJ6g,19280967
|
| 17 |
+
mistral_common/data/tokenizer.model.v1,sha256=2t_VbXZnFcYdLveApSWrQ7jm2k3mhlvaPZX9714TQFU,493443
|
| 18 |
+
mistral_common/exceptions.py,sha256=GnJzDnKHfMv5HrzqktuywU7hvy5IbKOGXsX119H6sUQ,1807
|
| 19 |
+
mistral_common/multimodal.py,sha256=2ilSLB1Lo1aZaGRHBcJ3w3AQU-cyS2cGIzX0hRqsn9A,2240
|
| 20 |
+
mistral_common/protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 21 |
+
mistral_common/protocol/__pycache__/__init__.cpython-310.pyc,,
|
| 22 |
+
mistral_common/protocol/__pycache__/base.cpython-310.pyc,,
|
| 23 |
+
mistral_common/protocol/__pycache__/utils.cpython-310.pyc,,
|
| 24 |
+
mistral_common/protocol/base.py,sha256=h2-KAFw6u2Lx3MBGcc73c_994WwxQI5g0Hei5Ppw0pY,502
|
| 25 |
+
mistral_common/protocol/embedding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 26 |
+
mistral_common/protocol/embedding/__pycache__/__init__.cpython-310.pyc,,
|
| 27 |
+
mistral_common/protocol/embedding/__pycache__/request.cpython-310.pyc,,
|
| 28 |
+
mistral_common/protocol/embedding/__pycache__/response.cpython-310.pyc,,
|
| 29 |
+
mistral_common/protocol/embedding/request.py,sha256=zujGdPW8QALCecqZ3rEJb5CE7iDq9_Xy_llazzXRD-U,401
|
| 30 |
+
mistral_common/protocol/embedding/response.py,sha256=-Cf8ONDSzyi0aGasKck8uV84GYpOxywIceriDBWMwtY,874
|
| 31 |
+
mistral_common/protocol/instruct/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 32 |
+
mistral_common/protocol/instruct/__pycache__/__init__.cpython-310.pyc,,
|
| 33 |
+
mistral_common/protocol/instruct/__pycache__/messages.cpython-310.pyc,,
|
| 34 |
+
mistral_common/protocol/instruct/__pycache__/normalize.cpython-310.pyc,,
|
| 35 |
+
mistral_common/protocol/instruct/__pycache__/request.cpython-310.pyc,,
|
| 36 |
+
mistral_common/protocol/instruct/__pycache__/response.cpython-310.pyc,,
|
| 37 |
+
mistral_common/protocol/instruct/__pycache__/tool_calls.cpython-310.pyc,,
|
| 38 |
+
mistral_common/protocol/instruct/__pycache__/validator.cpython-310.pyc,,
|
| 39 |
+
mistral_common/protocol/instruct/messages.py,sha256=Qe2RW65CgzqFHoOfSTONXIYpQkt1ETxaOkZDVjccCLE,3205
|
| 40 |
+
mistral_common/protocol/instruct/normalize.py,sha256=9PiATZGfEuCNa3PSbbB8muuoE6c2aEaNL3wb7Q8VkNQ,9265
|
| 41 |
+
mistral_common/protocol/instruct/request.py,sha256=CpOpQCkiX1_WHiXT_0KNyUYQQWCvKczWrR8zrBdMpS0,828
|
| 42 |
+
mistral_common/protocol/instruct/response.py,sha256=0uaMkl8R_MISwl3iV-0VDvJKq0e0pZcuPU4IVS-BBrA,1918
|
| 43 |
+
mistral_common/protocol/instruct/tool_calls.py,sha256=OFIxehAacudwddbc_WTbOsB8k9PRm55tzb7HMko4tEg,1044
|
| 44 |
+
mistral_common/protocol/instruct/validator.py,sha256=a0Xjx5nSnY5VYWj7kezDF6vzrV1vIcuEk00A-xKBVHI,13638
|
| 45 |
+
mistral_common/protocol/utils.py,sha256=HMFv5gXiirPvbBRvJShJhH3P7q5cUXPKQrxCZHpR674,73
|
| 46 |
+
mistral_common/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 47 |
+
mistral_common/tokens/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 48 |
+
mistral_common/tokens/__pycache__/__init__.cpython-310.pyc,,
|
| 49 |
+
mistral_common/tokens/instruct/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 50 |
+
mistral_common/tokens/instruct/__pycache__/__init__.cpython-310.pyc,,
|
| 51 |
+
mistral_common/tokens/instruct/__pycache__/request.cpython-310.pyc,,
|
| 52 |
+
mistral_common/tokens/instruct/request.py,sha256=8lIDlZJjv1-QnuBjXOSMN3bw35NX-6Jpsxu0oxYOiMw,644
|
| 53 |
+
mistral_common/tokens/tokenizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 54 |
+
mistral_common/tokens/tokenizers/__pycache__/__init__.cpython-310.pyc,,
|
| 55 |
+
mistral_common/tokens/tokenizers/__pycache__/base.cpython-310.pyc,,
|
| 56 |
+
mistral_common/tokens/tokenizers/__pycache__/mistral.cpython-310.pyc,,
|
| 57 |
+
mistral_common/tokens/tokenizers/__pycache__/multimodal.cpython-310.pyc,,
|
| 58 |
+
mistral_common/tokens/tokenizers/__pycache__/sentencepiece.cpython-310.pyc,,
|
| 59 |
+
mistral_common/tokens/tokenizers/__pycache__/tekken.cpython-310.pyc,,
|
| 60 |
+
mistral_common/tokens/tokenizers/__pycache__/utils.cpython-310.pyc,,
|
| 61 |
+
mistral_common/tokens/tokenizers/base.py,sha256=V3O2TK5rOoF_IoXv6_3ZBmBOkRjODhGPQi_xESpEvH4,5297
|
| 62 |
+
mistral_common/tokens/tokenizers/mistral.py,sha256=CiM5Iq6J3xFEAAjodxI_JaohUwExrKbgqK6DR_-aOxk,7384
|
| 63 |
+
mistral_common/tokens/tokenizers/multimodal.py,sha256=D2UZKEShhxFgTt9IC_xThAZD7_N3HQ4v5ksgTQGUE4I,5169
|
| 64 |
+
mistral_common/tokens/tokenizers/sentencepiece.py,sha256=1YeDOxsOif4zLse58_EQu64esUPQ3lwf5IJqn0uXzpU,19127
|
| 65 |
+
mistral_common/tokens/tokenizers/tekken.py,sha256=jDIWf4xQGOGpYdoEfDsiZG2z3SJiXCbF3IIrpK5vq7s,11113
|
| 66 |
+
mistral_common/tokens/tokenizers/utils.py,sha256=M1nsMshZOQecXZSnkhLMcJ0shT9894A3L6VJRaErTfU,187
|
parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/REQUESTED
ADDED
|
File without changes
|
parrot/lib/python3.10/site-packages/mistral_common-1.4.4.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: poetry-core 1.9.0
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
parrot/lib/python3.10/site-packages/multiprocess-0.70.16.dist-info/COPYING
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2006-2008, R Oudkerk
|
| 2 |
+
|
| 3 |
+
All rights reserved.
|
| 4 |
+
|
| 5 |
+
Redistribution and use in source and binary forms, with or without
|
| 6 |
+
modification, are permitted provided that the following conditions
|
| 7 |
+
are met:
|
| 8 |
+
|
| 9 |
+
1. Redistributions of source code must retain the above copyright
|
| 10 |
+
notice, this list of conditions and the following disclaimer.
|
| 11 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 12 |
+
notice, this list of conditions and the following disclaimer in the
|
| 13 |
+
documentation and/or other materials provided with the distribution.
|
| 14 |
+
3. Neither the name of author nor the names of any contributors may be
|
| 15 |
+
used to endorse or promote products derived from this software
|
| 16 |
+
without specific prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 20 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 21 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
| 22 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 23 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
| 24 |
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
| 25 |
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
| 26 |
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
| 27 |
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
| 28 |
+
SUCH DAMAGE.
|
parrot/lib/python3.10/site-packages/multiprocess-0.70.16.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_multiprocess
|
| 2 |
+
multiprocess
|
parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
parrot/lib/python3.10/site-packages/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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: ruff
|
| 3 |
+
Version: 0.6.7
|
| 4 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 5 |
+
Classifier: Environment :: Console
|
| 6 |
+
Classifier: Intended Audience :: Developers
|
| 7 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 8 |
+
Classifier: Operating System :: OS Independent
|
| 9 |
+
Classifier: Programming Language :: Python
|
| 10 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 11 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 12 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 17 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 18 |
+
Classifier: Programming Language :: Rust
|
| 19 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 20 |
+
Classifier: Topic :: Software Development :: Quality Assurance
|
| 21 |
+
License-File: LICENSE
|
| 22 |
+
Summary: An extremely fast Python linter and code formatter, written in Rust.
|
| 23 |
+
Keywords: automation,flake8,pycodestyle,pyflakes,pylint,clippy
|
| 24 |
+
Home-Page: https://docs.astral.sh/ruff
|
| 25 |
+
Author: Charlie Marsh <charlie.r.marsh@gmail.com>
|
| 26 |
+
Author-email: "Astral Software Inc." <hey@astral.sh>
|
| 27 |
+
License: MIT
|
| 28 |
+
Requires-Python: >=3.7
|
| 29 |
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
| 30 |
+
Project-URL: Repository, https://github.com/astral-sh/ruff
|
| 31 |
+
Project-URL: Documentation, https://docs.astral.sh/ruff/
|
| 32 |
+
Project-URL: Changelog, https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md
|
| 33 |
+
|
| 34 |
+
<!-- Begin section: Overview -->
|
| 35 |
+
|
| 36 |
+
# Ruff
|
| 37 |
+
|
| 38 |
+
[](https://github.com/astral-sh/ruff)
|
| 39 |
+
[](https://pypi.python.org/pypi/ruff)
|
| 40 |
+
[](https://github.com/astral-sh/ruff/blob/main/LICENSE)
|
| 41 |
+
[](https://pypi.python.org/pypi/ruff)
|
| 42 |
+
[](https://github.com/astral-sh/ruff/actions)
|
| 43 |
+
[](https://discord.com/invite/astral-sh)
|
| 44 |
+
|
| 45 |
+
[**Docs**](https://docs.astral.sh/ruff/) | [**Playground**](https://play.ruff.rs/)
|
| 46 |
+
|
| 47 |
+
An extremely fast Python linter and code formatter, written in Rust.
|
| 48 |
+
|
| 49 |
+
<p align="center">
|
| 50 |
+
<img alt="Shows a bar chart with benchmark results." src="https://user-images.githubusercontent.com/1309177/232603516-4fb4892d-585c-4b20-b810-3db9161831e4.svg">
|
| 51 |
+
</p>
|
| 52 |
+
|
| 53 |
+
<p align="center">
|
| 54 |
+
<i>Linting the CPython codebase from scratch.</i>
|
| 55 |
+
</p>
|
| 56 |
+
|
| 57 |
+
- ⚡️ 10-100x faster than existing linters (like Flake8) and formatters (like Black)
|
| 58 |
+
- 🐍 Installable via `pip`
|
| 59 |
+
- 🛠️ `pyproject.toml` support
|
| 60 |
+
- 🤝 Python 3.13 compatibility
|
| 61 |
+
- ⚖️ Drop-in parity with [Flake8](https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-flake8), isort, and [Black](https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black)
|
| 62 |
+
- 📦 Built-in caching, to avoid re-analyzing unchanged files
|
| 63 |
+
- 🔧 Fix support, for automatic error correction (e.g., automatically remove unused imports)
|
| 64 |
+
- 📏 Over [800 built-in rules](https://docs.astral.sh/ruff/rules/), with native re-implementations
|
| 65 |
+
of popular Flake8 plugins, like flake8-bugbear
|
| 66 |
+
- ⌨️ First-party [editor integrations](https://docs.astral.sh/ruff/integrations/) for
|
| 67 |
+
[VS Code](https://github.com/astral-sh/ruff-vscode) and [more](https://docs.astral.sh/ruff/editors/setup)
|
| 68 |
+
- 🌎 Monorepo-friendly, with [hierarchical and cascading configuration](https://docs.astral.sh/ruff/configuration/#config-file-discovery)
|
| 69 |
+
|
| 70 |
+
Ruff aims to be orders of magnitude faster than alternative tools while integrating more
|
| 71 |
+
functionality behind a single, common interface.
|
| 72 |
+
|
| 73 |
+
Ruff can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins),
|
| 74 |
+
[Black](https://github.com/psf/black), [isort](https://pypi.org/project/isort/),
|
| 75 |
+
[pydocstyle](https://pypi.org/project/pydocstyle/), [pyupgrade](https://pypi.org/project/pyupgrade/),
|
| 76 |
+
[autoflake](https://pypi.org/project/autoflake/), and more, all while executing tens or hundreds of
|
| 77 |
+
times faster than any individual tool.
|
| 78 |
+
|
| 79 |
+
Ruff is extremely actively developed and used in major open-source projects like:
|
| 80 |
+
|
| 81 |
+
- [Apache Airflow](https://github.com/apache/airflow)
|
| 82 |
+
- [Apache Superset](https://github.com/apache/superset)
|
| 83 |
+
- [FastAPI](https://github.com/tiangolo/fastapi)
|
| 84 |
+
- [Hugging Face](https://github.com/huggingface/transformers)
|
| 85 |
+
- [Pandas](https://github.com/pandas-dev/pandas)
|
| 86 |
+
- [SciPy](https://github.com/scipy/scipy)
|
| 87 |
+
|
| 88 |
+
...and [many more](#whos-using-ruff).
|
| 89 |
+
|
| 90 |
+
Ruff is backed by [Astral](https://astral.sh). Read the [launch post](https://astral.sh/blog/announcing-astral-the-company-behind-ruff),
|
| 91 |
+
or the original [project announcement](https://notes.crmarsh.com/python-tooling-could-be-much-much-faster).
|
| 92 |
+
|
| 93 |
+
## Testimonials
|
| 94 |
+
|
| 95 |
+
[**Sebastián Ramírez**](https://twitter.com/tiangolo/status/1591912354882764802), creator
|
| 96 |
+
of [FastAPI](https://github.com/tiangolo/fastapi):
|
| 97 |
+
|
| 98 |
+
> Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually
|
| 99 |
+
> running and checking the code.
|
| 100 |
+
|
| 101 |
+
[**Nick Schrock**](https://twitter.com/schrockn/status/1612615862904827904), founder of [Elementl](https://www.elementl.com/),
|
| 102 |
+
co-creator of [GraphQL](https://graphql.org/):
|
| 103 |
+
|
| 104 |
+
> Why is Ruff a gamechanger? Primarily because it is nearly 1000x faster. Literally. Not a typo. On
|
| 105 |
+
> our largest module (dagster itself, 250k LOC) pylint takes about 2.5 minutes, parallelized across 4
|
| 106 |
+
> cores on my M1. Running ruff against our _entire_ codebase takes .4 seconds.
|
| 107 |
+
|
| 108 |
+
[**Bryan Van de Ven**](https://github.com/bokeh/bokeh/pull/12605), co-creator
|
| 109 |
+
of [Bokeh](https://github.com/bokeh/bokeh/), original author
|
| 110 |
+
of [Conda](https://docs.conda.io/en/latest/):
|
| 111 |
+
|
| 112 |
+
> Ruff is ~150-200x faster than flake8 on my machine, scanning the whole repo takes ~0.2s instead of
|
| 113 |
+
> ~20s. This is an enormous quality of life improvement for local dev. It's fast enough that I added
|
| 114 |
+
> it as an actual commit hook, which is terrific.
|
| 115 |
+
|
| 116 |
+
[**Timothy Crosley**](https://twitter.com/timothycrosley/status/1606420868514877440),
|
| 117 |
+
creator of [isort](https://github.com/PyCQA/isort):
|
| 118 |
+
|
| 119 |
+
> Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe
|
| 120 |
+
> it was working till I intentionally introduced some errors.
|
| 121 |
+
|
| 122 |
+
[**Tim Abbott**](https://github.com/astral-sh/ruff/issues/465#issuecomment-1317400028), lead
|
| 123 |
+
developer of [Zulip](https://github.com/zulip/zulip):
|
| 124 |
+
|
| 125 |
+
> This is just ridiculously fast... `ruff` is amazing.
|
| 126 |
+
|
| 127 |
+
<!-- End section: Overview -->
|
| 128 |
+
|
| 129 |
+
## Table of Contents
|
| 130 |
+
|
| 131 |
+
For more, see the [documentation](https://docs.astral.sh/ruff/).
|
| 132 |
+
|
| 133 |
+
1. [Getting Started](#getting-started)
|
| 134 |
+
1. [Configuration](#configuration)
|
| 135 |
+
1. [Rules](#rules)
|
| 136 |
+
1. [Contributing](#contributing)
|
| 137 |
+
1. [Support](#support)
|
| 138 |
+
1. [Acknowledgements](#acknowledgements)
|
| 139 |
+
1. [Who's Using Ruff?](#whos-using-ruff)
|
| 140 |
+
1. [License](#license)
|
| 141 |
+
|
| 142 |
+
## Getting Started<a id="getting-started"></a>
|
| 143 |
+
|
| 144 |
+
For more, see the [documentation](https://docs.astral.sh/ruff/).
|
| 145 |
+
|
| 146 |
+
### Installation
|
| 147 |
+
|
| 148 |
+
Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI:
|
| 149 |
+
|
| 150 |
+
```shell
|
| 151 |
+
# With pip.
|
| 152 |
+
pip install ruff
|
| 153 |
+
|
| 154 |
+
# With pipx.
|
| 155 |
+
pipx install ruff
|
| 156 |
+
```
|
| 157 |
+
|
| 158 |
+
Starting with version `0.5.0`, Ruff can be installed with our standalone installers:
|
| 159 |
+
|
| 160 |
+
```shell
|
| 161 |
+
# On macOS and Linux.
|
| 162 |
+
curl -LsSf https://astral.sh/ruff/install.sh | sh
|
| 163 |
+
|
| 164 |
+
# On Windows.
|
| 165 |
+
powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
|
| 166 |
+
|
| 167 |
+
# For a specific version.
|
| 168 |
+
curl -LsSf https://astral.sh/ruff/0.6.7/install.sh | sh
|
| 169 |
+
powershell -c "irm https://astral.sh/ruff/0.6.7/install.ps1 | iex"
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
|
| 173 |
+
and with [a variety of other package managers](https://docs.astral.sh/ruff/installation/).
|
| 174 |
+
|
| 175 |
+
### Usage
|
| 176 |
+
|
| 177 |
+
To run Ruff as a linter, try any of the following:
|
| 178 |
+
|
| 179 |
+
```shell
|
| 180 |
+
ruff check # Lint all files in the current directory (and any subdirectories).
|
| 181 |
+
ruff check path/to/code/ # Lint all files in `/path/to/code` (and any subdirectories).
|
| 182 |
+
ruff check path/to/code/*.py # Lint all `.py` files in `/path/to/code`.
|
| 183 |
+
ruff check path/to/code/to/file.py # Lint `file.py`.
|
| 184 |
+
ruff check @arguments.txt # Lint using an input file, treating its contents as newline-delimited command-line arguments.
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
Or, to run Ruff as a formatter:
|
| 188 |
+
|
| 189 |
+
```shell
|
| 190 |
+
ruff format # Format all files in the current directory (and any subdirectories).
|
| 191 |
+
ruff format path/to/code/ # Format all files in `/path/to/code` (and any subdirectories).
|
| 192 |
+
ruff format path/to/code/*.py # Format all `.py` files in `/path/to/code`.
|
| 193 |
+
ruff format path/to/code/to/file.py # Format `file.py`.
|
| 194 |
+
ruff format @arguments.txt # Format using an input file, treating its contents as newline-delimited command-line arguments.
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit):
|
| 198 |
+
|
| 199 |
+
```yaml
|
| 200 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 201 |
+
# Ruff version.
|
| 202 |
+
rev: v0.6.7
|
| 203 |
+
hooks:
|
| 204 |
+
# Run the linter.
|
| 205 |
+
- id: ruff
|
| 206 |
+
args: [ --fix ]
|
| 207 |
+
# Run the formatter.
|
| 208 |
+
- id: ruff-format
|
| 209 |
+
```
|
| 210 |
+
|
| 211 |
+
Ruff can also be used as a [VS Code extension](https://github.com/astral-sh/ruff-vscode) or with [various other editors](https://docs.astral.sh/ruff/editors/setup).
|
| 212 |
+
|
| 213 |
+
Ruff can also be used as a [GitHub Action](https://github.com/features/actions) via
|
| 214 |
+
[`ruff-action`](https://github.com/chartboost/ruff-action):
|
| 215 |
+
|
| 216 |
+
```yaml
|
| 217 |
+
name: Ruff
|
| 218 |
+
on: [ push, pull_request ]
|
| 219 |
+
jobs:
|
| 220 |
+
ruff:
|
| 221 |
+
runs-on: ubuntu-latest
|
| 222 |
+
steps:
|
| 223 |
+
- uses: actions/checkout@v4
|
| 224 |
+
- uses: chartboost/ruff-action@v1
|
| 225 |
+
```
|
| 226 |
+
|
| 227 |
+
### Configuration<a id="configuration"></a>
|
| 228 |
+
|
| 229 |
+
Ruff can be configured through a `pyproject.toml`, `ruff.toml`, or `.ruff.toml` file (see:
|
| 230 |
+
[_Configuration_](https://docs.astral.sh/ruff/configuration/), or [_Settings_](https://docs.astral.sh/ruff/settings/)
|
| 231 |
+
for a complete list of all configuration options).
|
| 232 |
+
|
| 233 |
+
If left unspecified, Ruff's default configuration is equivalent to the following `ruff.toml` file:
|
| 234 |
+
|
| 235 |
+
```toml
|
| 236 |
+
# Exclude a variety of commonly ignored directories.
|
| 237 |
+
exclude = [
|
| 238 |
+
".bzr",
|
| 239 |
+
".direnv",
|
| 240 |
+
".eggs",
|
| 241 |
+
".git",
|
| 242 |
+
".git-rewrite",
|
| 243 |
+
".hg",
|
| 244 |
+
".ipynb_checkpoints",
|
| 245 |
+
".mypy_cache",
|
| 246 |
+
".nox",
|
| 247 |
+
".pants.d",
|
| 248 |
+
".pyenv",
|
| 249 |
+
".pytest_cache",
|
| 250 |
+
".pytype",
|
| 251 |
+
".ruff_cache",
|
| 252 |
+
".svn",
|
| 253 |
+
".tox",
|
| 254 |
+
".venv",
|
| 255 |
+
".vscode",
|
| 256 |
+
"__pypackages__",
|
| 257 |
+
"_build",
|
| 258 |
+
"buck-out",
|
| 259 |
+
"build",
|
| 260 |
+
"dist",
|
| 261 |
+
"node_modules",
|
| 262 |
+
"site-packages",
|
| 263 |
+
"venv",
|
| 264 |
+
]
|
| 265 |
+
|
| 266 |
+
# Same as Black.
|
| 267 |
+
line-length = 88
|
| 268 |
+
indent-width = 4
|
| 269 |
+
|
| 270 |
+
# Assume Python 3.8
|
| 271 |
+
target-version = "py38"
|
| 272 |
+
|
| 273 |
+
[lint]
|
| 274 |
+
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
| 275 |
+
select = ["E4", "E7", "E9", "F"]
|
| 276 |
+
ignore = []
|
| 277 |
+
|
| 278 |
+
# Allow fix for all enabled rules (when `--fix`) is provided.
|
| 279 |
+
fixable = ["ALL"]
|
| 280 |
+
unfixable = []
|
| 281 |
+
|
| 282 |
+
# Allow unused variables when underscore-prefixed.
|
| 283 |
+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
| 284 |
+
|
| 285 |
+
[format]
|
| 286 |
+
# Like Black, use double quotes for strings.
|
| 287 |
+
quote-style = "double"
|
| 288 |
+
|
| 289 |
+
# Like Black, indent with spaces, rather than tabs.
|
| 290 |
+
indent-style = "space"
|
| 291 |
+
|
| 292 |
+
# Like Black, respect magic trailing commas.
|
| 293 |
+
skip-magic-trailing-comma = false
|
| 294 |
+
|
| 295 |
+
# Like Black, automatically detect the appropriate line ending.
|
| 296 |
+
line-ending = "auto"
|
| 297 |
+
```
|
| 298 |
+
|
| 299 |
+
Note that, in a `pyproject.toml`, each section header should be prefixed with `tool.ruff`. For
|
| 300 |
+
example, `[lint]` should be replaced with `[tool.ruff.lint]`.
|
| 301 |
+
|
| 302 |
+
Some configuration options can be provided via dedicated command-line arguments, such as those
|
| 303 |
+
related to rule enablement and disablement, file discovery, and logging level:
|
| 304 |
+
|
| 305 |
+
```shell
|
| 306 |
+
ruff check --select F401 --select F403 --quiet
|
| 307 |
+
```
|
| 308 |
+
|
| 309 |
+
The remaining configuration options can be provided through a catch-all `--config` argument:
|
| 310 |
+
|
| 311 |
+
```shell
|
| 312 |
+
ruff check --config "lint.per-file-ignores = {'some_file.py' = ['F841']}"
|
| 313 |
+
```
|
| 314 |
+
|
| 315 |
+
To opt in to the latest lint rules, formatter style changes, interface updates, and more, enable
|
| 316 |
+
[preview mode](https://docs.astral.sh/ruff/rules/) by setting `preview = true` in your configuration
|
| 317 |
+
file or passing `--preview` on the command line. Preview mode enables a collection of unstable
|
| 318 |
+
features that may change prior to stabilization.
|
| 319 |
+
|
| 320 |
+
See `ruff help` for more on Ruff's top-level commands, or `ruff help check` and `ruff help format`
|
| 321 |
+
for more on the linting and formatting commands, respectively.
|
| 322 |
+
|
| 323 |
+
## Rules<a id="rules"></a>
|
| 324 |
+
|
| 325 |
+
<!-- Begin section: Rules -->
|
| 326 |
+
|
| 327 |
+
**Ruff supports over 800 lint rules**, many of which are inspired by popular tools like Flake8,
|
| 328 |
+
isort, pyupgrade, and others. Regardless of the rule's origin, Ruff re-implements every rule in
|
| 329 |
+
Rust as a first-party feature.
|
| 330 |
+
|
| 331 |
+
By default, Ruff enables Flake8's `F` rules, along with a subset of the `E` rules, omitting any
|
| 332 |
+
stylistic rules that overlap with the use of a formatter, like `ruff format` or
|
| 333 |
+
[Black](https://github.com/psf/black).
|
| 334 |
+
|
| 335 |
+
If you're just getting started with Ruff, **the default rule set is a great place to start**: it
|
| 336 |
+
catches a wide variety of common errors (like unused imports) with zero configuration.
|
| 337 |
+
|
| 338 |
+
<!-- End section: Rules -->
|
| 339 |
+
|
| 340 |
+
Beyond the defaults, Ruff re-implements some of the most popular Flake8 plugins and related code
|
| 341 |
+
quality tools, including:
|
| 342 |
+
|
| 343 |
+
- [autoflake](https://pypi.org/project/autoflake/)
|
| 344 |
+
- [eradicate](https://pypi.org/project/eradicate/)
|
| 345 |
+
- [flake8-2020](https://pypi.org/project/flake8-2020/)
|
| 346 |
+
- [flake8-annotations](https://pypi.org/project/flake8-annotations/)
|
| 347 |
+
- [flake8-async](https://pypi.org/project/flake8-async)
|
| 348 |
+
- [flake8-bandit](https://pypi.org/project/flake8-bandit/) ([#1646](https://github.com/astral-sh/ruff/issues/1646))
|
| 349 |
+
- [flake8-blind-except](https://pypi.org/project/flake8-blind-except/)
|
| 350 |
+
- [flake8-boolean-trap](https://pypi.org/project/flake8-boolean-trap/)
|
| 351 |
+
- [flake8-bugbear](https://pypi.org/project/flake8-bugbear/)
|
| 352 |
+
- [flake8-builtins](https://pypi.org/project/flake8-builtins/)
|
| 353 |
+
- [flake8-commas](https://pypi.org/project/flake8-commas/)
|
| 354 |
+
- [flake8-comprehensions](https://pypi.org/project/flake8-comprehensions/)
|
| 355 |
+
- [flake8-copyright](https://pypi.org/project/flake8-copyright/)
|
| 356 |
+
- [flake8-datetimez](https://pypi.org/project/flake8-datetimez/)
|
| 357 |
+
- [flake8-debugger](https://pypi.org/project/flake8-debugger/)
|
| 358 |
+
- [flake8-django](https://pypi.org/project/flake8-django/)
|
| 359 |
+
- [flake8-docstrings](https://pypi.org/project/flake8-docstrings/)
|
| 360 |
+
- [flake8-eradicate](https://pypi.org/project/flake8-eradicate/)
|
| 361 |
+
- [flake8-errmsg](https://pypi.org/project/flake8-errmsg/)
|
| 362 |
+
- [flake8-executable](https://pypi.org/project/flake8-executable/)
|
| 363 |
+
- [flake8-future-annotations](https://pypi.org/project/flake8-future-annotations/)
|
| 364 |
+
- [flake8-gettext](https://pypi.org/project/flake8-gettext/)
|
| 365 |
+
- [flake8-implicit-str-concat](https://pypi.org/project/flake8-implicit-str-concat/)
|
| 366 |
+
- [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions)
|
| 367 |
+
- [flake8-logging](https://pypi.org/project/flake8-logging/)
|
| 368 |
+
- [flake8-logging-format](https://pypi.org/project/flake8-logging-format/)
|
| 369 |
+
- [flake8-no-pep420](https://pypi.org/project/flake8-no-pep420)
|
| 370 |
+
- [flake8-pie](https://pypi.org/project/flake8-pie/)
|
| 371 |
+
- [flake8-print](https://pypi.org/project/flake8-print/)
|
| 372 |
+
- [flake8-pyi](https://pypi.org/project/flake8-pyi/)
|
| 373 |
+
- [flake8-pytest-style](https://pypi.org/project/flake8-pytest-style/)
|
| 374 |
+
- [flake8-quotes](https://pypi.org/project/flake8-quotes/)
|
| 375 |
+
- [flake8-raise](https://pypi.org/project/flake8-raise/)
|
| 376 |
+
- [flake8-return](https://pypi.org/project/flake8-return/)
|
| 377 |
+
- [flake8-self](https://pypi.org/project/flake8-self/)
|
| 378 |
+
- [flake8-simplify](https://pypi.org/project/flake8-simplify/)
|
| 379 |
+
- [flake8-slots](https://pypi.org/project/flake8-slots/)
|
| 380 |
+
- [flake8-super](https://pypi.org/project/flake8-super/)
|
| 381 |
+
- [flake8-tidy-imports](https://pypi.org/project/flake8-tidy-imports/)
|
| 382 |
+
- [flake8-todos](https://pypi.org/project/flake8-todos/)
|
| 383 |
+
- [flake8-type-checking](https://pypi.org/project/flake8-type-checking/)
|
| 384 |
+
- [flake8-use-pathlib](https://pypi.org/project/flake8-use-pathlib/)
|
| 385 |
+
- [flynt](https://pypi.org/project/flynt/) ([#2102](https://github.com/astral-sh/ruff/issues/2102))
|
| 386 |
+
- [isort](https://pypi.org/project/isort/)
|
| 387 |
+
- [mccabe](https://pypi.org/project/mccabe/)
|
| 388 |
+
- [pandas-vet](https://pypi.org/project/pandas-vet/)
|
| 389 |
+
- [pep8-naming](https://pypi.org/project/pep8-naming/)
|
| 390 |
+
- [pydocstyle](https://pypi.org/project/pydocstyle/)
|
| 391 |
+
- [pygrep-hooks](https://github.com/pre-commit/pygrep-hooks)
|
| 392 |
+
- [pylint-airflow](https://pypi.org/project/pylint-airflow/)
|
| 393 |
+
- [pyupgrade](https://pypi.org/project/pyupgrade/)
|
| 394 |
+
- [tryceratops](https://pypi.org/project/tryceratops/)
|
| 395 |
+
- [yesqa](https://pypi.org/project/yesqa/)
|
| 396 |
+
|
| 397 |
+
For a complete enumeration of the supported rules, see [_Rules_](https://docs.astral.sh/ruff/rules/).
|
| 398 |
+
|
| 399 |
+
## Contributing<a id="contributing"></a>
|
| 400 |
+
|
| 401 |
+
Contributions are welcome and highly appreciated. To get started, check out the
|
| 402 |
+
[**contributing guidelines**](https://docs.astral.sh/ruff/contributing/).
|
| 403 |
+
|
| 404 |
+
You can also join us on [**Discord**](https://discord.com/invite/astral-sh).
|
| 405 |
+
|
| 406 |
+
## Support<a id="support"></a>
|
| 407 |
+
|
| 408 |
+
Having trouble? Check out the existing issues on [**GitHub**](https://github.com/astral-sh/ruff/issues),
|
| 409 |
+
or feel free to [**open a new one**](https://github.com/astral-sh/ruff/issues/new).
|
| 410 |
+
|
| 411 |
+
You can also ask for help on [**Discord**](https://discord.com/invite/astral-sh).
|
| 412 |
+
|
| 413 |
+
## Acknowledgements<a id="acknowledgements"></a>
|
| 414 |
+
|
| 415 |
+
Ruff's linter draws on both the APIs and implementation details of many other
|
| 416 |
+
tools in the Python ecosystem, especially [Flake8](https://github.com/PyCQA/flake8), [Pyflakes](https://github.com/PyCQA/pyflakes),
|
| 417 |
+
[pycodestyle](https://github.com/PyCQA/pycodestyle), [pydocstyle](https://github.com/PyCQA/pydocstyle),
|
| 418 |
+
[pyupgrade](https://github.com/asottile/pyupgrade), and [isort](https://github.com/PyCQA/isort).
|
| 419 |
+
|
| 420 |
+
In some cases, Ruff includes a "direct" Rust port of the corresponding tool.
|
| 421 |
+
We're grateful to the maintainers of these tools for their work, and for all
|
| 422 |
+
the value they've provided to the Python community.
|
| 423 |
+
|
| 424 |
+
Ruff's formatter is built on a fork of Rome's [`rome_formatter`](https://github.com/rome/tools/tree/main/crates/rome_formatter),
|
| 425 |
+
and again draws on both API and implementation details from [Rome](https://github.com/rome/tools),
|
| 426 |
+
[Prettier](https://github.com/prettier/prettier), and [Black](https://github.com/psf/black).
|
| 427 |
+
|
| 428 |
+
Ruff's import resolver is based on the import resolution algorithm from [Pyright](https://github.com/microsoft/pyright).
|
| 429 |
+
|
| 430 |
+
Ruff is also influenced by a number of tools outside the Python ecosystem, like
|
| 431 |
+
[Clippy](https://github.com/rust-lang/rust-clippy) and [ESLint](https://github.com/eslint/eslint).
|
| 432 |
+
|
| 433 |
+
Ruff is the beneficiary of a large number of [contributors](https://github.com/astral-sh/ruff/graphs/contributors).
|
| 434 |
+
|
| 435 |
+
Ruff is released under the MIT license.
|
| 436 |
+
|
| 437 |
+
## Who's Using Ruff?<a id="whos-using-ruff"></a>
|
| 438 |
+
|
| 439 |
+
Ruff is used by a number of major open-source projects and companies, including:
|
| 440 |
+
|
| 441 |
+
- [Albumentations](https://github.com/albumentations-team/albumentations)
|
| 442 |
+
- Amazon ([AWS SAM](https://github.com/aws/serverless-application-model))
|
| 443 |
+
- Anthropic ([Python SDK](https://github.com/anthropics/anthropic-sdk-python))
|
| 444 |
+
- [Apache Airflow](https://github.com/apache/airflow)
|
| 445 |
+
- AstraZeneca ([Magnus](https://github.com/AstraZeneca/magnus-core))
|
| 446 |
+
- [Babel](https://github.com/python-babel/babel)
|
| 447 |
+
- Benchling ([Refac](https://github.com/benchling/refac))
|
| 448 |
+
- [Bokeh](https://github.com/bokeh/bokeh)
|
| 449 |
+
- [Cryptography (PyCA)](https://github.com/pyca/cryptography)
|
| 450 |
+
- CERN ([Indico](https://getindico.io/))
|
| 451 |
+
- [DVC](https://github.com/iterative/dvc)
|
| 452 |
+
- [Dagger](https://github.com/dagger/dagger)
|
| 453 |
+
- [Dagster](https://github.com/dagster-io/dagster)
|
| 454 |
+
- Databricks ([MLflow](https://github.com/mlflow/mlflow))
|
| 455 |
+
- [Dify](https://github.com/langgenius/dify)
|
| 456 |
+
- [FastAPI](https://github.com/tiangolo/fastapi)
|
| 457 |
+
- [Godot](https://github.com/godotengine/godot)
|
| 458 |
+
- [Gradio](https://github.com/gradio-app/gradio)
|
| 459 |
+
- [Great Expectations](https://github.com/great-expectations/great_expectations)
|
| 460 |
+
- [HTTPX](https://github.com/encode/httpx)
|
| 461 |
+
- [Hatch](https://github.com/pypa/hatch)
|
| 462 |
+
- [Home Assistant](https://github.com/home-assistant/core)
|
| 463 |
+
- Hugging Face ([Transformers](https://github.com/huggingface/transformers),
|
| 464 |
+
[Datasets](https://github.com/huggingface/datasets),
|
| 465 |
+
[Diffusers](https://github.com/huggingface/diffusers))
|
| 466 |
+
- IBM ([Qiskit](https://github.com/Qiskit/qiskit))
|
| 467 |
+
- ING Bank ([popmon](https://github.com/ing-bank/popmon), [probatus](https://github.com/ing-bank/probatus))
|
| 468 |
+
- [Ibis](https://github.com/ibis-project/ibis)
|
| 469 |
+
- [ivy](https://github.com/unifyai/ivy)
|
| 470 |
+
- [Jupyter](https://github.com/jupyter-server/jupyter_server)
|
| 471 |
+
- [Kraken Tech](https://kraken.tech/)
|
| 472 |
+
- [LangChain](https://github.com/hwchase17/langchain)
|
| 473 |
+
- [Litestar](https://litestar.dev/)
|
| 474 |
+
- [LlamaIndex](https://github.com/jerryjliu/llama_index)
|
| 475 |
+
- Matrix ([Synapse](https://github.com/matrix-org/synapse))
|
| 476 |
+
- [MegaLinter](https://github.com/oxsecurity/megalinter)
|
| 477 |
+
- Meltano ([Meltano CLI](https://github.com/meltano/meltano), [Singer SDK](https://github.com/meltano/sdk))
|
| 478 |
+
- Microsoft ([Semantic Kernel](https://github.com/microsoft/semantic-kernel),
|
| 479 |
+
[ONNX Runtime](https://github.com/microsoft/onnxruntime),
|
| 480 |
+
[LightGBM](https://github.com/microsoft/LightGBM))
|
| 481 |
+
- Modern Treasury ([Python SDK](https://github.com/Modern-Treasury/modern-treasury-python))
|
| 482 |
+
- Mozilla ([Firefox](https://github.com/mozilla/gecko-dev))
|
| 483 |
+
- [Mypy](https://github.com/python/mypy)
|
| 484 |
+
- [Nautobot](https://github.com/nautobot/nautobot)
|
| 485 |
+
- Netflix ([Dispatch](https://github.com/Netflix/dispatch))
|
| 486 |
+
- [Neon](https://github.com/neondatabase/neon)
|
| 487 |
+
- [Nokia](https://nokia.com/)
|
| 488 |
+
- [NoneBot](https://github.com/nonebot/nonebot2)
|
| 489 |
+
- [NumPyro](https://github.com/pyro-ppl/numpyro)
|
| 490 |
+
- [ONNX](https://github.com/onnx/onnx)
|
| 491 |
+
- [OpenBB](https://github.com/OpenBB-finance/OpenBBTerminal)
|
| 492 |
+
- [Open Wine Components](https://github.com/Open-Wine-Components/umu-launcher)
|
| 493 |
+
- [PDM](https://github.com/pdm-project/pdm)
|
| 494 |
+
- [PaddlePaddle](https://github.com/PaddlePaddle/Paddle)
|
| 495 |
+
- [Pandas](https://github.com/pandas-dev/pandas)
|
| 496 |
+
- [Pillow](https://github.com/python-pillow/Pillow)
|
| 497 |
+
- [Poetry](https://github.com/python-poetry/poetry)
|
| 498 |
+
- [Polars](https://github.com/pola-rs/polars)
|
| 499 |
+
- [PostHog](https://github.com/PostHog/posthog)
|
| 500 |
+
- Prefect ([Python SDK](https://github.com/PrefectHQ/prefect), [Marvin](https://github.com/PrefectHQ/marvin))
|
| 501 |
+
- [PyInstaller](https://github.com/pyinstaller/pyinstaller)
|
| 502 |
+
- [PyMC](https://github.com/pymc-devs/pymc/)
|
| 503 |
+
- [PyMC-Marketing](https://github.com/pymc-labs/pymc-marketing)
|
| 504 |
+
- [pytest](https://github.com/pytest-dev/pytest)
|
| 505 |
+
- [PyTorch](https://github.com/pytorch/pytorch)
|
| 506 |
+
- [Pydantic](https://github.com/pydantic/pydantic)
|
| 507 |
+
- [Pylint](https://github.com/PyCQA/pylint)
|
| 508 |
+
- [PyVista](https://github.com/pyvista/pyvista)
|
| 509 |
+
- [Reflex](https://github.com/reflex-dev/reflex)
|
| 510 |
+
- [River](https://github.com/online-ml/river)
|
| 511 |
+
- [Rippling](https://rippling.com)
|
| 512 |
+
- [Robyn](https://github.com/sansyrox/robyn)
|
| 513 |
+
- [Saleor](https://github.com/saleor/saleor)
|
| 514 |
+
- Scale AI ([Launch SDK](https://github.com/scaleapi/launch-python-client))
|
| 515 |
+
- [SciPy](https://github.com/scipy/scipy)
|
| 516 |
+
- Snowflake ([SnowCLI](https://github.com/Snowflake-Labs/snowcli))
|
| 517 |
+
- [Sphinx](https://github.com/sphinx-doc/sphinx)
|
| 518 |
+
- [Stable Baselines3](https://github.com/DLR-RM/stable-baselines3)
|
| 519 |
+
- [Starlette](https://github.com/encode/starlette)
|
| 520 |
+
- [Streamlit](https://github.com/streamlit/streamlit)
|
| 521 |
+
- [The Algorithms](https://github.com/TheAlgorithms/Python)
|
| 522 |
+
- [Vega-Altair](https://github.com/altair-viz/altair)
|
| 523 |
+
- WordPress ([Openverse](https://github.com/WordPress/openverse))
|
| 524 |
+
- [ZenML](https://github.com/zenml-io/zenml)
|
| 525 |
+
- [Zulip](https://github.com/zulip/zulip)
|
| 526 |
+
- [build (PyPA)](https://github.com/pypa/build)
|
| 527 |
+
- [cibuildwheel (PyPA)](https://github.com/pypa/cibuildwheel)
|
| 528 |
+
- [delta-rs](https://github.com/delta-io/delta-rs)
|
| 529 |
+
- [featuretools](https://github.com/alteryx/featuretools)
|
| 530 |
+
- [meson-python](https://github.com/mesonbuild/meson-python)
|
| 531 |
+
- [nox](https://github.com/wntrblm/nox)
|
| 532 |
+
- [pip](https://github.com/pypa/pip)
|
| 533 |
+
|
| 534 |
+
### Show Your Support
|
| 535 |
+
|
| 536 |
+
If you're using Ruff, consider adding the Ruff badge to your project's `README.md`:
|
| 537 |
+
|
| 538 |
+
```md
|
| 539 |
+
[](https://github.com/astral-sh/ruff)
|
| 540 |
+
```
|
| 541 |
+
|
| 542 |
+
...or `README.rst`:
|
| 543 |
+
|
| 544 |
+
```rst
|
| 545 |
+
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
| 546 |
+
:target: https://github.com/astral-sh/ruff
|
| 547 |
+
:alt: Ruff
|
| 548 |
+
```
|
| 549 |
+
|
| 550 |
+
...or, as HTML:
|
| 551 |
+
|
| 552 |
+
```html
|
| 553 |
+
<a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff" style="max-width:100%;"></a>
|
| 554 |
+
```
|
| 555 |
+
|
| 556 |
+
## License<a id="license"></a>
|
| 557 |
+
|
| 558 |
+
This repository is licensed under the [MIT License](https://github.com/astral-sh/ruff/blob/main/LICENSE)
|
| 559 |
+
|
| 560 |
+
<div align="center">
|
| 561 |
+
<a target="_blank" href="https://astral.sh" style="background:none">
|
| 562 |
+
<img src="https://raw.githubusercontent.com/astral-sh/ruff/main/assets/svg/Astral.svg" alt="Made by Astral">
|
| 563 |
+
</a>
|
| 564 |
+
</div>
|
| 565 |
+
|
parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/RECORD
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/ruff,sha256=zUZRWJh1J9bHZxDGjOhjFsTd4t9V5jfcf8wjMSpZpb8,30445280
|
| 2 |
+
ruff-0.6.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 3 |
+
ruff-0.6.7.dist-info/METADATA,sha256=rBR-Lm1ziNbt6aEGaWvPVR7h_L3bscN84ZQc0wzdfHc,25221
|
| 4 |
+
ruff-0.6.7.dist-info/RECORD,,
|
| 5 |
+
ruff-0.6.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
ruff-0.6.7.dist-info/WHEEL,sha256=vrfnzDgydXnSSnWeOFej9Oi4Ba6VaZAp25wKRpEZIhw,126
|
| 7 |
+
ruff-0.6.7.dist-info/licenses/LICENSE,sha256=MgnAt_tyV8BbFkM3KMHpdLrEAAD-8XG46eifCVYjyVQ,69789
|
| 8 |
+
ruff/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 9 |
+
ruff/__main__.py,sha256=VrCgyS6ZgEY46XYoth0ZJIx9cKAaS33uqp8zMAnBHw0,1373
|
| 10 |
+
ruff/__pycache__/__init__.cpython-310.pyc,,
|
| 11 |
+
ruff/__pycache__/__main__.cpython-310.pyc,,
|
parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/REQUESTED
ADDED
|
File without changes
|
parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: maturin (1.7.1)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64
|
parrot/lib/python3.10/site-packages/ruff-0.6.7.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,1398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2022 Charles Marsh
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
end of terms and conditions
|
| 24 |
+
|
| 25 |
+
The externally maintained libraries from which parts of the Software is derived
|
| 26 |
+
are:
|
| 27 |
+
|
| 28 |
+
- flake8-comprehensions, licensed as follows:
|
| 29 |
+
"""
|
| 30 |
+
MIT License
|
| 31 |
+
|
| 32 |
+
Copyright (c) 2017 Adam Johnson
|
| 33 |
+
|
| 34 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 35 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 36 |
+
in the Software without restriction, including without limitation the rights
|
| 37 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 38 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 39 |
+
furnished to do so, subject to the following conditions:
|
| 40 |
+
|
| 41 |
+
The above copyright notice and this permission notice shall be included in all
|
| 42 |
+
copies or substantial portions of the Software.
|
| 43 |
+
|
| 44 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 45 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 46 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 47 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 48 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 49 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 50 |
+
SOFTWARE.
|
| 51 |
+
"""
|
| 52 |
+
|
| 53 |
+
- flake8-no-pep420, licensed as follows:
|
| 54 |
+
"""
|
| 55 |
+
MIT License
|
| 56 |
+
|
| 57 |
+
Copyright (c) 2020 Adam Johnson
|
| 58 |
+
|
| 59 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 60 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 61 |
+
in the Software without restriction, including without limitation the rights
|
| 62 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 63 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 64 |
+
furnished to do so, subject to the following conditions:
|
| 65 |
+
|
| 66 |
+
The above copyright notice and this permission notice shall be included in all
|
| 67 |
+
copies or substantial portions of the Software.
|
| 68 |
+
|
| 69 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 70 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 71 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 72 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 73 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 74 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 75 |
+
SOFTWARE.
|
| 76 |
+
"""
|
| 77 |
+
|
| 78 |
+
- flake8-tidy-imports, licensed as follows:
|
| 79 |
+
"""
|
| 80 |
+
MIT License
|
| 81 |
+
|
| 82 |
+
Copyright (c) 2017 Adam Johnson
|
| 83 |
+
|
| 84 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 85 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 86 |
+
in the Software without restriction, including without limitation the rights
|
| 87 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 88 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 89 |
+
furnished to do so, subject to the following conditions:
|
| 90 |
+
|
| 91 |
+
The above copyright notice and this permission notice shall be included in all
|
| 92 |
+
copies or substantial portions of the Software.
|
| 93 |
+
|
| 94 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 95 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 96 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 97 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 98 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 99 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 100 |
+
SOFTWARE.
|
| 101 |
+
"""
|
| 102 |
+
|
| 103 |
+
- flake8-return, licensed as follows:
|
| 104 |
+
"""
|
| 105 |
+
MIT License
|
| 106 |
+
|
| 107 |
+
Copyright (c) 2019 Afonasev Evgeniy
|
| 108 |
+
|
| 109 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 110 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 111 |
+
in the Software without restriction, including without limitation the rights
|
| 112 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 113 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 114 |
+
furnished to do so, subject to the following conditions:
|
| 115 |
+
|
| 116 |
+
The above copyright notice and this permission notice shall be included in all
|
| 117 |
+
copies or substantial portions of the Software.
|
| 118 |
+
|
| 119 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 120 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 121 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 122 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 123 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 124 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 125 |
+
SOFTWARE.
|
| 126 |
+
"""
|
| 127 |
+
|
| 128 |
+
- flake8-2020, licensed as follows:
|
| 129 |
+
"""
|
| 130 |
+
Copyright (c) 2019 Anthony Sottile
|
| 131 |
+
|
| 132 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 133 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 134 |
+
in the Software without restriction, including without limitation the rights
|
| 135 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 136 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 137 |
+
furnished to do so, subject to the following conditions:
|
| 138 |
+
|
| 139 |
+
The above copyright notice and this permission notice shall be included in
|
| 140 |
+
all copies or substantial portions of the Software.
|
| 141 |
+
|
| 142 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 143 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 144 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 145 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 146 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 147 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 148 |
+
THE SOFTWARE.
|
| 149 |
+
"""
|
| 150 |
+
|
| 151 |
+
- pyupgrade, licensed as follows:
|
| 152 |
+
"""
|
| 153 |
+
Copyright (c) 2017 Anthony Sottile
|
| 154 |
+
|
| 155 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 156 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 157 |
+
in the Software without restriction, including without limitation the rights
|
| 158 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 159 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 160 |
+
furnished to do so, subject to the following conditions:
|
| 161 |
+
|
| 162 |
+
The above copyright notice and this permission notice shall be included in
|
| 163 |
+
all copies or substantial portions of the Software.
|
| 164 |
+
|
| 165 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 166 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 167 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 168 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 169 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 170 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 171 |
+
THE SOFTWARE.
|
| 172 |
+
"""
|
| 173 |
+
|
| 174 |
+
- flake8-blind-except, licensed as follows:
|
| 175 |
+
"""
|
| 176 |
+
The MIT License (MIT)
|
| 177 |
+
|
| 178 |
+
Copyright (c) 2014 Elijah Andrews
|
| 179 |
+
|
| 180 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 181 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 182 |
+
the Software without restriction, including without limitation the rights to
|
| 183 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 184 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 185 |
+
subject to the following conditions:
|
| 186 |
+
|
| 187 |
+
The above copyright notice and this permission notice shall be included in all
|
| 188 |
+
copies or substantial portions of the Software.
|
| 189 |
+
|
| 190 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 191 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 192 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 193 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 194 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 195 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 196 |
+
"""
|
| 197 |
+
|
| 198 |
+
- flake8-gettext, licensed as follows:
|
| 199 |
+
"""
|
| 200 |
+
BSD Zero Clause License
|
| 201 |
+
|
| 202 |
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
| 203 |
+
|
| 204 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 205 |
+
"""
|
| 206 |
+
|
| 207 |
+
- flake8-implicit-str-concat, licensed as follows:
|
| 208 |
+
"""
|
| 209 |
+
The MIT License (MIT)
|
| 210 |
+
|
| 211 |
+
Copyright (c) 2019 Dylan Turner
|
| 212 |
+
|
| 213 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 214 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 215 |
+
in the Software without restriction, including without limitation the rights
|
| 216 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 217 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 218 |
+
furnished to do so, subject to the following conditions:
|
| 219 |
+
|
| 220 |
+
The above copyright notice and this permission notice shall be included in
|
| 221 |
+
all copies or substantial portions of the Software.
|
| 222 |
+
|
| 223 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 224 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 225 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 226 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 227 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 228 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 229 |
+
THE SOFTWARE.
|
| 230 |
+
"""
|
| 231 |
+
|
| 232 |
+
- flake8-debugger, licensed as follows:
|
| 233 |
+
"""
|
| 234 |
+
MIT License
|
| 235 |
+
|
| 236 |
+
Copyright (c) 2016 Joseph Kahn
|
| 237 |
+
|
| 238 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 239 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 240 |
+
in the Software without restriction, including without limitation the rights
|
| 241 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 242 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 243 |
+
furnished to do so, subject to the following conditions:
|
| 244 |
+
|
| 245 |
+
The above copyright notice and this permission notice shall be included in all
|
| 246 |
+
copies or substantial portions of the Software.
|
| 247 |
+
|
| 248 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 249 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 250 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 251 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 252 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 253 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 254 |
+
SOFTWARE.
|
| 255 |
+
"""
|
| 256 |
+
|
| 257 |
+
- flake8-pyi, licensed as follows:
|
| 258 |
+
"""
|
| 259 |
+
The MIT License (MIT)
|
| 260 |
+
|
| 261 |
+
Copyright (c) 2016 Łukasz Langa
|
| 262 |
+
|
| 263 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 264 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 265 |
+
in the Software without restriction, including without limitation the rights
|
| 266 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 267 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 268 |
+
furnished to do so, subject to the following conditions:
|
| 269 |
+
|
| 270 |
+
The above copyright notice and this permission notice shall be included in all
|
| 271 |
+
copies or substantial portions of the Software.
|
| 272 |
+
|
| 273 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 274 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 275 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 276 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 277 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 278 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 279 |
+
SOFTWARE.
|
| 280 |
+
"""
|
| 281 |
+
|
| 282 |
+
- flake8-print, licensed as follows:
|
| 283 |
+
"""
|
| 284 |
+
MIT License
|
| 285 |
+
|
| 286 |
+
Copyright (c) 2016 Joseph Kahn
|
| 287 |
+
|
| 288 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 289 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 290 |
+
in the Software without restriction, including without limitation the rights
|
| 291 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 292 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 293 |
+
furnished to do so, subject to the following conditions:
|
| 294 |
+
|
| 295 |
+
The above copyright notice and this permission notice shall be included in all
|
| 296 |
+
copies or substantial portions of the Software.
|
| 297 |
+
|
| 298 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 299 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 300 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 301 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 302 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 303 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 304 |
+
SOFTWARE.
|
| 305 |
+
"""
|
| 306 |
+
|
| 307 |
+
- flake8-import-conventions, licensed as follows:
|
| 308 |
+
"""
|
| 309 |
+
MIT License
|
| 310 |
+
|
| 311 |
+
Copyright (c) 2021 João Palmeiro
|
| 312 |
+
|
| 313 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 314 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 315 |
+
in the Software without restriction, including without limitation the rights
|
| 316 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 317 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 318 |
+
furnished to do so, subject to the following conditions:
|
| 319 |
+
|
| 320 |
+
The above copyright notice and this permission notice shall be included in all
|
| 321 |
+
copies or substantial portions of the Software.
|
| 322 |
+
|
| 323 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 324 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 325 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 326 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 327 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 328 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 329 |
+
SOFTWARE.
|
| 330 |
+
"""
|
| 331 |
+
|
| 332 |
+
- flake8-simplify, licensed as follows:
|
| 333 |
+
"""
|
| 334 |
+
MIT License
|
| 335 |
+
|
| 336 |
+
Copyright (c) 2020 Martin Thoma
|
| 337 |
+
|
| 338 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 339 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 340 |
+
in the Software without restriction, including without limitation the rights
|
| 341 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 342 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 343 |
+
furnished to do so, subject to the following conditions:
|
| 344 |
+
|
| 345 |
+
The above copyright notice and this permission notice shall be included in all
|
| 346 |
+
copies or substantial portions of the Software.
|
| 347 |
+
|
| 348 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 349 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 350 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 351 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 352 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 353 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 354 |
+
SOFTWARE.
|
| 355 |
+
"""
|
| 356 |
+
|
| 357 |
+
- flake8-slots, licensed as follows:
|
| 358 |
+
"""
|
| 359 |
+
Copyright (c) 2021 Dominic Davis-Foster
|
| 360 |
+
|
| 361 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 362 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 363 |
+
in the Software without restriction, including without limitation the rights
|
| 364 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 365 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 366 |
+
furnished to do so, subject to the following conditions:
|
| 367 |
+
|
| 368 |
+
The above copyright notice and this permission notice shall be included in all
|
| 369 |
+
copies or substantial portions of the Software.
|
| 370 |
+
|
| 371 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 372 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 373 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 374 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
| 375 |
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
| 376 |
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
| 377 |
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
| 378 |
+
"""
|
| 379 |
+
|
| 380 |
+
- flake8-todos, licensed as follows:
|
| 381 |
+
"""
|
| 382 |
+
Copyright (c) 2019 EclecticIQ. All rights reserved.
|
| 383 |
+
Copyright (c) 2020 Gram <gram@orsinium.dev>. All rights reserved.
|
| 384 |
+
|
| 385 |
+
Redistribution and use in source and binary forms, with or without
|
| 386 |
+
modification, are permitted provided that the following conditions are met:
|
| 387 |
+
|
| 388 |
+
1. Redistributions of source code must retain the above copyright notice,
|
| 389 |
+
this list of conditions and the following disclaimer.
|
| 390 |
+
|
| 391 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 392 |
+
notice, this list of conditions and the following disclaimer in the
|
| 393 |
+
documentation and/or other materials provided with the distribution.
|
| 394 |
+
|
| 395 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 396 |
+
contributors may be used to endorse or promote products derived from this
|
| 397 |
+
software without specific prior written permission.
|
| 398 |
+
|
| 399 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 400 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 401 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 402 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 403 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 404 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 405 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 406 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 407 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 408 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 409 |
+
"""
|
| 410 |
+
|
| 411 |
+
- flake8-unused-arguments, licensed as follows:
|
| 412 |
+
"""
|
| 413 |
+
MIT License
|
| 414 |
+
|
| 415 |
+
Copyright (c) 2019 Nathan Hoad
|
| 416 |
+
|
| 417 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 418 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 419 |
+
in the Software without restriction, including without limitation the rights
|
| 420 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 421 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 422 |
+
furnished to do so, subject to the following conditions:
|
| 423 |
+
|
| 424 |
+
The above copyright notice and this permission notice shall be included in all
|
| 425 |
+
copies or substantial portions of the Software.
|
| 426 |
+
|
| 427 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 428 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 429 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 430 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 431 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 432 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 433 |
+
SOFTWARE.
|
| 434 |
+
"""
|
| 435 |
+
|
| 436 |
+
- pygrep-hooks, licensed as follows:
|
| 437 |
+
"""
|
| 438 |
+
Copyright (c) 2018 Anthony Sottile
|
| 439 |
+
|
| 440 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 441 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 442 |
+
in the Software without restriction, including without limitation the rights
|
| 443 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 444 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 445 |
+
furnished to do so, subject to the following conditions:
|
| 446 |
+
|
| 447 |
+
The above copyright notice and this permission notice shall be included in
|
| 448 |
+
all copies or substantial portions of the Software.
|
| 449 |
+
|
| 450 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 451 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 452 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 453 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 454 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 455 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 456 |
+
THE SOFTWARE.
|
| 457 |
+
"""
|
| 458 |
+
|
| 459 |
+
- autoflake, licensed as follows:
|
| 460 |
+
"""
|
| 461 |
+
Copyright (C) 2012-2018 Steven Myint
|
| 462 |
+
|
| 463 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 464 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 465 |
+
the Software without restriction, including without limitation the rights to
|
| 466 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 467 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 468 |
+
so, subject to the following conditions:
|
| 469 |
+
|
| 470 |
+
The above copyright notice and this permission notice shall be included in all
|
| 471 |
+
copies or substantial portions of the Software.
|
| 472 |
+
|
| 473 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 474 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 475 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 476 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 477 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 478 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 479 |
+
SOFTWARE.
|
| 480 |
+
"""
|
| 481 |
+
|
| 482 |
+
- autotyping, licensed as follows:
|
| 483 |
+
"""
|
| 484 |
+
MIT License
|
| 485 |
+
|
| 486 |
+
Copyright (c) 2023 Jelle Zijlstra
|
| 487 |
+
|
| 488 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 489 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 490 |
+
in the Software without restriction, including without limitation the rights
|
| 491 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 492 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 493 |
+
furnished to do so, subject to the following conditions:
|
| 494 |
+
|
| 495 |
+
The above copyright notice and this permission notice shall be included in all
|
| 496 |
+
copies or substantial portions of the Software.
|
| 497 |
+
|
| 498 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 499 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 500 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 501 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 502 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 503 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 504 |
+
SOFTWARE.
|
| 505 |
+
"""
|
| 506 |
+
|
| 507 |
+
- Flake8, licensed as follows:
|
| 508 |
+
"""
|
| 509 |
+
== Flake8 License (MIT) ==
|
| 510 |
+
|
| 511 |
+
Copyright (C) 2011-2013 Tarek Ziade <tarek@ziade.org>
|
| 512 |
+
Copyright (C) 2012-2016 Ian Cordasco <graffatcolmingov@gmail.com>
|
| 513 |
+
|
| 514 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 515 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 516 |
+
the Software without restriction, including without limitation the rights to
|
| 517 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 518 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 519 |
+
so, subject to the following conditions:
|
| 520 |
+
|
| 521 |
+
The above copyright notice and this permission notice shall be included in all
|
| 522 |
+
copies or substantial portions of the Software.
|
| 523 |
+
|
| 524 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 525 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 526 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 527 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 528 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 529 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 530 |
+
SOFTWARE.
|
| 531 |
+
"""
|
| 532 |
+
|
| 533 |
+
- flake8-bugbear, licensed as follows:
|
| 534 |
+
"""
|
| 535 |
+
The MIT License (MIT)
|
| 536 |
+
|
| 537 |
+
Copyright (c) 2016 Łukasz Langa
|
| 538 |
+
|
| 539 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 540 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 541 |
+
in the Software without restriction, including without limitation the rights
|
| 542 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 543 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 544 |
+
furnished to do so, subject to the following conditions:
|
| 545 |
+
|
| 546 |
+
The above copyright notice and this permission notice shall be included in all
|
| 547 |
+
copies or substantial portions of the Software.
|
| 548 |
+
|
| 549 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 550 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 551 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 552 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 553 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 554 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 555 |
+
SOFTWARE.
|
| 556 |
+
"""
|
| 557 |
+
|
| 558 |
+
- flake8-commas, licensed as follows:
|
| 559 |
+
"""
|
| 560 |
+
The MIT License (MIT)
|
| 561 |
+
|
| 562 |
+
Copyright (c) 2017 Thomas Grainger.
|
| 563 |
+
|
| 564 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 565 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 566 |
+
in the Software without restriction, including without limitation the rights
|
| 567 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 568 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 569 |
+
furnished to do so, subject to the following conditions:
|
| 570 |
+
|
| 571 |
+
The above copyright notice and this permission notice shall be included in
|
| 572 |
+
all copies or substantial portions of the Software.
|
| 573 |
+
|
| 574 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 575 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 576 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 577 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 578 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 579 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 580 |
+
THE SOFTWARE.
|
| 581 |
+
|
| 582 |
+
|
| 583 |
+
Portions of this flake8-commas Software may utilize the following
|
| 584 |
+
copyrighted material, the use of which is hereby acknowledged.
|
| 585 |
+
|
| 586 |
+
Original flake8-commas: https://github.com/trevorcreech/flake8-commas/commit/e8563b71b1d5442e102c8734c11cb5202284293d
|
| 587 |
+
|
| 588 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 589 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 590 |
+
in the Software without restriction, including without limitation the rights
|
| 591 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 592 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 593 |
+
furnished to do so, subject to the following conditions:
|
| 594 |
+
|
| 595 |
+
The above copyright notice and this permission notice shall be included in
|
| 596 |
+
all copies or substantial portions of the Software.
|
| 597 |
+
|
| 598 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 599 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 600 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 601 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 602 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 603 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 604 |
+
THE SOFTWARE.
|
| 605 |
+
"""
|
| 606 |
+
|
| 607 |
+
- flynt, licensed as follows:
|
| 608 |
+
"""
|
| 609 |
+
MIT License
|
| 610 |
+
|
| 611 |
+
Copyright (c) 2019-2022 Ilya Kamenshchikov
|
| 612 |
+
|
| 613 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 614 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 615 |
+
in the Software without restriction, including without limitation the rights
|
| 616 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 617 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 618 |
+
furnished to do so, subject to the following conditions:
|
| 619 |
+
|
| 620 |
+
The above copyright notice and this permission notice shall be included in all
|
| 621 |
+
copies or substantial portions of the Software.
|
| 622 |
+
|
| 623 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 624 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 625 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 626 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 627 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 628 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 629 |
+
SOFTWARE.
|
| 630 |
+
"""
|
| 631 |
+
|
| 632 |
+
- isort, licensed as follows:
|
| 633 |
+
"""
|
| 634 |
+
The MIT License (MIT)
|
| 635 |
+
|
| 636 |
+
Copyright (c) 2013 Timothy Edmund Crosley
|
| 637 |
+
|
| 638 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 639 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 640 |
+
in the Software without restriction, including without limitation the rights
|
| 641 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 642 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 643 |
+
furnished to do so, subject to the following conditions:
|
| 644 |
+
|
| 645 |
+
The above copyright notice and this permission notice shall be included in
|
| 646 |
+
all copies or substantial portions of the Software.
|
| 647 |
+
|
| 648 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 649 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 650 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 651 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 652 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 653 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 654 |
+
THE SOFTWARE.
|
| 655 |
+
"""
|
| 656 |
+
|
| 657 |
+
- pep8-naming, licensed as follows:
|
| 658 |
+
"""
|
| 659 |
+
Copyright © 2013 Florent Xicluna <florent.xicluna@gmail.com>
|
| 660 |
+
|
| 661 |
+
Licensed under the terms of the Expat License
|
| 662 |
+
|
| 663 |
+
Permission is hereby granted, free of charge, to any person
|
| 664 |
+
obtaining a copy of this software and associated documentation files
|
| 665 |
+
(the "Software"), to deal in the Software without restriction,
|
| 666 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 667 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 668 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 669 |
+
subject to the following conditions:
|
| 670 |
+
|
| 671 |
+
The above copyright notice and this permission notice shall be
|
| 672 |
+
included in all copies or substantial portions of the Software.
|
| 673 |
+
|
| 674 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 675 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 676 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 677 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 678 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 679 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 680 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 681 |
+
SOFTWARE.
|
| 682 |
+
"""
|
| 683 |
+
|
| 684 |
+
- pycodestyle, licensed as follows:
|
| 685 |
+
"""
|
| 686 |
+
Copyright © 2006-2009 Johann C. Rocholl <johann@rocholl.net>
|
| 687 |
+
Copyright © 2009-2014 Florent Xicluna <florent.xicluna@gmail.com>
|
| 688 |
+
Copyright © 2014-2020 Ian Lee <IanLee1521@gmail.com>
|
| 689 |
+
|
| 690 |
+
Licensed under the terms of the Expat License
|
| 691 |
+
|
| 692 |
+
Permission is hereby granted, free of charge, to any person
|
| 693 |
+
obtaining a copy of this software and associated documentation files
|
| 694 |
+
(the "Software"), to deal in the Software without restriction,
|
| 695 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 696 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 697 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 698 |
+
subject to the following conditions:
|
| 699 |
+
|
| 700 |
+
The above copyright notice and this permission notice shall be
|
| 701 |
+
included in all copies or substantial portions of the Software.
|
| 702 |
+
|
| 703 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 704 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 705 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 706 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 707 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 708 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 709 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 710 |
+
SOFTWARE.
|
| 711 |
+
"""
|
| 712 |
+
|
| 713 |
+
- pydocstyle, licensed as follows:
|
| 714 |
+
"""
|
| 715 |
+
Copyright (c) 2012 GreenSteam, <http://greensteam.dk/>
|
| 716 |
+
|
| 717 |
+
Copyright (c) 2014-2020 Amir Rachum, <http://amir.rachum.com/>
|
| 718 |
+
|
| 719 |
+
Copyright (c) 2020 Sambhav Kothari, <https://github.com/samj1912>
|
| 720 |
+
|
| 721 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 722 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 723 |
+
the Software without restriction, including without limitation the rights to
|
| 724 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 725 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 726 |
+
so, subject to the following conditions:
|
| 727 |
+
|
| 728 |
+
The above copyright notice and this permission notice shall be included in all
|
| 729 |
+
copies or substantial portions of the Software.
|
| 730 |
+
|
| 731 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 732 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 733 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 734 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 735 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 736 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 737 |
+
SOFTWARE.
|
| 738 |
+
"""
|
| 739 |
+
|
| 740 |
+
- Pyflakes, licensed as follows:
|
| 741 |
+
"""
|
| 742 |
+
Copyright 2005-2011 Divmod, Inc.
|
| 743 |
+
Copyright 2013-2014 Florent Xicluna
|
| 744 |
+
|
| 745 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 746 |
+
a copy of this software and associated documentation files (the
|
| 747 |
+
"Software"), to deal in the Software without restriction, including
|
| 748 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 749 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 750 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 751 |
+
the following conditions:
|
| 752 |
+
|
| 753 |
+
The above copyright notice and this permission notice shall be
|
| 754 |
+
included in all copies or substantial portions of the Software.
|
| 755 |
+
|
| 756 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 757 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 758 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 759 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 760 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 761 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 762 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 763 |
+
"""
|
| 764 |
+
|
| 765 |
+
- flake8-use-pathlib, licensed as follows:
|
| 766 |
+
"""
|
| 767 |
+
MIT License
|
| 768 |
+
|
| 769 |
+
Copyright (c) 2021 Rodolphe Pelloux-Prayer
|
| 770 |
+
|
| 771 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 772 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 773 |
+
in the Software without restriction, including without limitation the rights
|
| 774 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 775 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 776 |
+
furnished to do so, subject to the following conditions:
|
| 777 |
+
|
| 778 |
+
The above copyright notice and this permission notice shall be included in all
|
| 779 |
+
copies or substantial portions of the Software.
|
| 780 |
+
|
| 781 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 782 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 783 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 784 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 785 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 786 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 787 |
+
SOFTWARE.
|
| 788 |
+
"""
|
| 789 |
+
|
| 790 |
+
- RustPython, licensed as follows:
|
| 791 |
+
"""
|
| 792 |
+
MIT License
|
| 793 |
+
|
| 794 |
+
Copyright (c) 2020 RustPython Team
|
| 795 |
+
|
| 796 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 797 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 798 |
+
in the Software without restriction, including without limitation the rights
|
| 799 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 800 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 801 |
+
furnished to do so, subject to the following conditions:
|
| 802 |
+
|
| 803 |
+
The above copyright notice and this permission notice shall be included in all
|
| 804 |
+
copies or substantial portions of the Software.
|
| 805 |
+
|
| 806 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 807 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 808 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 809 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 810 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 811 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 812 |
+
SOFTWARE.
|
| 813 |
+
"""
|
| 814 |
+
|
| 815 |
+
- flake8-annotations, licensed as follows:
|
| 816 |
+
"""
|
| 817 |
+
MIT License
|
| 818 |
+
|
| 819 |
+
Copyright (c) 2019 - Present S. Co1
|
| 820 |
+
|
| 821 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 822 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 823 |
+
in the Software without restriction, including without limitation the rights
|
| 824 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 825 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 826 |
+
furnished to do so, subject to the following conditions:
|
| 827 |
+
|
| 828 |
+
The above copyright notice and this permission notice shall be included in all
|
| 829 |
+
copies or substantial portions of the Software.
|
| 830 |
+
|
| 831 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 832 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 833 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 834 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 835 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 836 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 837 |
+
SOFTWARE.
|
| 838 |
+
"""
|
| 839 |
+
|
| 840 |
+
- flake8-async, licensed as follows:
|
| 841 |
+
"""
|
| 842 |
+
MIT License
|
| 843 |
+
|
| 844 |
+
Copyright (c) 2022 Cooper Lees
|
| 845 |
+
|
| 846 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 847 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 848 |
+
in the Software without restriction, including without limitation the rights
|
| 849 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 850 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 851 |
+
furnished to do so, subject to the following conditions:
|
| 852 |
+
|
| 853 |
+
The above copyright notice and this permission notice shall be included in all
|
| 854 |
+
copies or substantial portions of the Software.
|
| 855 |
+
|
| 856 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 857 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 858 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 859 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 860 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 861 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 862 |
+
SOFTWARE.
|
| 863 |
+
"""
|
| 864 |
+
|
| 865 |
+
- flake8-type-checking, licensed as follows:
|
| 866 |
+
"""
|
| 867 |
+
Copyright (c) 2021, Sondre Lillebø Gundersen
|
| 868 |
+
All rights reserved.
|
| 869 |
+
|
| 870 |
+
Redistribution and use in source and binary forms, with or without
|
| 871 |
+
modification, are permitted provided that the following conditions are met:
|
| 872 |
+
|
| 873 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 874 |
+
list of conditions and the following disclaimer.
|
| 875 |
+
|
| 876 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 877 |
+
this list of conditions and the following disclaimer in the documentation
|
| 878 |
+
and/or other materials provided with the distribution.
|
| 879 |
+
|
| 880 |
+
* Neither the name of pytest-{{ cookiecutter.plugin_name }} nor the names of its
|
| 881 |
+
contributors may be used to endorse or promote products derived from
|
| 882 |
+
this software without specific prior written permission.
|
| 883 |
+
|
| 884 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 885 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 886 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 887 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 888 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 889 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 890 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 891 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 892 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 893 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 894 |
+
"""
|
| 895 |
+
|
| 896 |
+
- flake8-bandit, licensed as follows:
|
| 897 |
+
"""
|
| 898 |
+
Copyright (c) 2017 Tyler Wince
|
| 899 |
+
|
| 900 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 901 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 902 |
+
in the Software without restriction, including without limitation the rights
|
| 903 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 904 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 905 |
+
furnished to do so, subject to the following conditions:
|
| 906 |
+
|
| 907 |
+
The above copyright notice and this permission notice shall be included in
|
| 908 |
+
all copies or substantial portions of the Software.
|
| 909 |
+
|
| 910 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 911 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 912 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 913 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 914 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 915 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 916 |
+
THE SOFTWARE.
|
| 917 |
+
"""
|
| 918 |
+
|
| 919 |
+
- flake8-eradicate, licensed as follows:
|
| 920 |
+
"""
|
| 921 |
+
MIT License
|
| 922 |
+
|
| 923 |
+
Copyright (c) 2018 Nikita Sobolev
|
| 924 |
+
|
| 925 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 926 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 927 |
+
in the Software without restriction, including without limitation the rights
|
| 928 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 929 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 930 |
+
furnished to do so, subject to the following conditions:
|
| 931 |
+
|
| 932 |
+
The above copyright notice and this permission notice shall be included in all
|
| 933 |
+
copies or substantial portions of the Software.
|
| 934 |
+
|
| 935 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 936 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 937 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 938 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 939 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 940 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 941 |
+
SOFTWARE.
|
| 942 |
+
"""
|
| 943 |
+
|
| 944 |
+
- flake8-quotes, licensed as follows:
|
| 945 |
+
"""
|
| 946 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 947 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 948 |
+
in the Software without restriction, including without limitation the rights
|
| 949 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 950 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 951 |
+
furnished to do so, subject to the following conditions:
|
| 952 |
+
|
| 953 |
+
The above copyright notice and this permission notice shall be included in
|
| 954 |
+
all copies or substantial portions of the Software.
|
| 955 |
+
|
| 956 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 957 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 958 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 959 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 960 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 961 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 962 |
+
THE SOFTWARE.
|
| 963 |
+
"""
|
| 964 |
+
|
| 965 |
+
- flake8-logging-format, licensed as follows:
|
| 966 |
+
"""
|
| 967 |
+
Apache License
|
| 968 |
+
Version 2.0, January 2004
|
| 969 |
+
http://www.apache.org/licenses/
|
| 970 |
+
|
| 971 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 972 |
+
|
| 973 |
+
1. Definitions.
|
| 974 |
+
|
| 975 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 976 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 977 |
+
|
| 978 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 979 |
+
the copyright owner that is granting the License.
|
| 980 |
+
|
| 981 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 982 |
+
other entities that control, are controlled by, or are under common
|
| 983 |
+
control with that entity. For the purposes of this definition,
|
| 984 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 985 |
+
direction or management of such entity, whether by contract or
|
| 986 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 987 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 988 |
+
|
| 989 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 990 |
+
exercising permissions granted by this License.
|
| 991 |
+
|
| 992 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 993 |
+
including but not limited to software source code, documentation
|
| 994 |
+
source, and configuration files.
|
| 995 |
+
|
| 996 |
+
"Object" form shall mean any form resulting from mechanical
|
| 997 |
+
transformation or translation of a Source form, including but
|
| 998 |
+
not limited to compiled object code, generated documentation,
|
| 999 |
+
and conversions to other media types.
|
| 1000 |
+
|
| 1001 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 1002 |
+
Object form, made available under the License, as indicated by a
|
| 1003 |
+
copyright notice that is included in or attached to the work
|
| 1004 |
+
(an example is provided in the Appendix below).
|
| 1005 |
+
|
| 1006 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 1007 |
+
form, that is based on (or derived from) the Work and for which the
|
| 1008 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 1009 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 1010 |
+
of this License, Derivative Works shall not include works that remain
|
| 1011 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 1012 |
+
the Work and Derivative Works thereof.
|
| 1013 |
+
|
| 1014 |
+
"Contribution" shall mean any work of authorship, including
|
| 1015 |
+
the original version of the Work and any modifications or additions
|
| 1016 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 1017 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 1018 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 1019 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 1020 |
+
means any form of electronic, verbal, or written communication sent
|
| 1021 |
+
to the Licensor or its representatives, including but not limited to
|
| 1022 |
+
communication on electronic mailing lists, source code control systems,
|
| 1023 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 1024 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 1025 |
+
excluding communication that is conspicuously marked or otherwise
|
| 1026 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 1027 |
+
|
| 1028 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 1029 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 1030 |
+
subsequently incorporated within the Work.
|
| 1031 |
+
|
| 1032 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 1033 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 1034 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 1035 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 1036 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 1037 |
+
Work and such Derivative Works in Source or Object form.
|
| 1038 |
+
|
| 1039 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 1040 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 1041 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 1042 |
+
(except as stated in this section) patent license to make, have made,
|
| 1043 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 1044 |
+
where such license applies only to those patent claims licensable
|
| 1045 |
+
by such Contributor that are necessarily infringed by their
|
| 1046 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 1047 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 1048 |
+
institute patent litigation against any entity (including a
|
| 1049 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 1050 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 1051 |
+
or contributory patent infringement, then any patent licenses
|
| 1052 |
+
granted to You under this License for that Work shall terminate
|
| 1053 |
+
as of the date such litigation is filed.
|
| 1054 |
+
|
| 1055 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 1056 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 1057 |
+
modifications, and in Source or Object form, provided that You
|
| 1058 |
+
meet the following conditions:
|
| 1059 |
+
|
| 1060 |
+
(a) You must give any other recipients of the Work or
|
| 1061 |
+
Derivative Works a copy of this License; and
|
| 1062 |
+
|
| 1063 |
+
(b) You must cause any modified files to carry prominent notices
|
| 1064 |
+
stating that You changed the files; and
|
| 1065 |
+
|
| 1066 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 1067 |
+
that You distribute, all copyright, patent, trademark, and
|
| 1068 |
+
attribution notices from the Source form of the Work,
|
| 1069 |
+
excluding those notices that do not pertain to any part of
|
| 1070 |
+
the Derivative Works; and
|
| 1071 |
+
|
| 1072 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 1073 |
+
distribution, then any Derivative Works that You distribute must
|
| 1074 |
+
include a readable copy of the attribution notices contained
|
| 1075 |
+
within such NOTICE file, excluding those notices that do not
|
| 1076 |
+
pertain to any part of the Derivative Works, in at least one
|
| 1077 |
+
of the following places: within a NOTICE text file distributed
|
| 1078 |
+
as part of the Derivative Works; within the Source form or
|
| 1079 |
+
documentation, if provided along with the Derivative Works; or,
|
| 1080 |
+
within a display generated by the Derivative Works, if and
|
| 1081 |
+
wherever such third-party notices normally appear. The contents
|
| 1082 |
+
of the NOTICE file are for informational purposes only and
|
| 1083 |
+
do not modify the License. You may add Your own attribution
|
| 1084 |
+
notices within Derivative Works that You distribute, alongside
|
| 1085 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 1086 |
+
that such additional attribution notices cannot be construed
|
| 1087 |
+
as modifying the License.
|
| 1088 |
+
|
| 1089 |
+
You may add Your own copyright statement to Your modifications and
|
| 1090 |
+
may provide additional or different license terms and conditions
|
| 1091 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 1092 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 1093 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 1094 |
+
the conditions stated in this License.
|
| 1095 |
+
|
| 1096 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 1097 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 1098 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 1099 |
+
this License, without any additional terms or conditions.
|
| 1100 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 1101 |
+
the terms of any separate license agreement you may have executed
|
| 1102 |
+
with Licensor regarding such Contributions.
|
| 1103 |
+
|
| 1104 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 1105 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 1106 |
+
except as required for reasonable and customary use in describing the
|
| 1107 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 1108 |
+
|
| 1109 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 1110 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 1111 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 1112 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 1113 |
+
implied, including, without limitation, any warranties or conditions
|
| 1114 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 1115 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 1116 |
+
appropriateness of using or redistributing the Work and assume any
|
| 1117 |
+
risks associated with Your exercise of permissions under this License.
|
| 1118 |
+
|
| 1119 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 1120 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 1121 |
+
unless required by applicable law (such as deliberate and grossly
|
| 1122 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 1123 |
+
liable to You for damages, including any direct, indirect, special,
|
| 1124 |
+
incidental, or consequential damages of any character arising as a
|
| 1125 |
+
result of this License or out of the use or inability to use the
|
| 1126 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 1127 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 1128 |
+
other commercial damages or losses), even if such Contributor
|
| 1129 |
+
has been advised of the possibility of such damages.
|
| 1130 |
+
|
| 1131 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 1132 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 1133 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 1134 |
+
or other liability obligations and/or rights consistent with this
|
| 1135 |
+
License. However, in accepting such obligations, You may act only
|
| 1136 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 1137 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 1138 |
+
defend, and hold each Contributor harmless for any liability
|
| 1139 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 1140 |
+
of your accepting any such warranty or additional liability.
|
| 1141 |
+
|
| 1142 |
+
END OF TERMS AND CONDITIONS
|
| 1143 |
+
|
| 1144 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 1145 |
+
|
| 1146 |
+
To apply the Apache License to your work, attach the following
|
| 1147 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
| 1148 |
+
replaced with your own identifying information. (Don't include
|
| 1149 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 1150 |
+
comment syntax for the file format. We also recommend that a
|
| 1151 |
+
file or class name and description of purpose be included on the
|
| 1152 |
+
same "printed page" as the copyright notice for easier
|
| 1153 |
+
identification within third-party archives.
|
| 1154 |
+
|
| 1155 |
+
Copyright {yyyy} {name of copyright owner}
|
| 1156 |
+
|
| 1157 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 1158 |
+
you may not use this file except in compliance with the License.
|
| 1159 |
+
You may obtain a copy of the License at
|
| 1160 |
+
|
| 1161 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 1162 |
+
|
| 1163 |
+
Unless required by applicable law or agreed to in writing, software
|
| 1164 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 1165 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 1166 |
+
See the License for the specific language governing permissions and
|
| 1167 |
+
limitations under the License.
|
| 1168 |
+
"""
|
| 1169 |
+
|
| 1170 |
+
- flake8-raise, licensed as follows:
|
| 1171 |
+
"""
|
| 1172 |
+
MIT License
|
| 1173 |
+
|
| 1174 |
+
Copyright (c) 2020 Jon Dufresne
|
| 1175 |
+
|
| 1176 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1177 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1178 |
+
in the Software without restriction, including without limitation the rights
|
| 1179 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1180 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1181 |
+
furnished to do so, subject to the following conditions:
|
| 1182 |
+
|
| 1183 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1184 |
+
copies or substantial portions of the Software.
|
| 1185 |
+
|
| 1186 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1187 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1188 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1189 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1190 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1191 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1192 |
+
SOFTWARE.
|
| 1193 |
+
"""
|
| 1194 |
+
|
| 1195 |
+
- flake8-self, licensed as follows:
|
| 1196 |
+
"""
|
| 1197 |
+
MIT License
|
| 1198 |
+
|
| 1199 |
+
Copyright (c) 2023 Korijn van Golen
|
| 1200 |
+
|
| 1201 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1202 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1203 |
+
in the Software without restriction, including without limitation the rights
|
| 1204 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1205 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1206 |
+
furnished to do so, subject to the following conditions:
|
| 1207 |
+
|
| 1208 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1209 |
+
copies or substantial portions of the Software.
|
| 1210 |
+
|
| 1211 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1212 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1213 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1214 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1215 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1216 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1217 |
+
SOFTWARE.
|
| 1218 |
+
"""
|
| 1219 |
+
|
| 1220 |
+
- flake8-django, licensed under the GPL license.
|
| 1221 |
+
|
| 1222 |
+
- perflint, licensed as follows:
|
| 1223 |
+
"""
|
| 1224 |
+
MIT License
|
| 1225 |
+
|
| 1226 |
+
Copyright (c) 2022 Anthony Shaw
|
| 1227 |
+
|
| 1228 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1229 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1230 |
+
in the Software without restriction, including without limitation the rights
|
| 1231 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1232 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1233 |
+
furnished to do so, subject to the following conditions:
|
| 1234 |
+
|
| 1235 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1236 |
+
copies or substantial portions of the Software.
|
| 1237 |
+
|
| 1238 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1239 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1240 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1241 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1242 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1243 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1244 |
+
SOFTWARE.
|
| 1245 |
+
"""
|
| 1246 |
+
|
| 1247 |
+
- flake8-logging, licensed as follows:
|
| 1248 |
+
"""
|
| 1249 |
+
MIT License
|
| 1250 |
+
|
| 1251 |
+
Copyright (c) 2023 Adam Johnson
|
| 1252 |
+
|
| 1253 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1254 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1255 |
+
in the Software without restriction, including without limitation the rights
|
| 1256 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1257 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1258 |
+
furnished to do so, subject to the following conditions:
|
| 1259 |
+
|
| 1260 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1261 |
+
copies or substantial portions of the Software.
|
| 1262 |
+
|
| 1263 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1264 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1265 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1266 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1267 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1268 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1269 |
+
SOFTWARE.
|
| 1270 |
+
"""
|
| 1271 |
+
|
| 1272 |
+
- flake8-trio, licensed as follows:
|
| 1273 |
+
"""
|
| 1274 |
+
MIT License
|
| 1275 |
+
|
| 1276 |
+
Copyright (c) 2022 Zac Hatfield-Dodds
|
| 1277 |
+
|
| 1278 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1279 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1280 |
+
in the Software without restriction, including without limitation the rights
|
| 1281 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1282 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1283 |
+
furnished to do so, subject to the following conditions:
|
| 1284 |
+
|
| 1285 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1286 |
+
copies or substantial portions of the Software.
|
| 1287 |
+
|
| 1288 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1289 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1290 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1291 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1292 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1293 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1294 |
+
SOFTWARE.
|
| 1295 |
+
"""
|
| 1296 |
+
|
| 1297 |
+
- Pyright, licensed as follows:
|
| 1298 |
+
"""
|
| 1299 |
+
MIT License
|
| 1300 |
+
|
| 1301 |
+
Pyright - A static type checker for the Python language
|
| 1302 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 1303 |
+
|
| 1304 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1305 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1306 |
+
in the Software without restriction, including without limitation the rights
|
| 1307 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1308 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1309 |
+
furnished to do so, subject to the following conditions:
|
| 1310 |
+
|
| 1311 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1312 |
+
copies or substantial portions of the Software.
|
| 1313 |
+
|
| 1314 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1315 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1316 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1317 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1318 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1319 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1320 |
+
SOFTWARE
|
| 1321 |
+
"""
|
| 1322 |
+
|
| 1323 |
+
- rust-analyzer/text-size, licensed under the MIT license:
|
| 1324 |
+
"""
|
| 1325 |
+
Permission is hereby granted, free of charge, to any
|
| 1326 |
+
person obtaining a copy of this software and associated
|
| 1327 |
+
documentation files (the "Software"), to deal in the
|
| 1328 |
+
Software without restriction, including without
|
| 1329 |
+
limitation the rights to use, copy, modify, merge,
|
| 1330 |
+
publish, distribute, sublicense, and/or sell copies of
|
| 1331 |
+
the Software, and to permit persons to whom the Software
|
| 1332 |
+
is furnished to do so, subject to the following
|
| 1333 |
+
conditions:
|
| 1334 |
+
|
| 1335 |
+
The above copyright notice and this permission notice
|
| 1336 |
+
shall be included in all copies or substantial portions
|
| 1337 |
+
of the Software.
|
| 1338 |
+
|
| 1339 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
| 1340 |
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
| 1341 |
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
| 1342 |
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
| 1343 |
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 1344 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 1345 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 1346 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 1347 |
+
DEALINGS IN THE SOFTWARE.
|
| 1348 |
+
"""
|
| 1349 |
+
|
| 1350 |
+
- rome/tools, licensed under the MIT license:
|
| 1351 |
+
"""
|
| 1352 |
+
MIT License
|
| 1353 |
+
|
| 1354 |
+
Copyright (c) Rome Tools, Inc. and its affiliates.
|
| 1355 |
+
|
| 1356 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1357 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1358 |
+
in the Software without restriction, including without limitation the rights
|
| 1359 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1360 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1361 |
+
furnished to do so, subject to the following conditions:
|
| 1362 |
+
|
| 1363 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1364 |
+
copies or substantial portions of the Software.
|
| 1365 |
+
|
| 1366 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1367 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1368 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1369 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1370 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1371 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1372 |
+
SOFTWARE.
|
| 1373 |
+
"""
|
| 1374 |
+
|
| 1375 |
+
- pydoclint, licensed as follows:
|
| 1376 |
+
"""
|
| 1377 |
+
MIT License
|
| 1378 |
+
|
| 1379 |
+
Copyright (c) 2023 jsh9
|
| 1380 |
+
|
| 1381 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1382 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1383 |
+
in the Software without restriction, including without limitation the rights
|
| 1384 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1385 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1386 |
+
furnished to do so, subject to the following conditions:
|
| 1387 |
+
|
| 1388 |
+
The above copyright notice and this permission notice shall be included in all
|
| 1389 |
+
copies or substantial portions of the Software.
|
| 1390 |
+
|
| 1391 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1392 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1393 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1394 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1395 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1396 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1397 |
+
SOFTWARE.
|
| 1398 |
+
"""
|
parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/RECORD
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/REQUESTED
ADDED
|
File without changes
|
parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (75.1.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
parrot/lib/python3.10/site-packages/sympy-1.13.3.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
isympy = isympy:main
|
videollama2/lib/python3.10/site-packages/setuptools/_importlib.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
if sys.version_info < (3, 10):
|
| 4 |
+
import importlib_metadata as metadata # pragma: no cover
|
| 5 |
+
else:
|
| 6 |
+
import importlib.metadata as metadata # noqa: F401
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
import importlib.resources as resources # noqa: F401
|
videollama2/lib/python3.10/site-packages/setuptools/archive_util.py
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
import posixpath
|
| 6 |
+
import shutil
|
| 7 |
+
import tarfile
|
| 8 |
+
import zipfile
|
| 9 |
+
|
| 10 |
+
from ._path import ensure_directory
|
| 11 |
+
|
| 12 |
+
from distutils.errors import DistutilsError
|
| 13 |
+
|
| 14 |
+
__all__ = [
|
| 15 |
+
"unpack_archive",
|
| 16 |
+
"unpack_zipfile",
|
| 17 |
+
"unpack_tarfile",
|
| 18 |
+
"default_filter",
|
| 19 |
+
"UnrecognizedFormat",
|
| 20 |
+
"extraction_drivers",
|
| 21 |
+
"unpack_directory",
|
| 22 |
+
]
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class UnrecognizedFormat(DistutilsError):
|
| 26 |
+
"""Couldn't recognize the archive type"""
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def default_filter(src, dst):
|
| 30 |
+
"""The default progress/filter callback; returns True for all files"""
|
| 31 |
+
return dst
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def unpack_archive(
|
| 35 |
+
filename, extract_dir, progress_filter=default_filter, drivers=None
|
| 36 |
+
) -> None:
|
| 37 |
+
"""Unpack `filename` to `extract_dir`, or raise ``UnrecognizedFormat``
|
| 38 |
+
|
| 39 |
+
`progress_filter` is a function taking two arguments: a source path
|
| 40 |
+
internal to the archive ('/'-separated), and a filesystem path where it
|
| 41 |
+
will be extracted. The callback must return the desired extract path
|
| 42 |
+
(which may be the same as the one passed in), or else ``None`` to skip
|
| 43 |
+
that file or directory. The callback can thus be used to report on the
|
| 44 |
+
progress of the extraction, as well as to filter the items extracted or
|
| 45 |
+
alter their extraction paths.
|
| 46 |
+
|
| 47 |
+
`drivers`, if supplied, must be a non-empty sequence of functions with the
|
| 48 |
+
same signature as this function (minus the `drivers` argument), that raise
|
| 49 |
+
``UnrecognizedFormat`` if they do not support extracting the designated
|
| 50 |
+
archive type. The `drivers` are tried in sequence until one is found that
|
| 51 |
+
does not raise an error, or until all are exhausted (in which case
|
| 52 |
+
``UnrecognizedFormat`` is raised). If you do not supply a sequence of
|
| 53 |
+
drivers, the module's ``extraction_drivers`` constant will be used, which
|
| 54 |
+
means that ``unpack_zipfile`` and ``unpack_tarfile`` will be tried, in that
|
| 55 |
+
order.
|
| 56 |
+
"""
|
| 57 |
+
for driver in drivers or extraction_drivers:
|
| 58 |
+
try:
|
| 59 |
+
driver(filename, extract_dir, progress_filter)
|
| 60 |
+
except UnrecognizedFormat:
|
| 61 |
+
continue
|
| 62 |
+
else:
|
| 63 |
+
return
|
| 64 |
+
else:
|
| 65 |
+
raise UnrecognizedFormat(f"Not a recognized archive type: {filename}")
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def unpack_directory(filename, extract_dir, progress_filter=default_filter) -> None:
|
| 69 |
+
""" "Unpack" a directory, using the same interface as for archives
|
| 70 |
+
|
| 71 |
+
Raises ``UnrecognizedFormat`` if `filename` is not a directory
|
| 72 |
+
"""
|
| 73 |
+
if not os.path.isdir(filename):
|
| 74 |
+
raise UnrecognizedFormat(f"{filename} is not a directory")
|
| 75 |
+
|
| 76 |
+
paths = {
|
| 77 |
+
filename: ('', extract_dir),
|
| 78 |
+
}
|
| 79 |
+
for base, dirs, files in os.walk(filename):
|
| 80 |
+
src, dst = paths[base]
|
| 81 |
+
for d in dirs:
|
| 82 |
+
paths[os.path.join(base, d)] = src + d + '/', os.path.join(dst, d)
|
| 83 |
+
for f in files:
|
| 84 |
+
target = os.path.join(dst, f)
|
| 85 |
+
target = progress_filter(src + f, target)
|
| 86 |
+
if not target:
|
| 87 |
+
# skip non-files
|
| 88 |
+
continue
|
| 89 |
+
ensure_directory(target)
|
| 90 |
+
f = os.path.join(base, f)
|
| 91 |
+
shutil.copyfile(f, target)
|
| 92 |
+
shutil.copystat(f, target)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def unpack_zipfile(filename, extract_dir, progress_filter=default_filter) -> None:
|
| 96 |
+
"""Unpack zip `filename` to `extract_dir`
|
| 97 |
+
|
| 98 |
+
Raises ``UnrecognizedFormat`` if `filename` is not a zipfile (as determined
|
| 99 |
+
by ``zipfile.is_zipfile()``). See ``unpack_archive()`` for an explanation
|
| 100 |
+
of the `progress_filter` argument.
|
| 101 |
+
"""
|
| 102 |
+
|
| 103 |
+
if not zipfile.is_zipfile(filename):
|
| 104 |
+
raise UnrecognizedFormat(f"{filename} is not a zip file")
|
| 105 |
+
|
| 106 |
+
with zipfile.ZipFile(filename) as z:
|
| 107 |
+
_unpack_zipfile_obj(z, extract_dir, progress_filter)
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def _unpack_zipfile_obj(zipfile_obj, extract_dir, progress_filter=default_filter):
|
| 111 |
+
"""Internal/private API used by other parts of setuptools.
|
| 112 |
+
Similar to ``unpack_zipfile``, but receives an already opened :obj:`zipfile.ZipFile`
|
| 113 |
+
object instead of a filename.
|
| 114 |
+
"""
|
| 115 |
+
for info in zipfile_obj.infolist():
|
| 116 |
+
name = info.filename
|
| 117 |
+
|
| 118 |
+
# don't extract absolute paths or ones with .. in them
|
| 119 |
+
if name.startswith('/') or '..' in name.split('/'):
|
| 120 |
+
continue
|
| 121 |
+
|
| 122 |
+
target = os.path.join(extract_dir, *name.split('/'))
|
| 123 |
+
target = progress_filter(name, target)
|
| 124 |
+
if not target:
|
| 125 |
+
continue
|
| 126 |
+
if name.endswith('/'):
|
| 127 |
+
# directory
|
| 128 |
+
ensure_directory(target)
|
| 129 |
+
else:
|
| 130 |
+
# file
|
| 131 |
+
ensure_directory(target)
|
| 132 |
+
data = zipfile_obj.read(info.filename)
|
| 133 |
+
with open(target, 'wb') as f:
|
| 134 |
+
f.write(data)
|
| 135 |
+
unix_attributes = info.external_attr >> 16
|
| 136 |
+
if unix_attributes:
|
| 137 |
+
os.chmod(target, unix_attributes)
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
def _resolve_tar_file_or_dir(tar_obj, tar_member_obj):
|
| 141 |
+
"""Resolve any links and extract link targets as normal files."""
|
| 142 |
+
while tar_member_obj is not None and (
|
| 143 |
+
tar_member_obj.islnk() or tar_member_obj.issym()
|
| 144 |
+
):
|
| 145 |
+
linkpath = tar_member_obj.linkname
|
| 146 |
+
if tar_member_obj.issym():
|
| 147 |
+
base = posixpath.dirname(tar_member_obj.name)
|
| 148 |
+
linkpath = posixpath.join(base, linkpath)
|
| 149 |
+
linkpath = posixpath.normpath(linkpath)
|
| 150 |
+
tar_member_obj = tar_obj._getmember(linkpath)
|
| 151 |
+
|
| 152 |
+
is_file_or_dir = tar_member_obj is not None and (
|
| 153 |
+
tar_member_obj.isfile() or tar_member_obj.isdir()
|
| 154 |
+
)
|
| 155 |
+
if is_file_or_dir:
|
| 156 |
+
return tar_member_obj
|
| 157 |
+
|
| 158 |
+
raise LookupError('Got unknown file type')
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
def _iter_open_tar(tar_obj, extract_dir, progress_filter):
|
| 162 |
+
"""Emit member-destination pairs from a tar archive."""
|
| 163 |
+
# don't do any chowning!
|
| 164 |
+
tar_obj.chown = lambda *args: None
|
| 165 |
+
|
| 166 |
+
with contextlib.closing(tar_obj):
|
| 167 |
+
for member in tar_obj:
|
| 168 |
+
name = member.name
|
| 169 |
+
# don't extract absolute paths or ones with .. in them
|
| 170 |
+
if name.startswith('/') or '..' in name.split('/'):
|
| 171 |
+
continue
|
| 172 |
+
|
| 173 |
+
prelim_dst = os.path.join(extract_dir, *name.split('/'))
|
| 174 |
+
|
| 175 |
+
try:
|
| 176 |
+
member = _resolve_tar_file_or_dir(tar_obj, member)
|
| 177 |
+
except LookupError:
|
| 178 |
+
continue
|
| 179 |
+
|
| 180 |
+
final_dst = progress_filter(name, prelim_dst)
|
| 181 |
+
if not final_dst:
|
| 182 |
+
continue
|
| 183 |
+
|
| 184 |
+
if final_dst.endswith(os.sep):
|
| 185 |
+
final_dst = final_dst[:-1]
|
| 186 |
+
|
| 187 |
+
yield member, final_dst
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
def unpack_tarfile(filename, extract_dir, progress_filter=default_filter) -> bool:
|
| 191 |
+
"""Unpack tar/tar.gz/tar.bz2 `filename` to `extract_dir`
|
| 192 |
+
|
| 193 |
+
Raises ``UnrecognizedFormat`` if `filename` is not a tarfile (as determined
|
| 194 |
+
by ``tarfile.open()``). See ``unpack_archive()`` for an explanation
|
| 195 |
+
of the `progress_filter` argument.
|
| 196 |
+
"""
|
| 197 |
+
try:
|
| 198 |
+
tarobj = tarfile.open(filename)
|
| 199 |
+
except tarfile.TarError as e:
|
| 200 |
+
raise UnrecognizedFormat(
|
| 201 |
+
f"{filename} is not a compressed or uncompressed tar file"
|
| 202 |
+
) from e
|
| 203 |
+
|
| 204 |
+
for member, final_dst in _iter_open_tar(
|
| 205 |
+
tarobj,
|
| 206 |
+
extract_dir,
|
| 207 |
+
progress_filter,
|
| 208 |
+
):
|
| 209 |
+
try:
|
| 210 |
+
# XXX Ugh
|
| 211 |
+
tarobj._extract_member(member, final_dst)
|
| 212 |
+
except tarfile.ExtractError:
|
| 213 |
+
# chown/chmod/mkfifo/mknode/makedev failed
|
| 214 |
+
pass
|
| 215 |
+
|
| 216 |
+
return True
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
extraction_drivers = unpack_directory, unpack_zipfile, unpack_tarfile
|
videollama2/lib/python3.10/site-packages/setuptools/cli-32.exe
ADDED
|
Binary file (11.8 kB). View file
|
|
|
videollama2/lib/python3.10/site-packages/setuptools/errors.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""setuptools.errors
|
| 2 |
+
|
| 3 |
+
Provides exceptions used by setuptools modules.
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
from distutils import errors as _distutils_errors
|
| 9 |
+
|
| 10 |
+
# Re-export errors from distutils to facilitate the migration to PEP632
|
| 11 |
+
|
| 12 |
+
ByteCompileError = _distutils_errors.DistutilsByteCompileError
|
| 13 |
+
CCompilerError = _distutils_errors.CCompilerError
|
| 14 |
+
ClassError = _distutils_errors.DistutilsClassError
|
| 15 |
+
CompileError = _distutils_errors.CompileError
|
| 16 |
+
ExecError = _distutils_errors.DistutilsExecError
|
| 17 |
+
FileError = _distutils_errors.DistutilsFileError
|
| 18 |
+
InternalError = _distutils_errors.DistutilsInternalError
|
| 19 |
+
LibError = _distutils_errors.LibError
|
| 20 |
+
LinkError = _distutils_errors.LinkError
|
| 21 |
+
ModuleError = _distutils_errors.DistutilsModuleError
|
| 22 |
+
OptionError = _distutils_errors.DistutilsOptionError
|
| 23 |
+
PlatformError = _distutils_errors.DistutilsPlatformError
|
| 24 |
+
PreprocessError = _distutils_errors.PreprocessError
|
| 25 |
+
SetupError = _distutils_errors.DistutilsSetupError
|
| 26 |
+
TemplateError = _distutils_errors.DistutilsTemplateError
|
| 27 |
+
UnknownFileError = _distutils_errors.UnknownFileError
|
| 28 |
+
|
| 29 |
+
# The root error class in the hierarchy
|
| 30 |
+
BaseError = _distutils_errors.DistutilsError
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class InvalidConfigError(OptionError): # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+
|
| 34 |
+
"""Error used for invalid configurations."""
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class RemovedConfigError(OptionError): # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+
|
| 38 |
+
"""Error used for configurations that were deprecated and removed."""
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
class RemovedCommandError(BaseError, RuntimeError): # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+
|
| 42 |
+
"""Error used for commands that have been removed in setuptools.
|
| 43 |
+
|
| 44 |
+
Since ``setuptools`` is built on ``distutils``, simply removing a command
|
| 45 |
+
from ``setuptools`` will make the behavior fall back to ``distutils``; this
|
| 46 |
+
error is raised if a command exists in ``distutils`` but has been actively
|
| 47 |
+
removed in ``setuptools``.
|
| 48 |
+
"""
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class PackageDiscoveryError(BaseError, RuntimeError): # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+
|
| 52 |
+
"""Impossible to perform automatic discovery of packages and/or modules.
|
| 53 |
+
|
| 54 |
+
The current project layout or given discovery options can lead to problems when
|
| 55 |
+
scanning the project directory.
|
| 56 |
+
|
| 57 |
+
Setuptools might also refuse to complete auto-discovery if an error prone condition
|
| 58 |
+
is detected (e.g. when a project is organised as a flat-layout but contains
|
| 59 |
+
multiple directories that can be taken as top-level packages inside a single
|
| 60 |
+
distribution [*]_). In these situations the users are encouraged to be explicit
|
| 61 |
+
about which packages to include or to make the discovery parameters more specific.
|
| 62 |
+
|
| 63 |
+
.. [*] Since multi-package distributions are uncommon it is very likely that the
|
| 64 |
+
developers did not intend for all the directories to be packaged, and are just
|
| 65 |
+
leaving auxiliary code in the repository top-level, such as maintenance-related
|
| 66 |
+
scripts.
|
| 67 |
+
"""
|
videollama2/lib/python3.10/site-packages/setuptools/package_index.py
ADDED
|
@@ -0,0 +1,1141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""PyPI and direct package downloading."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import base64
|
| 6 |
+
import configparser
|
| 7 |
+
import hashlib
|
| 8 |
+
import html
|
| 9 |
+
import http.client
|
| 10 |
+
import io
|
| 11 |
+
import itertools
|
| 12 |
+
import os
|
| 13 |
+
import re
|
| 14 |
+
import shutil
|
| 15 |
+
import socket
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import urllib.error
|
| 19 |
+
import urllib.parse
|
| 20 |
+
import urllib.request
|
| 21 |
+
from fnmatch import translate
|
| 22 |
+
from functools import wraps
|
| 23 |
+
from typing import NamedTuple
|
| 24 |
+
|
| 25 |
+
from more_itertools import unique_everseen
|
| 26 |
+
|
| 27 |
+
import setuptools
|
| 28 |
+
from pkg_resources import (
|
| 29 |
+
BINARY_DIST,
|
| 30 |
+
CHECKOUT_DIST,
|
| 31 |
+
DEVELOP_DIST,
|
| 32 |
+
EGG_DIST,
|
| 33 |
+
SOURCE_DIST,
|
| 34 |
+
Distribution,
|
| 35 |
+
Environment,
|
| 36 |
+
Requirement,
|
| 37 |
+
find_distributions,
|
| 38 |
+
normalize_path,
|
| 39 |
+
parse_version,
|
| 40 |
+
safe_name,
|
| 41 |
+
safe_version,
|
| 42 |
+
to_filename,
|
| 43 |
+
)
|
| 44 |
+
from setuptools.wheel import Wheel
|
| 45 |
+
|
| 46 |
+
from .unicode_utils import _cfg_read_utf8_with_fallback, _read_utf8_with_fallback
|
| 47 |
+
|
| 48 |
+
from distutils import log
|
| 49 |
+
from distutils.errors import DistutilsError
|
| 50 |
+
|
| 51 |
+
EGG_FRAGMENT = re.compile(r'^egg=([-A-Za-z0-9_.+!]+)$')
|
| 52 |
+
HREF = re.compile(r"""href\s*=\s*['"]?([^'"> ]+)""", re.I)
|
| 53 |
+
PYPI_MD5 = re.compile(
|
| 54 |
+
r'<a href="([^"#]+)">([^<]+)</a>\n\s+\(<a (?:title="MD5 hash"\n\s+)'
|
| 55 |
+
r'href="[^?]+\?:action=show_md5&digest=([0-9a-f]{32})">md5</a>\)'
|
| 56 |
+
)
|
| 57 |
+
URL_SCHEME = re.compile('([-+.a-z0-9]{2,}):', re.I).match
|
| 58 |
+
EXTENSIONS = ".tar.gz .tar.bz2 .tar .zip .tgz".split()
|
| 59 |
+
|
| 60 |
+
__all__ = [
|
| 61 |
+
'PackageIndex',
|
| 62 |
+
'distros_for_url',
|
| 63 |
+
'parse_bdist_wininst',
|
| 64 |
+
'interpret_distro_name',
|
| 65 |
+
]
|
| 66 |
+
|
| 67 |
+
_SOCKET_TIMEOUT = 15
|
| 68 |
+
|
| 69 |
+
user_agent = f"setuptools/{setuptools.__version__} Python-urllib/{sys.version_info.major}.{sys.version_info.minor}"
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def parse_requirement_arg(spec):
|
| 73 |
+
try:
|
| 74 |
+
return Requirement.parse(spec)
|
| 75 |
+
except ValueError as e:
|
| 76 |
+
raise DistutilsError(
|
| 77 |
+
f"Not a URL, existing file, or requirement spec: {spec!r}"
|
| 78 |
+
) from e
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def parse_bdist_wininst(name):
|
| 82 |
+
"""Return (base,pyversion) or (None,None) for possible .exe name"""
|
| 83 |
+
|
| 84 |
+
lower = name.lower()
|
| 85 |
+
base, py_ver, plat = None, None, None
|
| 86 |
+
|
| 87 |
+
if lower.endswith('.exe'):
|
| 88 |
+
if lower.endswith('.win32.exe'):
|
| 89 |
+
base = name[:-10]
|
| 90 |
+
plat = 'win32'
|
| 91 |
+
elif lower.startswith('.win32-py', -16):
|
| 92 |
+
py_ver = name[-7:-4]
|
| 93 |
+
base = name[:-16]
|
| 94 |
+
plat = 'win32'
|
| 95 |
+
elif lower.endswith('.win-amd64.exe'):
|
| 96 |
+
base = name[:-14]
|
| 97 |
+
plat = 'win-amd64'
|
| 98 |
+
elif lower.startswith('.win-amd64-py', -20):
|
| 99 |
+
py_ver = name[-7:-4]
|
| 100 |
+
base = name[:-20]
|
| 101 |
+
plat = 'win-amd64'
|
| 102 |
+
return base, py_ver, plat
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def egg_info_for_url(url):
|
| 106 |
+
parts = urllib.parse.urlparse(url)
|
| 107 |
+
_scheme, server, path, _parameters, _query, fragment = parts
|
| 108 |
+
base = urllib.parse.unquote(path.split('/')[-1])
|
| 109 |
+
if server == 'sourceforge.net' and base == 'download': # XXX Yuck
|
| 110 |
+
base = urllib.parse.unquote(path.split('/')[-2])
|
| 111 |
+
if '#' in base:
|
| 112 |
+
base, fragment = base.split('#', 1)
|
| 113 |
+
return base, fragment
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def distros_for_url(url, metadata=None):
|
| 117 |
+
"""Yield egg or source distribution objects that might be found at a URL"""
|
| 118 |
+
base, fragment = egg_info_for_url(url)
|
| 119 |
+
yield from distros_for_location(url, base, metadata)
|
| 120 |
+
if fragment:
|
| 121 |
+
match = EGG_FRAGMENT.match(fragment)
|
| 122 |
+
if match:
|
| 123 |
+
yield from interpret_distro_name(
|
| 124 |
+
url, match.group(1), metadata, precedence=CHECKOUT_DIST
|
| 125 |
+
)
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def distros_for_location(location, basename, metadata=None):
|
| 129 |
+
"""Yield egg or source distribution objects based on basename"""
|
| 130 |
+
if basename.endswith('.egg.zip'):
|
| 131 |
+
basename = basename[:-4] # strip the .zip
|
| 132 |
+
if basename.endswith('.egg') and '-' in basename:
|
| 133 |
+
# only one, unambiguous interpretation
|
| 134 |
+
return [Distribution.from_location(location, basename, metadata)]
|
| 135 |
+
if basename.endswith('.whl') and '-' in basename:
|
| 136 |
+
wheel = Wheel(basename)
|
| 137 |
+
if not wheel.is_compatible():
|
| 138 |
+
return []
|
| 139 |
+
return [
|
| 140 |
+
Distribution(
|
| 141 |
+
location=location,
|
| 142 |
+
project_name=wheel.project_name,
|
| 143 |
+
version=wheel.version,
|
| 144 |
+
# Increase priority over eggs.
|
| 145 |
+
precedence=EGG_DIST + 1,
|
| 146 |
+
)
|
| 147 |
+
]
|
| 148 |
+
if basename.endswith('.exe'):
|
| 149 |
+
win_base, py_ver, platform = parse_bdist_wininst(basename)
|
| 150 |
+
if win_base is not None:
|
| 151 |
+
return interpret_distro_name(
|
| 152 |
+
location, win_base, metadata, py_ver, BINARY_DIST, platform
|
| 153 |
+
)
|
| 154 |
+
# Try source distro extensions (.zip, .tgz, etc.)
|
| 155 |
+
#
|
| 156 |
+
for ext in EXTENSIONS:
|
| 157 |
+
if basename.endswith(ext):
|
| 158 |
+
basename = basename[: -len(ext)]
|
| 159 |
+
return interpret_distro_name(location, basename, metadata)
|
| 160 |
+
return [] # no extension matched
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
def distros_for_filename(filename, metadata=None):
|
| 164 |
+
"""Yield possible egg or source distribution objects based on a filename"""
|
| 165 |
+
return distros_for_location(
|
| 166 |
+
normalize_path(filename), os.path.basename(filename), metadata
|
| 167 |
+
)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def interpret_distro_name(
|
| 171 |
+
location, basename, metadata, py_version=None, precedence=SOURCE_DIST, platform=None
|
| 172 |
+
):
|
| 173 |
+
"""Generate the interpretation of a source distro name
|
| 174 |
+
|
| 175 |
+
Note: if `location` is a filesystem filename, you should call
|
| 176 |
+
``pkg_resources.normalize_path()`` on it before passing it to this
|
| 177 |
+
routine!
|
| 178 |
+
"""
|
| 179 |
+
|
| 180 |
+
parts = basename.split('-')
|
| 181 |
+
if not py_version and any(re.match(r'py\d\.\d$', p) for p in parts[2:]):
|
| 182 |
+
# it is a bdist_dumb, not an sdist -- bail out
|
| 183 |
+
return
|
| 184 |
+
|
| 185 |
+
# find the pivot (p) that splits the name from the version.
|
| 186 |
+
# infer the version as the first item that has a digit.
|
| 187 |
+
for p in range(len(parts)):
|
| 188 |
+
if parts[p][:1].isdigit():
|
| 189 |
+
break
|
| 190 |
+
else:
|
| 191 |
+
p = len(parts)
|
| 192 |
+
|
| 193 |
+
yield Distribution(
|
| 194 |
+
location,
|
| 195 |
+
metadata,
|
| 196 |
+
'-'.join(parts[:p]),
|
| 197 |
+
'-'.join(parts[p:]),
|
| 198 |
+
py_version=py_version,
|
| 199 |
+
precedence=precedence,
|
| 200 |
+
platform=platform,
|
| 201 |
+
)
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
def unique_values(func):
|
| 205 |
+
"""
|
| 206 |
+
Wrap a function returning an iterable such that the resulting iterable
|
| 207 |
+
only ever yields unique items.
|
| 208 |
+
"""
|
| 209 |
+
|
| 210 |
+
@wraps(func)
|
| 211 |
+
def wrapper(*args, **kwargs):
|
| 212 |
+
return unique_everseen(func(*args, **kwargs))
|
| 213 |
+
|
| 214 |
+
return wrapper
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
REL = re.compile(r"""<([^>]*\srel\s{0,10}=\s{0,10}['"]?([^'" >]+)[^>]*)>""", re.I)
|
| 218 |
+
"""
|
| 219 |
+
Regex for an HTML tag with 'rel="val"' attributes.
|
| 220 |
+
"""
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
@unique_values
|
| 224 |
+
def find_external_links(url, page):
|
| 225 |
+
"""Find rel="homepage" and rel="download" links in `page`, yielding URLs"""
|
| 226 |
+
|
| 227 |
+
for match in REL.finditer(page):
|
| 228 |
+
tag, rel = match.groups()
|
| 229 |
+
rels = set(map(str.strip, rel.lower().split(',')))
|
| 230 |
+
if 'homepage' in rels or 'download' in rels:
|
| 231 |
+
for match in HREF.finditer(tag):
|
| 232 |
+
yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
|
| 233 |
+
|
| 234 |
+
for tag in ("<th>Home Page", "<th>Download URL"):
|
| 235 |
+
pos = page.find(tag)
|
| 236 |
+
if pos != -1:
|
| 237 |
+
match = HREF.search(page, pos)
|
| 238 |
+
if match:
|
| 239 |
+
yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
class ContentChecker:
|
| 243 |
+
"""
|
| 244 |
+
A null content checker that defines the interface for checking content
|
| 245 |
+
"""
|
| 246 |
+
|
| 247 |
+
def feed(self, block):
|
| 248 |
+
"""
|
| 249 |
+
Feed a block of data to the hash.
|
| 250 |
+
"""
|
| 251 |
+
return
|
| 252 |
+
|
| 253 |
+
def is_valid(self):
|
| 254 |
+
"""
|
| 255 |
+
Check the hash. Return False if validation fails.
|
| 256 |
+
"""
|
| 257 |
+
return True
|
| 258 |
+
|
| 259 |
+
def report(self, reporter, template):
|
| 260 |
+
"""
|
| 261 |
+
Call reporter with information about the checker (hash name)
|
| 262 |
+
substituted into the template.
|
| 263 |
+
"""
|
| 264 |
+
return
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
class HashChecker(ContentChecker):
|
| 268 |
+
pattern = re.compile(
|
| 269 |
+
r'(?P<hash_name>sha1|sha224|sha384|sha256|sha512|md5)='
|
| 270 |
+
r'(?P<expected>[a-f0-9]+)'
|
| 271 |
+
)
|
| 272 |
+
|
| 273 |
+
def __init__(self, hash_name, expected) -> None:
|
| 274 |
+
self.hash_name = hash_name
|
| 275 |
+
self.hash = hashlib.new(hash_name)
|
| 276 |
+
self.expected = expected
|
| 277 |
+
|
| 278 |
+
@classmethod
|
| 279 |
+
def from_url(cls, url):
|
| 280 |
+
"Construct a (possibly null) ContentChecker from a URL"
|
| 281 |
+
fragment = urllib.parse.urlparse(url)[-1]
|
| 282 |
+
if not fragment:
|
| 283 |
+
return ContentChecker()
|
| 284 |
+
match = cls.pattern.search(fragment)
|
| 285 |
+
if not match:
|
| 286 |
+
return ContentChecker()
|
| 287 |
+
return cls(**match.groupdict())
|
| 288 |
+
|
| 289 |
+
def feed(self, block):
|
| 290 |
+
self.hash.update(block)
|
| 291 |
+
|
| 292 |
+
def is_valid(self):
|
| 293 |
+
return self.hash.hexdigest() == self.expected
|
| 294 |
+
|
| 295 |
+
def report(self, reporter, template):
|
| 296 |
+
msg = template % self.hash_name
|
| 297 |
+
return reporter(msg)
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
class PackageIndex(Environment):
|
| 301 |
+
"""A distribution index that scans web pages for download URLs"""
|
| 302 |
+
|
| 303 |
+
def __init__(
|
| 304 |
+
self,
|
| 305 |
+
index_url: str = "https://pypi.org/simple/",
|
| 306 |
+
hosts=('*',),
|
| 307 |
+
ca_bundle=None,
|
| 308 |
+
verify_ssl: bool = True,
|
| 309 |
+
*args,
|
| 310 |
+
**kw,
|
| 311 |
+
) -> None:
|
| 312 |
+
super().__init__(*args, **kw)
|
| 313 |
+
self.index_url = index_url + "/"[: not index_url.endswith('/')]
|
| 314 |
+
self.scanned_urls: dict = {}
|
| 315 |
+
self.fetched_urls: dict = {}
|
| 316 |
+
self.package_pages: dict = {}
|
| 317 |
+
self.allows = re.compile('|'.join(map(translate, hosts))).match
|
| 318 |
+
self.to_scan: list = []
|
| 319 |
+
self.opener = urllib.request.urlopen
|
| 320 |
+
|
| 321 |
+
def add(self, dist):
|
| 322 |
+
# ignore invalid versions
|
| 323 |
+
try:
|
| 324 |
+
parse_version(dist.version)
|
| 325 |
+
except Exception:
|
| 326 |
+
return None
|
| 327 |
+
return super().add(dist)
|
| 328 |
+
|
| 329 |
+
# FIXME: 'PackageIndex.process_url' is too complex (14)
|
| 330 |
+
def process_url(self, url, retrieve: bool = False) -> None: # noqa: C901
|
| 331 |
+
"""Evaluate a URL as a possible download, and maybe retrieve it"""
|
| 332 |
+
if os.getenv("CONDA_BUILD"):
|
| 333 |
+
raise RuntimeError("Setuptools downloading is disabled in conda build. "
|
| 334 |
+
"Be sure to add all dependencies in the meta.yaml url=%s" % url)
|
| 335 |
+
|
| 336 |
+
if url in self.scanned_urls and not retrieve:
|
| 337 |
+
return
|
| 338 |
+
self.scanned_urls[url] = True
|
| 339 |
+
if not URL_SCHEME(url):
|
| 340 |
+
self.process_filename(url)
|
| 341 |
+
return
|
| 342 |
+
else:
|
| 343 |
+
dists = list(distros_for_url(url))
|
| 344 |
+
if dists:
|
| 345 |
+
if not self.url_ok(url):
|
| 346 |
+
return
|
| 347 |
+
self.debug("Found link: %s", url)
|
| 348 |
+
|
| 349 |
+
if dists or not retrieve or url in self.fetched_urls:
|
| 350 |
+
list(map(self.add, dists))
|
| 351 |
+
return # don't need the actual page
|
| 352 |
+
|
| 353 |
+
if not self.url_ok(url):
|
| 354 |
+
self.fetched_urls[url] = True
|
| 355 |
+
return
|
| 356 |
+
|
| 357 |
+
self.info("Reading %s", url)
|
| 358 |
+
self.fetched_urls[url] = True # prevent multiple fetch attempts
|
| 359 |
+
tmpl = "Download error on %s: %%s -- Some packages may not be found!"
|
| 360 |
+
f = self.open_url(url, tmpl % url)
|
| 361 |
+
if f is None:
|
| 362 |
+
return
|
| 363 |
+
if isinstance(f, urllib.error.HTTPError) and f.code == 401:
|
| 364 |
+
self.info(f"Authentication error: {f.msg}")
|
| 365 |
+
self.fetched_urls[f.url] = True
|
| 366 |
+
if 'html' not in f.headers.get('content-type', '').lower():
|
| 367 |
+
f.close() # not html, we can't process it
|
| 368 |
+
return
|
| 369 |
+
|
| 370 |
+
base = f.url # handle redirects
|
| 371 |
+
page = f.read()
|
| 372 |
+
if not isinstance(page, str):
|
| 373 |
+
# In Python 3 and got bytes but want str.
|
| 374 |
+
if isinstance(f, urllib.error.HTTPError):
|
| 375 |
+
# Errors have no charset, assume latin1:
|
| 376 |
+
charset = 'latin-1'
|
| 377 |
+
else:
|
| 378 |
+
charset = f.headers.get_param('charset') or 'latin-1'
|
| 379 |
+
page = page.decode(charset, "ignore")
|
| 380 |
+
f.close()
|
| 381 |
+
for match in HREF.finditer(page):
|
| 382 |
+
link = urllib.parse.urljoin(base, htmldecode(match.group(1)))
|
| 383 |
+
self.process_url(link)
|
| 384 |
+
if url.startswith(self.index_url) and getattr(f, 'code', None) != 404:
|
| 385 |
+
page = self.process_index(url, page)
|
| 386 |
+
|
| 387 |
+
def process_filename(self, fn, nested: bool = False) -> None:
|
| 388 |
+
# process filenames or directories
|
| 389 |
+
if not os.path.exists(fn):
|
| 390 |
+
self.warn("Not found: %s", fn)
|
| 391 |
+
return
|
| 392 |
+
|
| 393 |
+
if os.path.isdir(fn) and not nested:
|
| 394 |
+
path = os.path.realpath(fn)
|
| 395 |
+
for item in os.listdir(path):
|
| 396 |
+
self.process_filename(os.path.join(path, item), True)
|
| 397 |
+
|
| 398 |
+
dists = distros_for_filename(fn)
|
| 399 |
+
if dists:
|
| 400 |
+
self.debug("Found: %s", fn)
|
| 401 |
+
list(map(self.add, dists))
|
| 402 |
+
|
| 403 |
+
def url_ok(self, url, fatal: bool = False) -> bool:
|
| 404 |
+
s = URL_SCHEME(url)
|
| 405 |
+
is_file = s and s.group(1).lower() == 'file'
|
| 406 |
+
if is_file or self.allows(urllib.parse.urlparse(url)[1]):
|
| 407 |
+
return True
|
| 408 |
+
msg = (
|
| 409 |
+
"\nNote: Bypassing %s (disallowed host; see "
|
| 410 |
+
"https://setuptools.pypa.io/en/latest/deprecated/"
|
| 411 |
+
"easy_install.html#restricting-downloads-with-allow-hosts for details).\n"
|
| 412 |
+
)
|
| 413 |
+
if fatal:
|
| 414 |
+
raise DistutilsError(msg % url)
|
| 415 |
+
else:
|
| 416 |
+
self.warn(msg, url)
|
| 417 |
+
return False
|
| 418 |
+
|
| 419 |
+
def scan_egg_links(self, search_path) -> None:
|
| 420 |
+
dirs = filter(os.path.isdir, search_path)
|
| 421 |
+
egg_links = (
|
| 422 |
+
(path, entry)
|
| 423 |
+
for path in dirs
|
| 424 |
+
for entry in os.listdir(path)
|
| 425 |
+
if entry.endswith('.egg-link')
|
| 426 |
+
)
|
| 427 |
+
list(itertools.starmap(self.scan_egg_link, egg_links))
|
| 428 |
+
|
| 429 |
+
def scan_egg_link(self, path, entry) -> None:
|
| 430 |
+
content = _read_utf8_with_fallback(os.path.join(path, entry))
|
| 431 |
+
# filter non-empty lines
|
| 432 |
+
lines = list(filter(None, map(str.strip, content.splitlines())))
|
| 433 |
+
|
| 434 |
+
if len(lines) != 2:
|
| 435 |
+
# format is not recognized; punt
|
| 436 |
+
return
|
| 437 |
+
|
| 438 |
+
egg_path, _setup_path = lines
|
| 439 |
+
|
| 440 |
+
for dist in find_distributions(os.path.join(path, egg_path)):
|
| 441 |
+
dist.location = os.path.join(path, *lines)
|
| 442 |
+
dist.precedence = SOURCE_DIST
|
| 443 |
+
self.add(dist)
|
| 444 |
+
|
| 445 |
+
def _scan(self, link):
|
| 446 |
+
# Process a URL to see if it's for a package page
|
| 447 |
+
NO_MATCH_SENTINEL = None, None
|
| 448 |
+
if not link.startswith(self.index_url):
|
| 449 |
+
return NO_MATCH_SENTINEL
|
| 450 |
+
|
| 451 |
+
parts = list(map(urllib.parse.unquote, link[len(self.index_url) :].split('/')))
|
| 452 |
+
if len(parts) != 2 or '#' in parts[1]:
|
| 453 |
+
return NO_MATCH_SENTINEL
|
| 454 |
+
|
| 455 |
+
# it's a package page, sanitize and index it
|
| 456 |
+
pkg = safe_name(parts[0])
|
| 457 |
+
ver = safe_version(parts[1])
|
| 458 |
+
self.package_pages.setdefault(pkg.lower(), {})[link] = True
|
| 459 |
+
return to_filename(pkg), to_filename(ver)
|
| 460 |
+
|
| 461 |
+
def process_index(self, url, page):
|
| 462 |
+
"""Process the contents of a PyPI page"""
|
| 463 |
+
|
| 464 |
+
# process an index page into the package-page index
|
| 465 |
+
for match in HREF.finditer(page):
|
| 466 |
+
try:
|
| 467 |
+
self._scan(urllib.parse.urljoin(url, htmldecode(match.group(1))))
|
| 468 |
+
except ValueError:
|
| 469 |
+
pass
|
| 470 |
+
|
| 471 |
+
pkg, ver = self._scan(url) # ensure this page is in the page index
|
| 472 |
+
if not pkg:
|
| 473 |
+
return "" # no sense double-scanning non-package pages
|
| 474 |
+
|
| 475 |
+
# process individual package page
|
| 476 |
+
for new_url in find_external_links(url, page):
|
| 477 |
+
# Process the found URL
|
| 478 |
+
base, frag = egg_info_for_url(new_url)
|
| 479 |
+
if base.endswith('.py') and not frag:
|
| 480 |
+
if ver:
|
| 481 |
+
new_url += f'#egg={pkg}-{ver}'
|
| 482 |
+
else:
|
| 483 |
+
self.need_version_info(url)
|
| 484 |
+
self.scan_url(new_url)
|
| 485 |
+
|
| 486 |
+
return PYPI_MD5.sub(
|
| 487 |
+
lambda m: '<a href="{}#md5={}">{}</a>'.format(*m.group(1, 3, 2)), page
|
| 488 |
+
)
|
| 489 |
+
|
| 490 |
+
def need_version_info(self, url) -> None:
|
| 491 |
+
self.scan_all(
|
| 492 |
+
"Page at %s links to .py file(s) without version info; an index "
|
| 493 |
+
"scan is required.",
|
| 494 |
+
url,
|
| 495 |
+
)
|
| 496 |
+
|
| 497 |
+
def scan_all(self, msg=None, *args) -> None:
|
| 498 |
+
if self.index_url not in self.fetched_urls:
|
| 499 |
+
if msg:
|
| 500 |
+
self.warn(msg, *args)
|
| 501 |
+
self.info("Scanning index of all packages (this may take a while)")
|
| 502 |
+
self.scan_url(self.index_url)
|
| 503 |
+
|
| 504 |
+
def find_packages(self, requirement) -> None:
|
| 505 |
+
self.scan_url(self.index_url + requirement.unsafe_name + '/')
|
| 506 |
+
|
| 507 |
+
if not self.package_pages.get(requirement.key):
|
| 508 |
+
# Fall back to safe version of the name
|
| 509 |
+
self.scan_url(self.index_url + requirement.project_name + '/')
|
| 510 |
+
|
| 511 |
+
if not self.package_pages.get(requirement.key):
|
| 512 |
+
# We couldn't find the target package, so search the index page too
|
| 513 |
+
self.not_found_in_index(requirement)
|
| 514 |
+
|
| 515 |
+
for url in list(self.package_pages.get(requirement.key, ())):
|
| 516 |
+
# scan each page that might be related to the desired package
|
| 517 |
+
self.scan_url(url)
|
| 518 |
+
|
| 519 |
+
def obtain(self, requirement, installer=None):
|
| 520 |
+
self.prescan()
|
| 521 |
+
self.find_packages(requirement)
|
| 522 |
+
for dist in self[requirement.key]:
|
| 523 |
+
if dist in requirement:
|
| 524 |
+
return dist
|
| 525 |
+
self.debug("%s does not match %s", requirement, dist)
|
| 526 |
+
return super().obtain(requirement, installer)
|
| 527 |
+
|
| 528 |
+
def check_hash(self, checker, filename, tfp) -> None:
|
| 529 |
+
"""
|
| 530 |
+
checker is a ContentChecker
|
| 531 |
+
"""
|
| 532 |
+
checker.report(self.debug, f"Validating %s checksum for {filename}")
|
| 533 |
+
if not checker.is_valid():
|
| 534 |
+
tfp.close()
|
| 535 |
+
os.unlink(filename)
|
| 536 |
+
raise DistutilsError(
|
| 537 |
+
f"{checker.hash.name} validation failed for {os.path.basename(filename)}; "
|
| 538 |
+
"possible download problem?"
|
| 539 |
+
)
|
| 540 |
+
|
| 541 |
+
def add_find_links(self, urls) -> None:
|
| 542 |
+
"""Add `urls` to the list that will be prescanned for searches"""
|
| 543 |
+
for url in urls:
|
| 544 |
+
if (
|
| 545 |
+
self.to_scan is None # if we have already "gone online"
|
| 546 |
+
or not URL_SCHEME(url) # or it's a local file/directory
|
| 547 |
+
or url.startswith('file:')
|
| 548 |
+
or list(distros_for_url(url)) # or a direct package link
|
| 549 |
+
):
|
| 550 |
+
# then go ahead and process it now
|
| 551 |
+
self.scan_url(url)
|
| 552 |
+
else:
|
| 553 |
+
# otherwise, defer retrieval till later
|
| 554 |
+
self.to_scan.append(url)
|
| 555 |
+
|
| 556 |
+
def prescan(self):
|
| 557 |
+
"""Scan urls scheduled for prescanning (e.g. --find-links)"""
|
| 558 |
+
if self.to_scan:
|
| 559 |
+
list(map(self.scan_url, self.to_scan))
|
| 560 |
+
self.to_scan = None # from now on, go ahead and process immediately
|
| 561 |
+
|
| 562 |
+
def not_found_in_index(self, requirement) -> None:
|
| 563 |
+
if self[requirement.key]: # we've seen at least one distro
|
| 564 |
+
meth, msg = self.info, "Couldn't retrieve index page for %r"
|
| 565 |
+
else: # no distros seen for this name, might be misspelled
|
| 566 |
+
meth, msg = self.warn, "Couldn't find index page for %r (maybe misspelled?)"
|
| 567 |
+
meth(msg, requirement.unsafe_name)
|
| 568 |
+
self.scan_all()
|
| 569 |
+
|
| 570 |
+
def download(self, spec, tmpdir):
|
| 571 |
+
"""Locate and/or download `spec` to `tmpdir`, returning a local path
|
| 572 |
+
|
| 573 |
+
`spec` may be a ``Requirement`` object, or a string containing a URL,
|
| 574 |
+
an existing local filename, or a project/version requirement spec
|
| 575 |
+
(i.e. the string form of a ``Requirement`` object). If it is the URL
|
| 576 |
+
of a .py file with an unambiguous ``#egg=name-version`` tag (i.e., one
|
| 577 |
+
that escapes ``-`` as ``_`` throughout), a trivial ``setup.py`` is
|
| 578 |
+
automatically created alongside the downloaded file.
|
| 579 |
+
|
| 580 |
+
If `spec` is a ``Requirement`` object or a string containing a
|
| 581 |
+
project/version requirement spec, this method returns the location of
|
| 582 |
+
a matching distribution (possibly after downloading it to `tmpdir`).
|
| 583 |
+
If `spec` is a locally existing file or directory name, it is simply
|
| 584 |
+
returned unchanged. If `spec` is a URL, it is downloaded to a subpath
|
| 585 |
+
of `tmpdir`, and the local filename is returned. Various errors may be
|
| 586 |
+
raised if a problem occurs during downloading.
|
| 587 |
+
"""
|
| 588 |
+
if not isinstance(spec, Requirement):
|
| 589 |
+
scheme = URL_SCHEME(spec)
|
| 590 |
+
if scheme:
|
| 591 |
+
# It's a url, download it to tmpdir
|
| 592 |
+
found = self._download_url(spec, tmpdir)
|
| 593 |
+
base, fragment = egg_info_for_url(spec)
|
| 594 |
+
if base.endswith('.py'):
|
| 595 |
+
found = self.gen_setup(found, fragment, tmpdir)
|
| 596 |
+
return found
|
| 597 |
+
elif os.path.exists(spec):
|
| 598 |
+
# Existing file or directory, just return it
|
| 599 |
+
return spec
|
| 600 |
+
else:
|
| 601 |
+
spec = parse_requirement_arg(spec)
|
| 602 |
+
return getattr(self.fetch_distribution(spec, tmpdir), 'location', None)
|
| 603 |
+
|
| 604 |
+
def fetch_distribution( # noqa: C901 # is too complex (14) # FIXME
|
| 605 |
+
self,
|
| 606 |
+
requirement,
|
| 607 |
+
tmpdir,
|
| 608 |
+
force_scan: bool = False,
|
| 609 |
+
source: bool = False,
|
| 610 |
+
develop_ok: bool = False,
|
| 611 |
+
local_index=None,
|
| 612 |
+
) -> Distribution | None:
|
| 613 |
+
"""Obtain a distribution suitable for fulfilling `requirement`
|
| 614 |
+
|
| 615 |
+
`requirement` must be a ``pkg_resources.Requirement`` instance.
|
| 616 |
+
If necessary, or if the `force_scan` flag is set, the requirement is
|
| 617 |
+
searched for in the (online) package index as well as the locally
|
| 618 |
+
installed packages. If a distribution matching `requirement` is found,
|
| 619 |
+
the returned distribution's ``location`` is the value you would have
|
| 620 |
+
gotten from calling the ``download()`` method with the matching
|
| 621 |
+
distribution's URL or filename. If no matching distribution is found,
|
| 622 |
+
``None`` is returned.
|
| 623 |
+
|
| 624 |
+
If the `source` flag is set, only source distributions and source
|
| 625 |
+
checkout links will be considered. Unless the `develop_ok` flag is
|
| 626 |
+
set, development and system eggs (i.e., those using the ``.egg-info``
|
| 627 |
+
format) will be ignored.
|
| 628 |
+
"""
|
| 629 |
+
# process a Requirement
|
| 630 |
+
self.info("Searching for %s", requirement)
|
| 631 |
+
skipped = set()
|
| 632 |
+
dist = None
|
| 633 |
+
|
| 634 |
+
def find(req, env: Environment | None = None):
|
| 635 |
+
if env is None:
|
| 636 |
+
env = self
|
| 637 |
+
# Find a matching distribution; may be called more than once
|
| 638 |
+
|
| 639 |
+
for dist in env[req.key]:
|
| 640 |
+
if dist.precedence == DEVELOP_DIST and not develop_ok:
|
| 641 |
+
if dist not in skipped:
|
| 642 |
+
self.warn(
|
| 643 |
+
"Skipping development or system egg: %s",
|
| 644 |
+
dist,
|
| 645 |
+
)
|
| 646 |
+
skipped.add(dist)
|
| 647 |
+
continue
|
| 648 |
+
|
| 649 |
+
test = dist in req and (dist.precedence <= SOURCE_DIST or not source)
|
| 650 |
+
if test:
|
| 651 |
+
loc = self.download(dist.location, tmpdir)
|
| 652 |
+
dist.download_location = loc
|
| 653 |
+
if os.path.exists(dist.download_location):
|
| 654 |
+
return dist
|
| 655 |
+
|
| 656 |
+
return None
|
| 657 |
+
|
| 658 |
+
if force_scan:
|
| 659 |
+
self.prescan()
|
| 660 |
+
self.find_packages(requirement)
|
| 661 |
+
dist = find(requirement)
|
| 662 |
+
|
| 663 |
+
if not dist and local_index is not None:
|
| 664 |
+
dist = find(requirement, local_index)
|
| 665 |
+
|
| 666 |
+
if dist is None:
|
| 667 |
+
if self.to_scan is not None:
|
| 668 |
+
self.prescan()
|
| 669 |
+
dist = find(requirement)
|
| 670 |
+
|
| 671 |
+
if dist is None and not force_scan:
|
| 672 |
+
self.find_packages(requirement)
|
| 673 |
+
dist = find(requirement)
|
| 674 |
+
|
| 675 |
+
if dist is None:
|
| 676 |
+
self.warn(
|
| 677 |
+
"No local packages or working download links found for %s%s",
|
| 678 |
+
(source and "a source distribution of " or ""),
|
| 679 |
+
requirement,
|
| 680 |
+
)
|
| 681 |
+
return None
|
| 682 |
+
else:
|
| 683 |
+
self.info("Best match: %s", dist)
|
| 684 |
+
return dist.clone(location=dist.download_location)
|
| 685 |
+
|
| 686 |
+
def fetch(
|
| 687 |
+
self, requirement, tmpdir, force_scan: bool = False, source: bool = False
|
| 688 |
+
) -> str | None:
|
| 689 |
+
"""Obtain a file suitable for fulfilling `requirement`
|
| 690 |
+
|
| 691 |
+
DEPRECATED; use the ``fetch_distribution()`` method now instead. For
|
| 692 |
+
backward compatibility, this routine is identical but returns the
|
| 693 |
+
``location`` of the downloaded distribution instead of a distribution
|
| 694 |
+
object.
|
| 695 |
+
"""
|
| 696 |
+
dist = self.fetch_distribution(requirement, tmpdir, force_scan, source)
|
| 697 |
+
if dist is not None:
|
| 698 |
+
return dist.location
|
| 699 |
+
return None
|
| 700 |
+
|
| 701 |
+
def gen_setup(self, filename, fragment, tmpdir):
|
| 702 |
+
match = EGG_FRAGMENT.match(fragment)
|
| 703 |
+
dists = (
|
| 704 |
+
match
|
| 705 |
+
and [
|
| 706 |
+
d
|
| 707 |
+
for d in interpret_distro_name(filename, match.group(1), None)
|
| 708 |
+
if d.version
|
| 709 |
+
]
|
| 710 |
+
or []
|
| 711 |
+
)
|
| 712 |
+
|
| 713 |
+
if len(dists) == 1: # unambiguous ``#egg`` fragment
|
| 714 |
+
basename = os.path.basename(filename)
|
| 715 |
+
|
| 716 |
+
# Make sure the file has been downloaded to the temp dir.
|
| 717 |
+
if os.path.dirname(filename) != tmpdir:
|
| 718 |
+
dst = os.path.join(tmpdir, basename)
|
| 719 |
+
if not (os.path.exists(dst) and os.path.samefile(filename, dst)):
|
| 720 |
+
shutil.copy2(filename, dst)
|
| 721 |
+
filename = dst
|
| 722 |
+
|
| 723 |
+
with open(os.path.join(tmpdir, 'setup.py'), 'w', encoding="utf-8") as file:
|
| 724 |
+
file.write(
|
| 725 |
+
"from setuptools import setup\n"
|
| 726 |
+
f"setup(name={dists[0].project_name!r}, version={dists[0].version!r}, py_modules=[{os.path.splitext(basename)[0]!r}])\n"
|
| 727 |
+
)
|
| 728 |
+
return filename
|
| 729 |
+
|
| 730 |
+
elif match:
|
| 731 |
+
raise DistutilsError(
|
| 732 |
+
f"Can't unambiguously interpret project/version identifier {fragment!r}; "
|
| 733 |
+
"any dashes in the name or version should be escaped using "
|
| 734 |
+
f"underscores. {dists!r}"
|
| 735 |
+
)
|
| 736 |
+
else:
|
| 737 |
+
raise DistutilsError(
|
| 738 |
+
"Can't process plain .py files without an '#egg=name-version'"
|
| 739 |
+
" suffix to enable automatic setup script generation."
|
| 740 |
+
)
|
| 741 |
+
|
| 742 |
+
dl_blocksize = 8192
|
| 743 |
+
|
| 744 |
+
def _download_to(self, url, filename):
|
| 745 |
+
self.info("Downloading %s", url)
|
| 746 |
+
# Download the file
|
| 747 |
+
fp = None
|
| 748 |
+
try:
|
| 749 |
+
checker = HashChecker.from_url(url)
|
| 750 |
+
fp = self.open_url(url)
|
| 751 |
+
if isinstance(fp, urllib.error.HTTPError):
|
| 752 |
+
raise DistutilsError(f"Can't download {url}: {fp.code} {fp.msg}")
|
| 753 |
+
headers = fp.info()
|
| 754 |
+
blocknum = 0
|
| 755 |
+
bs = self.dl_blocksize
|
| 756 |
+
size = -1
|
| 757 |
+
if "content-length" in headers:
|
| 758 |
+
# Some servers return multiple Content-Length headers :(
|
| 759 |
+
sizes = headers.get_all('Content-Length')
|
| 760 |
+
size = max(map(int, sizes))
|
| 761 |
+
self.reporthook(url, filename, blocknum, bs, size)
|
| 762 |
+
with open(filename, 'wb') as tfp:
|
| 763 |
+
while True:
|
| 764 |
+
block = fp.read(bs)
|
| 765 |
+
if block:
|
| 766 |
+
checker.feed(block)
|
| 767 |
+
tfp.write(block)
|
| 768 |
+
blocknum += 1
|
| 769 |
+
self.reporthook(url, filename, blocknum, bs, size)
|
| 770 |
+
else:
|
| 771 |
+
break
|
| 772 |
+
self.check_hash(checker, filename, tfp)
|
| 773 |
+
return headers
|
| 774 |
+
finally:
|
| 775 |
+
if fp:
|
| 776 |
+
fp.close()
|
| 777 |
+
|
| 778 |
+
def reporthook(self, url, filename, blocknum, blksize, size) -> None:
|
| 779 |
+
pass # no-op
|
| 780 |
+
|
| 781 |
+
# FIXME:
|
| 782 |
+
def open_url(self, url, warning=None): # noqa: C901 # is too complex (12)
|
| 783 |
+
if url.startswith('file:'):
|
| 784 |
+
return local_open(url)
|
| 785 |
+
try:
|
| 786 |
+
return open_with_auth(url, self.opener)
|
| 787 |
+
except (ValueError, http.client.InvalidURL) as v:
|
| 788 |
+
msg = ' '.join([str(arg) for arg in v.args])
|
| 789 |
+
if warning:
|
| 790 |
+
self.warn(warning, msg)
|
| 791 |
+
else:
|
| 792 |
+
raise DistutilsError(f'{url} {msg}') from v
|
| 793 |
+
except urllib.error.HTTPError as v:
|
| 794 |
+
return v
|
| 795 |
+
except urllib.error.URLError as v:
|
| 796 |
+
if warning:
|
| 797 |
+
self.warn(warning, v.reason)
|
| 798 |
+
else:
|
| 799 |
+
raise DistutilsError(f"Download error for {url}: {v.reason}") from v
|
| 800 |
+
except http.client.BadStatusLine as v:
|
| 801 |
+
if warning:
|
| 802 |
+
self.warn(warning, v.line)
|
| 803 |
+
else:
|
| 804 |
+
raise DistutilsError(
|
| 805 |
+
f'{url} returned a bad status line. The server might be '
|
| 806 |
+
f'down, {v.line}'
|
| 807 |
+
) from v
|
| 808 |
+
except (http.client.HTTPException, OSError) as v:
|
| 809 |
+
if warning:
|
| 810 |
+
self.warn(warning, v)
|
| 811 |
+
else:
|
| 812 |
+
raise DistutilsError(f"Download error for {url}: {v}") from v
|
| 813 |
+
|
| 814 |
+
def _download_url(self, url, tmpdir):
|
| 815 |
+
# Determine download filename
|
| 816 |
+
#
|
| 817 |
+
name, _fragment = egg_info_for_url(url)
|
| 818 |
+
if name:
|
| 819 |
+
while '..' in name:
|
| 820 |
+
name = name.replace('..', '.').replace('\\', '_')
|
| 821 |
+
else:
|
| 822 |
+
name = "__downloaded__" # default if URL has no path contents
|
| 823 |
+
|
| 824 |
+
if name.endswith('.egg.zip'):
|
| 825 |
+
name = name[:-4] # strip the extra .zip before download
|
| 826 |
+
|
| 827 |
+
filename = os.path.join(tmpdir, name)
|
| 828 |
+
|
| 829 |
+
return self._download_vcs(url, filename) or self._download_other(url, filename)
|
| 830 |
+
|
| 831 |
+
@staticmethod
|
| 832 |
+
def _resolve_vcs(url):
|
| 833 |
+
"""
|
| 834 |
+
>>> rvcs = PackageIndex._resolve_vcs
|
| 835 |
+
>>> rvcs('git+http://foo/bar')
|
| 836 |
+
'git'
|
| 837 |
+
>>> rvcs('hg+https://foo/bar')
|
| 838 |
+
'hg'
|
| 839 |
+
>>> rvcs('git:myhost')
|
| 840 |
+
'git'
|
| 841 |
+
>>> rvcs('hg:myhost')
|
| 842 |
+
>>> rvcs('http://foo/bar')
|
| 843 |
+
"""
|
| 844 |
+
scheme = urllib.parse.urlsplit(url).scheme
|
| 845 |
+
pre, sep, _post = scheme.partition('+')
|
| 846 |
+
# svn and git have their own protocol; hg does not
|
| 847 |
+
allowed = set(['svn', 'git'] + ['hg'] * bool(sep))
|
| 848 |
+
return next(iter({pre} & allowed), None)
|
| 849 |
+
|
| 850 |
+
def _download_vcs(self, url, spec_filename):
|
| 851 |
+
vcs = self._resolve_vcs(url)
|
| 852 |
+
if not vcs:
|
| 853 |
+
return None
|
| 854 |
+
if vcs == 'svn':
|
| 855 |
+
raise DistutilsError(
|
| 856 |
+
f"Invalid config, SVN download is not supported: {url}"
|
| 857 |
+
)
|
| 858 |
+
|
| 859 |
+
filename, _, _ = spec_filename.partition('#')
|
| 860 |
+
url, rev = self._vcs_split_rev_from_url(url)
|
| 861 |
+
|
| 862 |
+
self.info(f"Doing {vcs} clone from {url} to {filename}")
|
| 863 |
+
subprocess.check_call([vcs, 'clone', '--quiet', url, filename])
|
| 864 |
+
|
| 865 |
+
co_commands = dict(
|
| 866 |
+
git=[vcs, '-C', filename, 'checkout', '--quiet', rev],
|
| 867 |
+
hg=[vcs, '--cwd', filename, 'up', '-C', '-r', rev, '-q'],
|
| 868 |
+
)
|
| 869 |
+
if rev is not None:
|
| 870 |
+
self.info(f"Checking out {rev}")
|
| 871 |
+
subprocess.check_call(co_commands[vcs])
|
| 872 |
+
|
| 873 |
+
return filename
|
| 874 |
+
|
| 875 |
+
def _download_other(self, url, filename):
|
| 876 |
+
scheme = urllib.parse.urlsplit(url).scheme
|
| 877 |
+
if scheme == 'file': # pragma: no cover
|
| 878 |
+
return urllib.request.url2pathname(urllib.parse.urlparse(url).path)
|
| 879 |
+
# raise error if not allowed
|
| 880 |
+
self.url_ok(url, True)
|
| 881 |
+
return self._attempt_download(url, filename)
|
| 882 |
+
|
| 883 |
+
def scan_url(self, url) -> None:
|
| 884 |
+
self.process_url(url, True)
|
| 885 |
+
|
| 886 |
+
def _attempt_download(self, url, filename):
|
| 887 |
+
headers = self._download_to(url, filename)
|
| 888 |
+
if 'html' in headers.get('content-type', '').lower():
|
| 889 |
+
return self._invalid_download_html(url, headers, filename)
|
| 890 |
+
else:
|
| 891 |
+
return filename
|
| 892 |
+
|
| 893 |
+
def _invalid_download_html(self, url, headers, filename):
|
| 894 |
+
os.unlink(filename)
|
| 895 |
+
raise DistutilsError(f"Unexpected HTML page found at {url}")
|
| 896 |
+
|
| 897 |
+
@staticmethod
|
| 898 |
+
def _vcs_split_rev_from_url(url):
|
| 899 |
+
"""
|
| 900 |
+
Given a possible VCS URL, return a clean URL and resolved revision if any.
|
| 901 |
+
|
| 902 |
+
>>> vsrfu = PackageIndex._vcs_split_rev_from_url
|
| 903 |
+
>>> vsrfu('git+https://github.com/pypa/setuptools@v69.0.0#egg-info=setuptools')
|
| 904 |
+
('https://github.com/pypa/setuptools', 'v69.0.0')
|
| 905 |
+
>>> vsrfu('git+https://github.com/pypa/setuptools#egg-info=setuptools')
|
| 906 |
+
('https://github.com/pypa/setuptools', None)
|
| 907 |
+
>>> vsrfu('http://foo/bar')
|
| 908 |
+
('http://foo/bar', None)
|
| 909 |
+
"""
|
| 910 |
+
parts = urllib.parse.urlsplit(url)
|
| 911 |
+
|
| 912 |
+
clean_scheme = parts.scheme.split('+', 1)[-1]
|
| 913 |
+
|
| 914 |
+
# Some fragment identification fails
|
| 915 |
+
no_fragment_path, _, _ = parts.path.partition('#')
|
| 916 |
+
|
| 917 |
+
pre, sep, post = no_fragment_path.rpartition('@')
|
| 918 |
+
clean_path, rev = (pre, post) if sep else (post, None)
|
| 919 |
+
|
| 920 |
+
resolved = parts._replace(
|
| 921 |
+
scheme=clean_scheme,
|
| 922 |
+
path=clean_path,
|
| 923 |
+
# discard the fragment
|
| 924 |
+
fragment='',
|
| 925 |
+
).geturl()
|
| 926 |
+
|
| 927 |
+
return resolved, rev
|
| 928 |
+
|
| 929 |
+
def debug(self, msg, *args) -> None:
|
| 930 |
+
log.debug(msg, *args)
|
| 931 |
+
|
| 932 |
+
def info(self, msg, *args) -> None:
|
| 933 |
+
log.info(msg, *args)
|
| 934 |
+
|
| 935 |
+
def warn(self, msg, *args) -> None:
|
| 936 |
+
log.warn(msg, *args)
|
| 937 |
+
|
| 938 |
+
|
| 939 |
+
# This pattern matches a character entity reference (a decimal numeric
|
| 940 |
+
# references, a hexadecimal numeric reference, or a named reference).
|
| 941 |
+
entity_sub = re.compile(r'&(#(\d+|x[\da-fA-F]+)|[\w.:-]+);?').sub
|
| 942 |
+
|
| 943 |
+
|
| 944 |
+
def decode_entity(match):
|
| 945 |
+
what = match.group(0)
|
| 946 |
+
return html.unescape(what)
|
| 947 |
+
|
| 948 |
+
|
| 949 |
+
def htmldecode(text):
|
| 950 |
+
"""
|
| 951 |
+
Decode HTML entities in the given text.
|
| 952 |
+
|
| 953 |
+
>>> htmldecode(
|
| 954 |
+
... 'https://../package_name-0.1.2.tar.gz'
|
| 955 |
+
... '?tokena=A&tokenb=B">package_name-0.1.2.tar.gz')
|
| 956 |
+
'https://../package_name-0.1.2.tar.gz?tokena=A&tokenb=B">package_name-0.1.2.tar.gz'
|
| 957 |
+
"""
|
| 958 |
+
return entity_sub(decode_entity, text)
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
def socket_timeout(timeout=15):
|
| 962 |
+
def _socket_timeout(func):
|
| 963 |
+
def _socket_timeout(*args, **kwargs):
|
| 964 |
+
old_timeout = socket.getdefaulttimeout()
|
| 965 |
+
socket.setdefaulttimeout(timeout)
|
| 966 |
+
try:
|
| 967 |
+
return func(*args, **kwargs)
|
| 968 |
+
finally:
|
| 969 |
+
socket.setdefaulttimeout(old_timeout)
|
| 970 |
+
|
| 971 |
+
return _socket_timeout
|
| 972 |
+
|
| 973 |
+
return _socket_timeout
|
| 974 |
+
|
| 975 |
+
|
| 976 |
+
def _encode_auth(auth):
|
| 977 |
+
"""
|
| 978 |
+
Encode auth from a URL suitable for an HTTP header.
|
| 979 |
+
>>> str(_encode_auth('username%3Apassword'))
|
| 980 |
+
'dXNlcm5hbWU6cGFzc3dvcmQ='
|
| 981 |
+
|
| 982 |
+
Long auth strings should not cause a newline to be inserted.
|
| 983 |
+
>>> long_auth = 'username:' + 'password'*10
|
| 984 |
+
>>> chr(10) in str(_encode_auth(long_auth))
|
| 985 |
+
False
|
| 986 |
+
"""
|
| 987 |
+
auth_s = urllib.parse.unquote(auth)
|
| 988 |
+
# convert to bytes
|
| 989 |
+
auth_bytes = auth_s.encode()
|
| 990 |
+
encoded_bytes = base64.b64encode(auth_bytes)
|
| 991 |
+
# convert back to a string
|
| 992 |
+
encoded = encoded_bytes.decode()
|
| 993 |
+
# strip the trailing carriage return
|
| 994 |
+
return encoded.replace('\n', '')
|
| 995 |
+
|
| 996 |
+
|
| 997 |
+
class Credential(NamedTuple):
|
| 998 |
+
"""
|
| 999 |
+
A username/password pair.
|
| 1000 |
+
|
| 1001 |
+
Displayed separated by `:`.
|
| 1002 |
+
>>> str(Credential('username', 'password'))
|
| 1003 |
+
'username:password'
|
| 1004 |
+
"""
|
| 1005 |
+
|
| 1006 |
+
username: str
|
| 1007 |
+
password: str
|
| 1008 |
+
|
| 1009 |
+
def __str__(self) -> str:
|
| 1010 |
+
return f'{self.username}:{self.password}'
|
| 1011 |
+
|
| 1012 |
+
|
| 1013 |
+
class PyPIConfig(configparser.RawConfigParser):
|
| 1014 |
+
def __init__(self):
|
| 1015 |
+
"""
|
| 1016 |
+
Load from ~/.pypirc
|
| 1017 |
+
"""
|
| 1018 |
+
defaults = dict.fromkeys(['username', 'password', 'repository'], '')
|
| 1019 |
+
super().__init__(defaults)
|
| 1020 |
+
|
| 1021 |
+
rc = os.path.join(os.path.expanduser('~'), '.pypirc')
|
| 1022 |
+
if os.path.exists(rc):
|
| 1023 |
+
_cfg_read_utf8_with_fallback(self, rc)
|
| 1024 |
+
|
| 1025 |
+
@property
|
| 1026 |
+
def creds_by_repository(self):
|
| 1027 |
+
sections_with_repositories = [
|
| 1028 |
+
section
|
| 1029 |
+
for section in self.sections()
|
| 1030 |
+
if self.get(section, 'repository').strip()
|
| 1031 |
+
]
|
| 1032 |
+
|
| 1033 |
+
return dict(map(self._get_repo_cred, sections_with_repositories))
|
| 1034 |
+
|
| 1035 |
+
def _get_repo_cred(self, section):
|
| 1036 |
+
repo = self.get(section, 'repository').strip()
|
| 1037 |
+
return repo, Credential(
|
| 1038 |
+
self.get(section, 'username').strip(),
|
| 1039 |
+
self.get(section, 'password').strip(),
|
| 1040 |
+
)
|
| 1041 |
+
|
| 1042 |
+
def find_credential(self, url):
|
| 1043 |
+
"""
|
| 1044 |
+
If the URL indicated appears to be a repository defined in this
|
| 1045 |
+
config, return the credential for that repository.
|
| 1046 |
+
"""
|
| 1047 |
+
for repository, cred in self.creds_by_repository.items():
|
| 1048 |
+
if url.startswith(repository):
|
| 1049 |
+
return cred
|
| 1050 |
+
return None
|
| 1051 |
+
|
| 1052 |
+
|
| 1053 |
+
def open_with_auth(url, opener=urllib.request.urlopen):
|
| 1054 |
+
"""Open a urllib2 request, handling HTTP authentication"""
|
| 1055 |
+
|
| 1056 |
+
parsed = urllib.parse.urlparse(url)
|
| 1057 |
+
scheme, netloc, path, params, query, frag = parsed
|
| 1058 |
+
|
| 1059 |
+
# Double scheme does not raise on macOS as revealed by a
|
| 1060 |
+
# failing test. We would expect "nonnumeric port". Refs #20.
|
| 1061 |
+
if netloc.endswith(':'):
|
| 1062 |
+
raise http.client.InvalidURL("nonnumeric port: ''")
|
| 1063 |
+
|
| 1064 |
+
if scheme in ('http', 'https'):
|
| 1065 |
+
auth, address = _splituser(netloc)
|
| 1066 |
+
else:
|
| 1067 |
+
auth, address = (None, None)
|
| 1068 |
+
|
| 1069 |
+
if not auth:
|
| 1070 |
+
cred = PyPIConfig().find_credential(url)
|
| 1071 |
+
if cred:
|
| 1072 |
+
auth = str(cred)
|
| 1073 |
+
info = cred.username, url
|
| 1074 |
+
log.info('Authenticating as %s for %s (from .pypirc)', *info)
|
| 1075 |
+
|
| 1076 |
+
if auth:
|
| 1077 |
+
auth = "Basic " + _encode_auth(auth)
|
| 1078 |
+
parts = scheme, address, path, params, query, frag
|
| 1079 |
+
new_url = urllib.parse.urlunparse(parts)
|
| 1080 |
+
request = urllib.request.Request(new_url)
|
| 1081 |
+
request.add_header("Authorization", auth)
|
| 1082 |
+
else:
|
| 1083 |
+
request = urllib.request.Request(url)
|
| 1084 |
+
|
| 1085 |
+
request.add_header('User-Agent', user_agent)
|
| 1086 |
+
fp = opener(request)
|
| 1087 |
+
|
| 1088 |
+
if auth:
|
| 1089 |
+
# Put authentication info back into request URL if same host,
|
| 1090 |
+
# so that links found on the page will work
|
| 1091 |
+
s2, h2, path2, param2, query2, frag2 = urllib.parse.urlparse(fp.url)
|
| 1092 |
+
if s2 == scheme and h2 == address:
|
| 1093 |
+
parts = s2, netloc, path2, param2, query2, frag2
|
| 1094 |
+
fp.url = urllib.parse.urlunparse(parts)
|
| 1095 |
+
|
| 1096 |
+
return fp
|
| 1097 |
+
|
| 1098 |
+
|
| 1099 |
+
# copy of urllib.parse._splituser from Python 3.8
|
| 1100 |
+
# See https://github.com/python/cpython/issues/80072.
|
| 1101 |
+
def _splituser(host):
|
| 1102 |
+
"""splituser('user[:passwd]@host[:port]')
|
| 1103 |
+
--> 'user[:passwd]', 'host[:port]'."""
|
| 1104 |
+
user, delim, host = host.rpartition('@')
|
| 1105 |
+
return (user if delim else None), host
|
| 1106 |
+
|
| 1107 |
+
|
| 1108 |
+
# adding a timeout to avoid freezing package_index
|
| 1109 |
+
open_with_auth = socket_timeout(_SOCKET_TIMEOUT)(open_with_auth)
|
| 1110 |
+
|
| 1111 |
+
|
| 1112 |
+
def fix_sf_url(url):
|
| 1113 |
+
return url # backward compatibility
|
| 1114 |
+
|
| 1115 |
+
|
| 1116 |
+
def local_open(url):
|
| 1117 |
+
"""Read a local path, with special support for directories"""
|
| 1118 |
+
_scheme, _server, path, _param, _query, _frag = urllib.parse.urlparse(url)
|
| 1119 |
+
filename = urllib.request.url2pathname(path)
|
| 1120 |
+
if os.path.isfile(filename):
|
| 1121 |
+
return urllib.request.urlopen(url)
|
| 1122 |
+
elif path.endswith('/') and os.path.isdir(filename):
|
| 1123 |
+
files = []
|
| 1124 |
+
for f in os.listdir(filename):
|
| 1125 |
+
filepath = os.path.join(filename, f)
|
| 1126 |
+
if f == 'index.html':
|
| 1127 |
+
body = _read_utf8_with_fallback(filepath)
|
| 1128 |
+
break
|
| 1129 |
+
elif os.path.isdir(filepath):
|
| 1130 |
+
f += '/'
|
| 1131 |
+
files.append(f'<a href="{f}">{f}</a>')
|
| 1132 |
+
else:
|
| 1133 |
+
tmpl = "<html><head><title>{url}</title></head><body>{files}</body></html>"
|
| 1134 |
+
body = tmpl.format(url=url, files='\n'.join(files))
|
| 1135 |
+
status, message = 200, "OK"
|
| 1136 |
+
else:
|
| 1137 |
+
status, message, body = 404, "Path not found", "Not found"
|
| 1138 |
+
|
| 1139 |
+
headers = {'content-type': 'text/html'}
|
| 1140 |
+
body_stream = io.StringIO(body)
|
| 1141 |
+
return urllib.error.HTTPError(url, status, message, headers, body_stream)
|
videollama2/lib/python3.10/site-packages/setuptools/script.tmpl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r
|
| 2 |
+
__requires__ = %(spec)r
|
| 3 |
+
__import__('pkg_resources').run_script(%(spec)r, %(script_name)r)
|
videollama2/lib/python3.10/site-packages/websockets/extensions/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (279 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContextLight.h
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// Light-weight version of CUDAContext.h with fewer transitive includes
|
| 3 |
+
|
| 4 |
+
#include <cstdint>
|
| 5 |
+
|
| 6 |
+
#include <cuda_runtime_api.h>
|
| 7 |
+
#include <cusparse.h>
|
| 8 |
+
#include <cublas_v2.h>
|
| 9 |
+
|
| 10 |
+
// cublasLT was introduced in CUDA 10.1 but we enable only for 11.1 that also
|
| 11 |
+
// added bf16 support
|
| 12 |
+
#include <cublasLt.h>
|
| 13 |
+
|
| 14 |
+
#ifdef CUDART_VERSION
|
| 15 |
+
#include <cusolverDn.h>
|
| 16 |
+
#endif
|
| 17 |
+
|
| 18 |
+
#if defined(USE_CUDSS)
|
| 19 |
+
#include <cudss.h>
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
#if defined(USE_ROCM)
|
| 23 |
+
#include <hipsolver/hipsolver.h>
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
#include <c10/core/Allocator.h>
|
| 27 |
+
#include <c10/cuda/CUDAFunctions.h>
|
| 28 |
+
|
| 29 |
+
namespace c10 {
|
| 30 |
+
struct Allocator;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
namespace at::cuda {
|
| 34 |
+
|
| 35 |
+
/*
|
| 36 |
+
A common CUDA interface for ATen.
|
| 37 |
+
|
| 38 |
+
This interface is distinct from CUDAHooks, which defines an interface that links
|
| 39 |
+
to both CPU-only and CUDA builds. That interface is intended for runtime
|
| 40 |
+
dispatch and should be used from files that are included in both CPU-only and
|
| 41 |
+
CUDA builds.
|
| 42 |
+
|
| 43 |
+
CUDAContext, on the other hand, should be preferred by files only included in
|
| 44 |
+
CUDA builds. It is intended to expose CUDA functionality in a consistent
|
| 45 |
+
manner.
|
| 46 |
+
|
| 47 |
+
This means there is some overlap between the CUDAContext and CUDAHooks, but
|
| 48 |
+
the choice of which to use is simple: use CUDAContext when in a CUDA-only file,
|
| 49 |
+
use CUDAHooks otherwise.
|
| 50 |
+
|
| 51 |
+
Note that CUDAContext simply defines an interface with no associated class.
|
| 52 |
+
It is expected that the modules whose functions compose this interface will
|
| 53 |
+
manage their own state. There is only a single CUDA context/state.
|
| 54 |
+
*/
|
| 55 |
+
|
| 56 |
+
/**
|
| 57 |
+
* DEPRECATED: use device_count() instead
|
| 58 |
+
*/
|
| 59 |
+
inline int64_t getNumGPUs() {
|
| 60 |
+
return c10::cuda::device_count();
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* CUDA is available if we compiled with CUDA, and there are one or more
|
| 65 |
+
* devices. If we compiled with CUDA but there is a driver problem, etc.,
|
| 66 |
+
* this function will report CUDA is not available (rather than raise an error.)
|
| 67 |
+
*/
|
| 68 |
+
inline bool is_available() {
|
| 69 |
+
return c10::cuda::device_count() > 0;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
TORCH_CUDA_CPP_API cudaDeviceProp* getCurrentDeviceProperties();
|
| 73 |
+
|
| 74 |
+
TORCH_CUDA_CPP_API int warp_size();
|
| 75 |
+
|
| 76 |
+
TORCH_CUDA_CPP_API cudaDeviceProp* getDeviceProperties(c10::DeviceIndex device);
|
| 77 |
+
|
| 78 |
+
TORCH_CUDA_CPP_API bool canDeviceAccessPeer(
|
| 79 |
+
c10::DeviceIndex device,
|
| 80 |
+
c10::DeviceIndex peer_device);
|
| 81 |
+
|
| 82 |
+
TORCH_CUDA_CPP_API c10::Allocator* getCUDADeviceAllocator();
|
| 83 |
+
|
| 84 |
+
/* Handles */
|
| 85 |
+
TORCH_CUDA_CPP_API cusparseHandle_t getCurrentCUDASparseHandle();
|
| 86 |
+
TORCH_CUDA_CPP_API cublasHandle_t getCurrentCUDABlasHandle();
|
| 87 |
+
TORCH_CUDA_CPP_API cublasLtHandle_t getCurrentCUDABlasLtHandle();
|
| 88 |
+
|
| 89 |
+
TORCH_CUDA_CPP_API void clearCublasWorkspaces();
|
| 90 |
+
|
| 91 |
+
#if defined(CUDART_VERSION) || defined(USE_ROCM)
|
| 92 |
+
TORCH_CUDA_CPP_API cusolverDnHandle_t getCurrentCUDASolverDnHandle();
|
| 93 |
+
#endif
|
| 94 |
+
|
| 95 |
+
#if defined(USE_CUDSS)
|
| 96 |
+
TORCH_CUDA_CPP_API cudssHandle_t getCurrentCudssHandle();
|
| 97 |
+
#endif
|
| 98 |
+
|
| 99 |
+
} // namespace at::cuda
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDADevice.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <ATen/cuda/Exceptions.h>
|
| 4 |
+
|
| 5 |
+
#include <cuda.h>
|
| 6 |
+
#include <cuda_runtime.h>
|
| 7 |
+
|
| 8 |
+
namespace at::cuda {
|
| 9 |
+
|
| 10 |
+
inline Device getDeviceFromPtr(void* ptr) {
|
| 11 |
+
cudaPointerAttributes attr{};
|
| 12 |
+
|
| 13 |
+
AT_CUDA_CHECK(cudaPointerGetAttributes(&attr, ptr));
|
| 14 |
+
|
| 15 |
+
#if !defined(USE_ROCM)
|
| 16 |
+
TORCH_CHECK(attr.type != cudaMemoryTypeUnregistered,
|
| 17 |
+
"The specified pointer resides on host memory and is not registered with any CUDA device.");
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
return {c10::DeviceType::CUDA, static_cast<DeviceIndex>(attr.device)};
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
} // namespace at::cuda
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/Exceptions.h
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 3 |
+
#include <cublas_v2.h>
|
| 4 |
+
#include <cusparse.h>
|
| 5 |
+
#include <c10/macros/Export.h>
|
| 6 |
+
|
| 7 |
+
#ifdef CUDART_VERSION
|
| 8 |
+
#include <cusolver_common.h>
|
| 9 |
+
#endif
|
| 10 |
+
|
| 11 |
+
#if defined(USE_CUDSS)
|
| 12 |
+
#include <cudss.h>
|
| 13 |
+
#endif
|
| 14 |
+
|
| 15 |
+
#include <ATen/Context.h>
|
| 16 |
+
#include <c10/util/Exception.h>
|
| 17 |
+
#include <c10/cuda/CUDAException.h>
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
namespace c10 {
|
| 21 |
+
|
| 22 |
+
class CuDNNError : public c10::Error {
|
| 23 |
+
using Error::Error;
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
} // namespace c10
|
| 27 |
+
|
| 28 |
+
#define AT_CUDNN_FRONTEND_CHECK(EXPR, ...) \
|
| 29 |
+
do { \
|
| 30 |
+
auto error_object = EXPR; \
|
| 31 |
+
if (!error_object.is_good()) { \
|
| 32 |
+
TORCH_CHECK_WITH(CuDNNError, false, \
|
| 33 |
+
"cuDNN Frontend error: ", error_object.get_message()); \
|
| 34 |
+
} \
|
| 35 |
+
} while (0) \
|
| 36 |
+
|
| 37 |
+
#define AT_CUDNN_CHECK_WITH_SHAPES(EXPR, ...) AT_CUDNN_CHECK(EXPR, "\n", ##__VA_ARGS__)
|
| 38 |
+
|
| 39 |
+
// See Note [CHECK macro]
|
| 40 |
+
#define AT_CUDNN_CHECK(EXPR, ...) \
|
| 41 |
+
do { \
|
| 42 |
+
cudnnStatus_t status = EXPR; \
|
| 43 |
+
if (status != CUDNN_STATUS_SUCCESS) { \
|
| 44 |
+
if (status == CUDNN_STATUS_NOT_SUPPORTED) { \
|
| 45 |
+
TORCH_CHECK_WITH(CuDNNError, false, \
|
| 46 |
+
"cuDNN error: ", \
|
| 47 |
+
cudnnGetErrorString(status), \
|
| 48 |
+
". This error may appear if you passed in a non-contiguous input.", ##__VA_ARGS__); \
|
| 49 |
+
} else { \
|
| 50 |
+
TORCH_CHECK_WITH(CuDNNError, false, \
|
| 51 |
+
"cuDNN error: ", cudnnGetErrorString(status), ##__VA_ARGS__); \
|
| 52 |
+
} \
|
| 53 |
+
} \
|
| 54 |
+
} while (0)
|
| 55 |
+
|
| 56 |
+
namespace at::cuda::blas {
|
| 57 |
+
C10_EXPORT const char* _cublasGetErrorEnum(cublasStatus_t error);
|
| 58 |
+
} // namespace at::cuda::blas
|
| 59 |
+
|
| 60 |
+
#define TORCH_CUDABLAS_CHECK(EXPR) \
|
| 61 |
+
do { \
|
| 62 |
+
cublasStatus_t __err = EXPR; \
|
| 63 |
+
TORCH_CHECK(__err == CUBLAS_STATUS_SUCCESS, \
|
| 64 |
+
"CUDA error: ", \
|
| 65 |
+
at::cuda::blas::_cublasGetErrorEnum(__err), \
|
| 66 |
+
" when calling `" #EXPR "`"); \
|
| 67 |
+
} while (0)
|
| 68 |
+
|
| 69 |
+
const char *cusparseGetErrorString(cusparseStatus_t status);
|
| 70 |
+
|
| 71 |
+
#define TORCH_CUDASPARSE_CHECK(EXPR) \
|
| 72 |
+
do { \
|
| 73 |
+
cusparseStatus_t __err = EXPR; \
|
| 74 |
+
TORCH_CHECK(__err == CUSPARSE_STATUS_SUCCESS, \
|
| 75 |
+
"CUDA error: ", \
|
| 76 |
+
cusparseGetErrorString(__err), \
|
| 77 |
+
" when calling `" #EXPR "`"); \
|
| 78 |
+
} while (0)
|
| 79 |
+
|
| 80 |
+
#if defined(USE_CUDSS)
|
| 81 |
+
namespace at::cuda::cudss {
|
| 82 |
+
C10_EXPORT const char* cudssGetErrorMessage(cudssStatus_t error);
|
| 83 |
+
} // namespace at::cuda::solver
|
| 84 |
+
|
| 85 |
+
#define TORCH_CUDSS_CHECK(EXPR) \
|
| 86 |
+
do { \
|
| 87 |
+
cudssStatus_t __err = EXPR; \
|
| 88 |
+
if (__err == CUDSS_STATUS_EXECUTION_FAILED) { \
|
| 89 |
+
TORCH_CHECK_LINALG( \
|
| 90 |
+
false, \
|
| 91 |
+
"cudss error: ", \
|
| 92 |
+
at::cuda::cudss::cudssGetErrorMessage(__err), \
|
| 93 |
+
", when calling `" #EXPR "`", \
|
| 94 |
+
". This error may appear if the input matrix contains NaN. ");\
|
| 95 |
+
} else { \
|
| 96 |
+
TORCH_CHECK( \
|
| 97 |
+
__err == CUDSS_STATUS_SUCCESS, \
|
| 98 |
+
"cudss error: ", \
|
| 99 |
+
at::cuda::cudss::cudssGetErrorMessage(__err), \
|
| 100 |
+
", when calling `" #EXPR "`. "); \
|
| 101 |
+
} \
|
| 102 |
+
} while (0)
|
| 103 |
+
#else
|
| 104 |
+
#define TORCH_CUDSS_CHECK(EXPR) EXPR
|
| 105 |
+
#endif
|
| 106 |
+
|
| 107 |
+
// cusolver related headers are only supported on cuda now
|
| 108 |
+
#ifdef CUDART_VERSION
|
| 109 |
+
|
| 110 |
+
namespace at::cuda::solver {
|
| 111 |
+
C10_EXPORT const char* cusolverGetErrorMessage(cusolverStatus_t status);
|
| 112 |
+
|
| 113 |
+
constexpr const char* _cusolver_backend_suggestion = \
|
| 114 |
+
"If you keep seeing this error, you may use " \
|
| 115 |
+
"`torch.backends.cuda.preferred_linalg_library()` to try " \
|
| 116 |
+
"linear algebra operators with other supported backends. " \
|
| 117 |
+
"See https://pytorch.org/docs/stable/backends.html#torch.backends.cuda.preferred_linalg_library";
|
| 118 |
+
|
| 119 |
+
} // namespace at::cuda::solver
|
| 120 |
+
|
| 121 |
+
// When cuda < 11.5, cusolver raises CUSOLVER_STATUS_EXECUTION_FAILED when input contains nan.
|
| 122 |
+
// When cuda >= 11.5, cusolver normally finishes execution and sets info array indicating convergence issue.
|
| 123 |
+
#define TORCH_CUSOLVER_CHECK(EXPR) \
|
| 124 |
+
do { \
|
| 125 |
+
cusolverStatus_t __err = EXPR; \
|
| 126 |
+
if ((CUDA_VERSION < 11500 && \
|
| 127 |
+
__err == CUSOLVER_STATUS_EXECUTION_FAILED) || \
|
| 128 |
+
(CUDA_VERSION >= 11500 && \
|
| 129 |
+
__err == CUSOLVER_STATUS_INVALID_VALUE)) { \
|
| 130 |
+
TORCH_CHECK_LINALG( \
|
| 131 |
+
false, \
|
| 132 |
+
"cusolver error: ", \
|
| 133 |
+
at::cuda::solver::cusolverGetErrorMessage(__err), \
|
| 134 |
+
", when calling `" #EXPR "`", \
|
| 135 |
+
". This error may appear if the input matrix contains NaN. ", \
|
| 136 |
+
at::cuda::solver::_cusolver_backend_suggestion); \
|
| 137 |
+
} else { \
|
| 138 |
+
TORCH_CHECK( \
|
| 139 |
+
__err == CUSOLVER_STATUS_SUCCESS, \
|
| 140 |
+
"cusolver error: ", \
|
| 141 |
+
at::cuda::solver::cusolverGetErrorMessage(__err), \
|
| 142 |
+
", when calling `" #EXPR "`. ", \
|
| 143 |
+
at::cuda::solver::_cusolver_backend_suggestion); \
|
| 144 |
+
} \
|
| 145 |
+
} while (0)
|
| 146 |
+
|
| 147 |
+
#else
|
| 148 |
+
#define TORCH_CUSOLVER_CHECK(EXPR) EXPR
|
| 149 |
+
#endif
|
| 150 |
+
|
| 151 |
+
#define AT_CUDA_CHECK(EXPR) C10_CUDA_CHECK(EXPR)
|
| 152 |
+
|
| 153 |
+
// For CUDA Driver API
|
| 154 |
+
//
|
| 155 |
+
// This is here instead of in c10 because NVRTC is loaded dynamically via a stub
|
| 156 |
+
// in ATen, and we need to use its nvrtcGetErrorString.
|
| 157 |
+
// See NOTE [ USE OF NVRTC AND DRIVER API ].
|
| 158 |
+
#if !defined(USE_ROCM)
|
| 159 |
+
|
| 160 |
+
#define AT_CUDA_DRIVER_CHECK(EXPR) \
|
| 161 |
+
do { \
|
| 162 |
+
CUresult __err = EXPR; \
|
| 163 |
+
if (__err != CUDA_SUCCESS) { \
|
| 164 |
+
const char* err_str; \
|
| 165 |
+
CUresult get_error_str_err C10_UNUSED = at::globalContext().getNVRTC().cuGetErrorString(__err, &err_str); \
|
| 166 |
+
if (get_error_str_err != CUDA_SUCCESS) { \
|
| 167 |
+
AT_ERROR("CUDA driver error: unknown error"); \
|
| 168 |
+
} else { \
|
| 169 |
+
AT_ERROR("CUDA driver error: ", err_str); \
|
| 170 |
+
} \
|
| 171 |
+
} \
|
| 172 |
+
} while (0)
|
| 173 |
+
|
| 174 |
+
#else
|
| 175 |
+
|
| 176 |
+
#define AT_CUDA_DRIVER_CHECK(EXPR) \
|
| 177 |
+
do { \
|
| 178 |
+
CUresult __err = EXPR; \
|
| 179 |
+
if (__err != CUDA_SUCCESS) { \
|
| 180 |
+
AT_ERROR("CUDA driver error: ", static_cast<int>(__err)); \
|
| 181 |
+
} \
|
| 182 |
+
} while (0)
|
| 183 |
+
|
| 184 |
+
#endif
|
| 185 |
+
|
| 186 |
+
// For CUDA NVRTC
|
| 187 |
+
//
|
| 188 |
+
// Note: As of CUDA 10, nvrtc error code 7, NVRTC_ERROR_BUILTIN_OPERATION_FAILURE,
|
| 189 |
+
// incorrectly produces the error string "NVRTC unknown error."
|
| 190 |
+
// The following maps it correctly.
|
| 191 |
+
//
|
| 192 |
+
// This is here instead of in c10 because NVRTC is loaded dynamically via a stub
|
| 193 |
+
// in ATen, and we need to use its nvrtcGetErrorString.
|
| 194 |
+
// See NOTE [ USE OF NVRTC AND DRIVER API ].
|
| 195 |
+
#define AT_CUDA_NVRTC_CHECK(EXPR) \
|
| 196 |
+
do { \
|
| 197 |
+
nvrtcResult __err = EXPR; \
|
| 198 |
+
if (__err != NVRTC_SUCCESS) { \
|
| 199 |
+
if (static_cast<int>(__err) != 7) { \
|
| 200 |
+
AT_ERROR("CUDA NVRTC error: ", at::globalContext().getNVRTC().nvrtcGetErrorString(__err)); \
|
| 201 |
+
} else { \
|
| 202 |
+
AT_ERROR("CUDA NVRTC error: NVRTC_ERROR_BUILTIN_OPERATION_FAILURE"); \
|
| 203 |
+
} \
|
| 204 |
+
} \
|
| 205 |
+
} while (0)
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/PeerToPeerAccess.h
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include <c10/macros/Macros.h>
|
| 2 |
+
#include <cstdint>
|
| 3 |
+
|
| 4 |
+
namespace at::cuda {
|
| 5 |
+
namespace detail {
|
| 6 |
+
void init_p2p_access_cache(int64_t num_devices);
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
TORCH_CUDA_CPP_API bool get_p2p_access(int source_dev, int dest_dev);
|
| 10 |
+
|
| 11 |
+
} // namespace at::cuda
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/cub.h
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
#include <cstdint>
|
| 3 |
+
#include <c10/core/ScalarType.h>
|
| 4 |
+
#include <ATen/cuda/CUDAConfig.h>
|
| 5 |
+
|
| 6 |
+
// NOTE: These templates are intentionally not defined in this header,
|
| 7 |
+
// which aviods re-compiling them for each translation unit. If you get
|
| 8 |
+
// a link error, you need to add an explicit instantiation for your
|
| 9 |
+
// types in cub.cu
|
| 10 |
+
|
| 11 |
+
namespace at::cuda::cub {
|
| 12 |
+
|
| 13 |
+
inline int get_num_bits(uint64_t max_key) {
|
| 14 |
+
int num_bits = 1;
|
| 15 |
+
while (max_key > 1) {
|
| 16 |
+
max_key >>= 1;
|
| 17 |
+
num_bits++;
|
| 18 |
+
}
|
| 19 |
+
return num_bits;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
namespace detail {
|
| 23 |
+
|
| 24 |
+
// radix_sort_pairs doesn't interact with value_t other than to copy
|
| 25 |
+
// the data, so we can save template instantiations by reinterpreting
|
| 26 |
+
// it as an opaque type.
|
| 27 |
+
template <int N> struct alignas(N) OpaqueType { char data[N]; };
|
| 28 |
+
|
| 29 |
+
template<typename key_t, int value_size>
|
| 30 |
+
void radix_sort_pairs_impl(
|
| 31 |
+
const key_t *keys_in, key_t *keys_out,
|
| 32 |
+
const OpaqueType<value_size> *values_in, OpaqueType<value_size> *values_out,
|
| 33 |
+
int64_t n, bool descending, int64_t begin_bit, int64_t end_bit);
|
| 34 |
+
|
| 35 |
+
} // namespace detail
|
| 36 |
+
|
| 37 |
+
template<typename key_t, typename value_t>
|
| 38 |
+
void radix_sort_pairs(
|
| 39 |
+
const key_t *keys_in, key_t *keys_out,
|
| 40 |
+
const value_t *values_in, value_t *values_out,
|
| 41 |
+
int64_t n, bool descending=false, int64_t begin_bit=0, int64_t end_bit=sizeof(key_t)*8) {
|
| 42 |
+
static_assert(std::is_trivially_copyable_v<value_t> ||
|
| 43 |
+
AT_ROCM_ENABLED(), // ROCm incorrectly fails this check for vector types
|
| 44 |
+
"radix_sort_pairs value type must be trivially copyable");
|
| 45 |
+
// Make value type opaque, so all inputs of a certain size use the same template instantiation
|
| 46 |
+
using opaque_t = detail::OpaqueType<sizeof(value_t)>;
|
| 47 |
+
static_assert(sizeof(value_t) <= 8 && (sizeof(value_t) & (sizeof(value_t) - 1)) == 0,
|
| 48 |
+
"This size of value_t is not instantiated. Please instantiate it in cub.cu"
|
| 49 |
+
" and modify this check.");
|
| 50 |
+
static_assert(sizeof(value_t) == alignof(value_t), "Expected value_t to be size-aligned");
|
| 51 |
+
detail::radix_sort_pairs_impl(
|
| 52 |
+
keys_in, keys_out,
|
| 53 |
+
reinterpret_cast<const opaque_t*>(values_in),
|
| 54 |
+
reinterpret_cast<opaque_t*>(values_out),
|
| 55 |
+
n, descending, begin_bit, end_bit);
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
template<typename key_t>
|
| 59 |
+
void radix_sort_keys(
|
| 60 |
+
const key_t *keys_in, key_t *keys_out,
|
| 61 |
+
int64_t n, bool descending=false, int64_t begin_bit=0, int64_t end_bit=sizeof(key_t)*8);
|
| 62 |
+
|
| 63 |
+
// NOTE: Intermediate sums will be truncated to input_t precision
|
| 64 |
+
template <typename input_t, typename output_t>
|
| 65 |
+
void inclusive_sum_truncating(const input_t *input, output_t *output, int64_t n);
|
| 66 |
+
|
| 67 |
+
template <typename scalar_t>
|
| 68 |
+
void inclusive_sum(const scalar_t *input, scalar_t *output, int64_t n) {
|
| 69 |
+
return inclusive_sum_truncating(input, output, n);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
// NOTE: Sums are done is common_type<input_t, output_t>
|
| 73 |
+
template <typename input_t, typename output_t>
|
| 74 |
+
void exclusive_sum_in_common_type(const input_t *input, output_t *output, int64_t n);
|
| 75 |
+
|
| 76 |
+
template <typename scalar_t>
|
| 77 |
+
void exclusive_sum(const scalar_t *input, scalar_t *output, int64_t n) {
|
| 78 |
+
return exclusive_sum_in_common_type(input, output, n);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
void mask_exclusive_sum(const uint8_t *mask, int64_t *output_idx, int64_t n);
|
| 82 |
+
inline void mask_exclusive_sum(const bool *mask, int64_t *output_idx, int64_t n) {
|
| 83 |
+
return mask_exclusive_sum(
|
| 84 |
+
reinterpret_cast<const uint8_t*>(mask), output_idx, n);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
} // namespace at::cuda::cub
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/CUDAHooks.h
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <ATen/detail/CUDAHooksInterface.h>
|
| 4 |
+
|
| 5 |
+
#include <ATen/Generator.h>
|
| 6 |
+
#include <optional>
|
| 7 |
+
|
| 8 |
+
// TODO: No need to have this whole header, we can just put it all in
|
| 9 |
+
// the cpp file
|
| 10 |
+
|
| 11 |
+
namespace at::cuda::detail {
|
| 12 |
+
|
| 13 |
+
// Set the callback to initialize Magma, which is set by
|
| 14 |
+
// torch_cuda_cu. This indirection is required so magma_init is called
|
| 15 |
+
// in the same library where Magma will be used.
|
| 16 |
+
TORCH_CUDA_CPP_API void set_magma_init_fn(void (*magma_init_fn)());
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
// The real implementation of CUDAHooksInterface
|
| 20 |
+
struct CUDAHooks : public at::CUDAHooksInterface {
|
| 21 |
+
CUDAHooks(at::CUDAHooksArgs) {}
|
| 22 |
+
void initCUDA() const override;
|
| 23 |
+
Device getDeviceFromPtr(void* data) const override;
|
| 24 |
+
bool isPinnedPtr(const void* data) const override;
|
| 25 |
+
const Generator& getDefaultCUDAGenerator(DeviceIndex device_index = -1) const override;
|
| 26 |
+
bool hasCUDA() const override;
|
| 27 |
+
bool hasMAGMA() const override;
|
| 28 |
+
bool hasCuDNN() const override;
|
| 29 |
+
bool hasCuSOLVER() const override;
|
| 30 |
+
bool hasCuBLASLt() const override;
|
| 31 |
+
bool hasROCM() const override;
|
| 32 |
+
const at::cuda::NVRTC& nvrtc() const override;
|
| 33 |
+
DeviceIndex current_device() const override;
|
| 34 |
+
bool hasPrimaryContext(DeviceIndex device_index) const override;
|
| 35 |
+
Allocator* getCUDADeviceAllocator() const override;
|
| 36 |
+
Allocator* getPinnedMemoryAllocator() const override;
|
| 37 |
+
bool compiledWithCuDNN() const override;
|
| 38 |
+
bool compiledWithMIOpen() const override;
|
| 39 |
+
bool supportsDilatedConvolutionWithCuDNN() const override;
|
| 40 |
+
bool supportsDepthwiseConvolutionWithCuDNN() const override;
|
| 41 |
+
bool supportsBFloat16ConvolutionWithCuDNNv8() const override;
|
| 42 |
+
bool hasCUDART() const override;
|
| 43 |
+
long versionCUDART() const override;
|
| 44 |
+
long versionCuDNN() const override;
|
| 45 |
+
std::string showConfig() const override;
|
| 46 |
+
double batchnormMinEpsilonCuDNN() const override;
|
| 47 |
+
int64_t cuFFTGetPlanCacheMaxSize(DeviceIndex device_index) const override;
|
| 48 |
+
void cuFFTSetPlanCacheMaxSize(DeviceIndex device_index, int64_t max_size) const override;
|
| 49 |
+
int64_t cuFFTGetPlanCacheSize(DeviceIndex device_index) const override;
|
| 50 |
+
void cuFFTClearPlanCache(DeviceIndex device_index) const override;
|
| 51 |
+
int getNumGPUs() const override;
|
| 52 |
+
#ifdef USE_ROCM
|
| 53 |
+
bool isGPUArch(DeviceIndex device_index, const std::vector<std::string>& archs) const override;
|
| 54 |
+
#endif
|
| 55 |
+
void deviceSynchronize(D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|
|
|
|
|
|
|
|
|
| 1 |
+
// Some stateful GPU libraries, such as cuDNN, cuBLAS, use handles to store states.
|
| 2 |
+
// These handles are tied to device, and these libraries requires/recommends not to
|
| 3 |
+
// share handles across host threads.
|
| 4 |
+
//
|
| 5 |
+
// These libraries recommend using one handle per host thread. We may not want to do
|
| 6 |
+
// this because threads are relatively light-weight, but creating and destroying
|
| 7 |
+
// handles is expensive (destroying the handle causes synchronizations). DataParallel,
|
| 8 |
+
// for example, creates new threads for each forward pass.
|
| 9 |
+
//
|
| 10 |
+
// This file implements a handle pool mechanism. The handle pool returns handles on
|
| 11 |
+
// demand as threads request them. If all existing handles in the pool are in use,
|
| 12 |
+
// it creates a new one. As threads terminate, they release handles back into the pool.
|
| 13 |
+
// In this way, the handle pool never creates more handles than the high-water mark of
|
| 14 |
+
// active threads, so it's efficient with DataParallel.
|
| 15 |
+
|
| 16 |
+
#pragma once
|
| 17 |
+
|
| 18 |
+
#include <unordered_map>
|
| 19 |
+
#include <vector>
|
| 20 |
+
#include <utility>
|
| 21 |
+
#include <mutex>
|
| 22 |
+
#include <memory>
|
| 23 |
+
|
| 24 |
+
#include <c10/util/Exception.h>
|
| 25 |
+
|
| 26 |
+
namespace at::cuda { namespace {
|
| 27 |
+
|
| 28 |
+
template <typename Handle_t, void Create(Handle_t *), void Destroy(Handle_t)>
|
| 29 |
+
struct DeviceThreadHandlePool : public std::enable_shared_from_this<DeviceThreadHandlePool<Handle_t, Create, Destroy>> {
|
| 30 |
+
|
| 31 |
+
struct Handle {
|
| 32 |
+
Handle_t handle;
|
| 33 |
+
Handle(bool create = false) : handle(nullptr)
|
| 34 |
+
{
|
| 35 |
+
if(create) Create(&handle);
|
| 36 |
+
}
|
| 37 |
+
// std::vector.emplace() and push_back() may route through temporaries and call
|
| 38 |
+
// copy/move constructors along the way. If this is the case, we don't want
|
| 39 |
+
// the destructors of temporaries to call cudnnDestroy on the handle.
|
| 40 |
+
// We can achieve safety (for the narrow case of stashing within std::vectors)
|
| 41 |
+
// by making Handle moveable but not copyable, and transferring handle ownership
|
| 42 |
+
// to the latest constructed object. This is not a substitute for full-blown
|
| 43 |
+
// reference counting, but reference counting may be overkill here.
|
| 44 |
+
// Another alternative is to wrap the saved Handles in unique_ptrs, i.e.,
|
| 45 |
+
// unordered_map<int, vector<unique_ptr<Handle>>> created_handles;
|
| 46 |
+
Handle(const Handle& rhs) = delete;
|
| 47 |
+
// Following https://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom
|
| 48 |
+
Handle(Handle&& rhs) noexcept : Handle() { std::swap(handle, rhs.handle); }
|
| 49 |
+
// operator= takes argument by value
|
| 50 |
+
Handle& operator=(Handle rhs) { std::swap(handle, rhs.handle); return *this; }
|
| 51 |
+
~Handle() {
|
| 52 |
+
if(handle) Destroy(handle);
|
| 53 |
+
}
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
std::mutex mutex;
|
| 57 |
+
|
| 58 |
+
// Handles are lazily created as different threads request them,
|
| 59 |
+
// but are never destroyed until the end of the process.
|
| 60 |
+
// The maximum number of handles this process will create for each device is equal
|
| 61 |
+
// to the high-water mark of the number of concurrently active threads that request
|
| 62 |
+
// handles for that device.
|
| 63 |
+
// When threads terminate, they release their handles back into the pool for reuse.
|
| 64 |
+
// Otherwise, new handles would be created every time new threads were spawned,
|
| 65 |
+
// resulting in poor performance for Python modules that repeatedly or frequently
|
| 66 |
+
// spawned new sets of threads (like DataParallel, which creates a new set of threads
|
| 67 |
+
// for each forward pass).
|
| 68 |
+
//
|
| 69 |
+
// To prevent potential deadlocks, we explicitly choose not to cap the number
|
| 70 |
+
// of handles that are created per device.
|
| 71 |
+
// Example of danger: If we cap the max handles at 4, and 5 threads are sharing a device,
|
| 72 |
+
// only 4 can make forward progress at any time. The other 4 will not release their
|
| 73 |
+
// handles until they exit, so the fifth cannot make progress until then. This is
|
| 74 |
+
// not a problem...UNLESS all 5 threads attempt some sort of synchronization at an
|
| 75 |
+
// intermediate point (ie, before any of them have exited). We have no way to anticipate
|
| 76 |
+
// or enforce that user threads will not attempt such intermediate synchronization.
|
| 77 |
+
// The only way to ensure safety is to avoid imposing a cap on the number of handles.
|
| 78 |
+
std::unordered_map<int, std::vector<Handle>> created_handles;
|
| 79 |
+
std::unordered_map<int, std::vector<Handle_t>> available_handles;
|
| 80 |
+
|
| 81 |
+
// PoolWindow lazily creates and caches the handles that a particular thread is using,
|
| 82 |
+
// so in the common case handle access doesn't incur either handle creation or a mutex lock.
|
| 83 |
+
class PoolWindow
|
| 84 |
+
{
|
| 85 |
+
public:
|
| 86 |
+
PoolWindow(std::shared_ptr<DeviceThreadHandlePool> parent): weak_parent(std::move(parent)) {}
|
| 87 |
+
~PoolWindow(){ release(); }
|
| 88 |
+
|
| 89 |
+
Handle_t reserve(int device)
|
| 90 |
+
{
|
| 91 |
+
// If this thread already has a handle for this device, return it
|
| 92 |
+
if(my_handles.find(device) != my_handles.end())
|
| 93 |
+
return my_handles[device];
|
| 94 |
+
|
| 95 |
+
// otherwise, either grab a handle from the pool if one is available,
|
| 96 |
+
// or if not, create a new one.
|
| 97 |
+
auto parent = weak_parent.lock();
|
| 98 |
+
TORCH_CHECK(parent, "Cannot create handle during program termination");
|
| 99 |
+
std::lock_guard<std::mutex> guard(parent->mutex);
|
| 100 |
+
|
| 101 |
+
if(parent->available_handles[device].size() > 0)
|
| 102 |
+
{
|
| 103 |
+
my_handles[device] = parent->available_handles[device].back();
|
| 104 |
+
parent->available_handles[device].pop_back();
|
| 105 |
+
}
|
| 106 |
+
else
|
| 107 |
+
{
|
| 108 |
+
// In local testing, I do observe that emplace_back sometimes routes through temporaries
|
| 109 |
+
// that incur move-constructor and destructor calls. See comments in Handle above.
|
| 110 |
+
parent->created_handles[device].emplace_back(true /*create*/);
|
| 111 |
+
my_handles[device] = parent->created_handles[device].back().handle;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
return my_handles[device];
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
private:
|
| 118 |
+
// Stores the per-device handles currently owned by this thread
|
| 119 |
+
std::unordered_map<int, Handle_t> my_handles;
|
| 120 |
+
|
| 121 |
+
std::weak_ptr<DeviceThreadHandlePool> weak_parent;
|
| 122 |
+
|
| 123 |
+
// Called by the destructor. Releases this thread's handles back into the pool.
|
| 124 |
+
void release() {
|
| 125 |
+
if(my_handles.size() > 0) {
|
| 126 |
+
auto parent = weak_parent.lock();
|
| 127 |
+
if (!parent) {
|
| 128 |
+
// If this thread exits after atexit handlers have completed, the
|
| 129 |
+
// cuda context itself may be invalid, so we must leak the handles.
|
| 130 |
+
return;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
std::lock_guard<std::mutex> guard(parent->mutex);
|
| 134 |
+
for(auto d_h : my_handles)
|
| 135 |
+
parent->available_handles[d_h.first].push_back(d_h.second);
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
};
|
| 139 |
+
|
| 140 |
+
// Warning:
|
| 141 |
+
// If you want to change this function, be aware that this function will be called
|
| 142 |
+
// by multiple threads and there is no mutex guarding the call of this function, so
|
| 143 |
+
// make sure your implementation is thread-safe.
|
| 144 |
+
PoolWindow *newPoolWindow() {
|
| 145 |
+
// The returned pointer will be owned by a thread local variable
|
| 146 |
+
// so that different threads does not share the same PoolWindow.
|
| 147 |
+
return new PoolWindow(this->shared_from_this());
|
| 148 |
+
}
|
| 149 |
+
};
|
| 150 |
+
|
| 151 |
+
}} // namespace at::cuda::detail::<anonymous>
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/IndexUtils.cuh
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <ATen/core/TensorBase.h>
|
| 4 |
+
#include <ATen/cuda/detail/TensorInfo.cuh>
|
| 5 |
+
#include <ATen/native/CanUse32BitIndexMath.h>
|
| 6 |
+
|
| 7 |
+
namespace at::cuda::detail {
|
| 8 |
+
|
| 9 |
+
TORCH_CUDA_CU_API bool maybeOverlappingIndices(const at::TensorBase &t);
|
| 10 |
+
using at::native::canUse32BitIndexMath;
|
| 11 |
+
|
| 12 |
+
template <typename scalar, typename IndexType>
|
| 13 |
+
TensorInfo<scalar, IndexType>
|
| 14 |
+
getTensorInfo(const at::TensorBase &t) {
|
| 15 |
+
IndexType sz[MAX_TENSORINFO_DIMS];
|
| 16 |
+
IndexType st[MAX_TENSORINFO_DIMS];
|
| 17 |
+
|
| 18 |
+
int dims = t.dim();
|
| 19 |
+
for (int i = 0; i < dims; ++i) {
|
| 20 |
+
sz[i] = t.size(i);
|
| 21 |
+
st[i] = t.stride(i);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
scalar* data_ptr = nullptr;
|
| 25 |
+
|
| 26 |
+
if constexpr (std::is_const<scalar>::value) {
|
| 27 |
+
data_ptr = t.const_data_ptr<scalar>();
|
| 28 |
+
} else {
|
| 29 |
+
data_ptr = t.mutable_data_ptr<scalar>();
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
return TensorInfo<scalar, IndexType>(
|
| 33 |
+
data_ptr, dims, sz, st);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
} // namespace at::cuda::detail
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/IntegerDivider.cuh
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <assert.h>
|
| 4 |
+
#if defined(__CUDA_ARCH__) || defined(__HIP_DEVICE_COMPILE__)
|
| 5 |
+
#include <cuda_runtime.h>
|
| 6 |
+
#endif
|
| 7 |
+
|
| 8 |
+
namespace at::cuda::detail {
|
| 9 |
+
|
| 10 |
+
// A utility class to implement integer division by multiplication, given a fixed
|
| 11 |
+
// divisor.
|
| 12 |
+
//
|
| 13 |
+
// WARNING: The fast divider algorithm is only implemented for unsigned int;
|
| 14 |
+
// otherwise we default to plain integer division. For unsigned int,
|
| 15 |
+
// we further assume that the dividend is at most INT32_MAX. Thus,
|
| 16 |
+
// IntDivider must NOT be used for general integer division.
|
| 17 |
+
//
|
| 18 |
+
// This reduced range is enough for our purpose, and it allows us to
|
| 19 |
+
// slightly simplify the computation.
|
| 20 |
+
//
|
| 21 |
+
// (NOTE: Below, "2^k" denotes exponentiation, i.e., 1<<k.)
|
| 22 |
+
//
|
| 23 |
+
// For any N-bit unsigned integer d (> 0), we can find a "magic number" m (2^N
|
| 24 |
+
// <= m < 2^(N+1)) and shift s such that:
|
| 25 |
+
//
|
| 26 |
+
// \floor(n / d) = \floor((m * n) / 2^(N+s)).
|
| 27 |
+
//
|
| 28 |
+
// Given such m and s, the integer division can be then implemented as:
|
| 29 |
+
//
|
| 30 |
+
// let m' = m - 2^N // 0 <= m' < 2^N
|
| 31 |
+
//
|
| 32 |
+
// fast_integer_division(n):
|
| 33 |
+
// // Multiply two N-bit unsigned integers: the result is a 2N-bit unsigned
|
| 34 |
+
// // integer. Then take the higher N bits.
|
| 35 |
+
// t = (m' * n) >> N
|
| 36 |
+
//
|
| 37 |
+
// // Here we use the fact that n is less than 2^(N-1): otherwise the value
|
| 38 |
+
// // of (t + n) may not fit in an N-bit integer.
|
| 39 |
+
// return (t + n) >> s
|
| 40 |
+
//
|
| 41 |
+
// Finding such a magic number is surprisingly easy:
|
| 42 |
+
//
|
| 43 |
+
// s = \ceil(\log_2 d)
|
| 44 |
+
// m' = \floor(2^N * (2^s - d) / d) + 1 // Need 2N-bit integer arithmetic.
|
| 45 |
+
//
|
| 46 |
+
// See also:
|
| 47 |
+
// - Division by Invariant Integers Using Multiplication,
|
| 48 |
+
// Torbjörn Granlund and Peter L. Montgomery, 1994.
|
| 49 |
+
//
|
| 50 |
+
// - http://www.hackersdelight.org/magic.htm
|
| 51 |
+
//
|
| 52 |
+
// - http://ridiculousfish.com/blog/posts/labor-of-division-episode-i.html
|
| 53 |
+
|
| 54 |
+
// Result of div/mod operation stored together.
|
| 55 |
+
template <typename Value>
|
| 56 |
+
struct DivMod {
|
| 57 |
+
Value div, mod;
|
| 58 |
+
|
| 59 |
+
C10_HOST_DEVICE DivMod(Value div, Value mod) : div(div), mod(mod) { }
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
// Base case: we only have an implementation for uint32_t for now. For
|
| 63 |
+
// everything else, we use plain division.
|
| 64 |
+
template <typename Value>
|
| 65 |
+
struct IntDivider {
|
| 66 |
+
IntDivider() = default;
|
| 67 |
+
IntDivider(Value d) : divisor(d) { }
|
| 68 |
+
|
| 69 |
+
C10_HOST_DEVICE inline Value div(Value n) const { return n / divisor; }
|
| 70 |
+
C10_HOST_DEVICE inline Value mod(Value n) const { return n % divisor; }
|
| 71 |
+
C10_HOST_DEVICE inline DivMod<Value> divmod(Value n) const {
|
| 72 |
+
return DivMod<Value>(n / divisor, n % divisor);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
Value divisor;
|
| 76 |
+
};
|
| 77 |
+
|
| 78 |
+
// Implement fast integer division.
|
| 79 |
+
template <>
|
| 80 |
+
struct IntDivider<unsigned int> {
|
| 81 |
+
static_assert(sizeof(unsigned int) == 4, "Assumes 32-bit unsigned int.");
|
| 82 |
+
|
| 83 |
+
IntDivider() = default;
|
| 84 |
+
|
| 85 |
+
IntDivider(unsigned int d) : divisor(d) {
|
| 86 |
+
assert(divisor >= 1 && divisor <= INT32_MAX);
|
| 87 |
+
|
| 88 |
+
// TODO: gcc/clang has __builtin_clz() but it's not portable.
|
| 89 |
+
for (shift = 0; shift < 32; shift++) if ((1U << shift) >= divisor) break;
|
| 90 |
+
|
| 91 |
+
uint64_t one = 1;
|
| 92 |
+
uint64_t magic = ((one << 32) * ((one << shift) - divisor)) / divisor + 1;
|
| 93 |
+
m1 = magic;
|
| 94 |
+
assert(m1 > 0 && m1 == magic); // m1 must fit in 32 bits.
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
C10_HOST_DEVICE inline unsigned int div(unsigned int n) const {
|
| 98 |
+
#if defined(__CUDA_ARCH__) || defined(__HIP_DEVICE_COMPILE__)
|
| 99 |
+
// 't' is the higher 32-bits of unsigned 32-bit multiplication of 'n' and
|
| 100 |
+
// 'm1'.
|
| 101 |
+
unsigned int t = __umulhi(n, m1);
|
| 102 |
+
return (t + n) >> shift;
|
| 103 |
+
#else
|
| 104 |
+
// Using uint64_t so that the addition does not overflow.
|
| 105 |
+
uint64_t t = ((uint64_t) n * m1) >> 32;
|
| 106 |
+
return (t + n) >> shift;
|
| 107 |
+
#endif
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
C10_HOST_DEVICE inline unsigned int mod(unsigned int n) const {
|
| 111 |
+
return n - div(n) * divisor;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
C10_HOST_DEVICE inline DivMod<unsigned int> divmod(unsigned int n) const {
|
| 115 |
+
unsigned int q = div(n);
|
| 116 |
+
return DivMod<unsigned int>(q, n - q * divisor);
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
unsigned int divisor; // d above.
|
| 120 |
+
unsigned int m1; // Magic number: m' above.
|
| 121 |
+
unsigned int shift; // Shift amounts.
|
| 122 |
+
};
|
| 123 |
+
|
| 124 |
+
} // namespace at::cuda::detail
|
vllm/lib/python3.10/site-packages/torch/include/ATen/cuda/detail/KernelUtils.h
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <limits>
|
| 4 |
+
#include <c10/util/Exception.h>
|
| 5 |
+
|
| 6 |
+
namespace at::cuda::detail {
|
| 7 |
+
|
| 8 |
+
// CUDA: grid stride looping
|
| 9 |
+
//
|
| 10 |
+
// int64_t _i_n_d_e_x specifically prevents overflow in the loop increment.
|
| 11 |
+
// If input.numel() < INT_MAX, _i_n_d_e_x < INT_MAX, except after the final
|
| 12 |
+
// iteration of the loop where _i_n_d_e_x += blockDim.x * gridDim.x can be
|
| 13 |
+
// greater than INT_MAX. But in that case _i_n_d_e_x >= n, so there are no
|
| 14 |
+
// further iterations and the overflowed value in i=_i_n_d_e_x is not used.
|
| 15 |
+
#define CUDA_KERNEL_LOOP_TYPE(i, n, index_type) \
|
| 16 |
+
int64_t _i_n_d_e_x = blockIdx.x * blockDim.x + threadIdx.x; \
|
| 17 |
+
for (index_type i=_i_n_d_e_x; _i_n_d_e_x < (n); _i_n_d_e_x+=blockDim.x * gridDim.x, i=_i_n_d_e_x)
|
| 18 |
+
|
| 19 |
+
#define CUDA_KERNEL_LOOP(i, n) CUDA_KERNEL_LOOP_TYPE(i, n, int)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
// Use 1024 threads per block, which requires cuda sm_2x or above
|
| 23 |
+
constexpr int CUDA_NUM_THREADS = 1024;
|
| 24 |
+
|
| 25 |
+
// CUDA: number of blocks for threads.
|
| 26 |
+
inline int GET_BLOCKS(const int64_t N, const int64_t max_threads_per_block=CUDA_NUM_THREADS) {
|
| 27 |
+
TORCH_INTERNAL_ASSERT(N > 0, "CUDA kernel launch blocks must be positive, but got N=", N);
|
| 28 |
+
constexpr int64_t max_int = std::numeric_limits<int>::max();
|
| 29 |
+
|
| 30 |
+
// Round up division for positive number that cannot cause integer overflow
|
| 31 |
+
auto block_num = (N - 1) / max_threads_per_block + 1;
|
| 32 |
+
TORCH_INTERNAL_ASSERT(block_num <= max_int, "Can't schedule too many blocks on CUDA device");
|
| 33 |
+
|
| 34 |
+
return static_cast<int>(block_num);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
} // namespace at::cuda::detail
|