Skip to content

Commit fcc4f92

Browse files
committed
chore: some more cleanup of the vendor script
Signed-off-by: Oz Tiram <[email protected]>
1 parent a5cabf5 commit fcc4f92

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

tasks/vendoring/__init__.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,14 @@
2020
TASK_NAME = "update"
2121

2222
LIBRARY_DIRNAMES = {
23-
"requirements-parser": "requirements",
24-
"backports.shutil_get_terminal_size": "backports/shutil_get_terminal_size",
2523
"python-dotenv": "dotenv",
2624
"setuptools": "pkg_resources",
27-
"msgpack-python": "msgpack",
2825
}
2926

3027
# from time to time, remove the no longer needed ones
3128
HARDCODED_LICENSE_URLS = {
32-
"cursor": "https://raw.githubusercontent.com/GijsTimmers/cursor/master/LICENSE",
33-
"CacheControl": "https://raw.githubusercontent.com/ionrock/cachecontrol/master/LICENSE.txt",
3429
"click-didyoumean": "https://raw.githubusercontent.com/click-contrib/click-didyoumean/master/LICENSE",
3530
"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",
4031
"pythonfinder": "https://raw.githubusercontent.com/techalchemy/pythonfinder/master/LICENSE.txt",
4132
"pipdeptree": "https://raw.githubusercontent.com/tox-dev/pipdeptree/main/LICENSE",
4233
}
@@ -48,8 +39,6 @@
4839
"__init__.py",
4940
"README.rst",
5041
"README.md",
51-
"safety.zip",
52-
"cacert.pem",
5342
"vendor_pip.txt",
5443
)
5544

@@ -296,16 +285,6 @@ def post_install_cleanup(ctx, vendor_dir):
296285
remove_all(vendor_dir.glob("*.dist-info"))
297286
remove_all(vendor_dir.glob("*.egg-info"))
298287

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-
309288
remove_all(
310289
(
311290
vendor_dir / "dotenv" / "cli.py",
@@ -371,13 +350,6 @@ def vendor(ctx, vendor_dir, package=None, rewrite=True):
371350
rewrite_file_imports(item, vendored_libs)
372351
if not package:
373352
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"))
381353

382354

383355
@invoke.task

0 commit comments

Comments
 (0)