From 7510fb04b6d12487a7de2d49cad8cb29366a6ae2 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 5 Nov 2021 12:44:54 +0000 Subject: Vendor rich and required dependencies (pygments, typing_extensions) This will enable building upon these libraries, to improve the presentation style and output. --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 53343bfce..f14f34250 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ substitute = [ # pkg_resource's vendored packages are directly vendored in pip. { match='pkg_resources\.extern', replace="pip._vendor" }, { match='from \.extern', replace="from pip._vendor" }, + { match='''\('pygments\.lexers\.''', replace="('pip._vendor.pygments.lexer." }, ] drop = [ # contains unnecessary scripts @@ -50,6 +51,11 @@ drop = [ "setuptools", "pkg_resources/_vendor/", "pkg_resources/extern/", + # trim vendored pygments styles and lexers + "pygments/styles/[!_]*.py", + '^pygments/lexers/(?!python|__init__|_mapping).*\.py$', + # trim rich's markdown support + "rich/markdown.py", ] [tool.vendoring.typing-stubs] -- cgit v1.2.1