diff options
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 6 |
1 files changed, 6 insertions, 0 deletions
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] |