|
20 | 20 | TASK_NAME = "update" |
21 | 21 |
|
22 | 22 | LIBRARY_DIRNAMES = { |
23 | | - "requirements-parser": "requirements", |
24 | | - "backports.shutil_get_terminal_size": "backports/shutil_get_terminal_size", |
25 | 23 | "python-dotenv": "dotenv", |
26 | 24 | "setuptools": "pkg_resources", |
27 | | - "msgpack-python": "msgpack", |
28 | 25 | } |
29 | 26 |
|
30 | 27 | # from time to time, remove the no longer needed ones |
31 | 28 | HARDCODED_LICENSE_URLS = { |
32 | | - "cursor": "https://raw.githubusercontent.com/GijsTimmers/cursor/master/LICENSE", |
33 | | - "CacheControl": "https://raw.githubusercontent.com/ionrock/cachecontrol/master/LICENSE.txt", |
34 | 29 | "click-didyoumean": "https://raw.githubusercontent.com/click-contrib/click-didyoumean/master/LICENSE", |
35 | 30 | "click-completion": "https://raw.githubusercontent.com/click-contrib/click-completion/master/LICENSE", |
36 | | - "pytoml": "https://github.com/avakar/pytoml/raw/master/LICENSE", |
37 | | - "webencodings": "https://github.com/SimonSapin/python-webencodings/raw/" |
38 | | - "master/LICENSE", |
39 | | - "distlib": "https://github.com/vsajip/distlib/raw/master/LICENSE.txt", |
40 | 31 | "pythonfinder": "https://raw.githubusercontent.com/techalchemy/pythonfinder/master/LICENSE.txt", |
41 | 32 | "pipdeptree": "https://raw.githubusercontent.com/tox-dev/pipdeptree/main/LICENSE", |
42 | 33 | } |
|
48 | 39 | "__init__.py", |
49 | 40 | "README.rst", |
50 | 41 | "README.md", |
51 | | - "safety.zip", |
52 | | - "cacert.pem", |
53 | 42 | "vendor_pip.txt", |
54 | 43 | ) |
55 | 44 |
|
@@ -296,16 +285,6 @@ def post_install_cleanup(ctx, vendor_dir): |
296 | 285 | remove_all(vendor_dir.glob("*.dist-info")) |
297 | 286 | remove_all(vendor_dir.glob("*.egg-info")) |
298 | 287 |
|
299 | | - # Cleanup setuptools unneeded parts |
300 | | - drop_dir(vendor_dir / "bin") |
301 | | - drop_dir(vendor_dir / "tests") |
302 | | - drop_dir(vendor_dir / "shutil_backports") |
303 | | - drop_dir(vendor_dir / "cerberus" / "tests") |
304 | | - drop_dir(vendor_dir / "cerberus" / "benchmarks") |
305 | | - drop_dir(vendor_dir / "colorama" / "tests") |
306 | | - |
307 | | - remove_all(vendor_dir.glob("toml.py")) |
308 | | - |
309 | 288 | remove_all( |
310 | 289 | ( |
311 | 290 | vendor_dir / "dotenv" / "cli.py", |
@@ -371,13 +350,6 @@ def vendor(ctx, vendor_dir, package=None, rewrite=True): |
371 | 350 | rewrite_file_imports(item, vendored_libs) |
372 | 351 | if not package: |
373 | 352 | apply_patches(ctx, patched=is_patched, pre=False) |
374 | | - if is_patched: |
375 | | - piptools_vendor = vendor_dir / "piptools" / "_vendored" |
376 | | - if piptools_vendor.exists(): |
377 | | - drop_dir(piptools_vendor) |
378 | | - msgpack = vendor_dir / "pip" / "_vendor" / "msgpack" |
379 | | - if msgpack.exists(): |
380 | | - remove_all(msgpack.glob("*.so")) |
381 | 353 |
|
382 | 354 |
|
383 | 355 | @invoke.task |
|
0 commit comments