You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and running ./pants package src/mylib:awslambda, the resulting package still includes someotherlib (most likely because somelib needs it in its own requirements.txt, and pants does not look like it's aware of that.).
For my use case, I'm trying to use an external library which makes use of boto3 and botocore: aws-secretsmanager-caching, and I need the lambda package to not contain the boto3and botocorepackages, because they take too much space in the lambda package and the lambda runtime already includes them out of the box.
The current workaround I have is to clone the aws-secretsmanager-cachinglibrary, convert it to a pants accepted build folder using BUILD files, and then the exclude works as expected, however this is not ideal since it copies source code from another library into my project.
Any better way to do this ? Is this a feature that's supposed to be supported by pants ? Thanks for your feedback.
The text was updated successfully, but these errors were encountered:
Transitive dependency excludes do not work for packages defined in external librarie's
requirements.txt
Given this in
3rdparty/python/BUILD
:where
somelib
'srequirements.txt
includessomeotherlib
as a requirement, i.e.:requirements.txt
of somelib:and this in
src/mylib/BUILD
and running
./pants package src/mylib:awslambda
, the resulting package still includessomeotherlib
(most likely becausesomelib
needs it in its ownrequirements.txt
, andpants
does not look like it's aware of that.).For my use case, I'm trying to use an external library which makes use of
boto3
andbotocore
:aws-secretsmanager-caching
, and I need the lambda package to not contain theboto3
andbotocore
packages, because they take too much space in the lambda package and the lambda runtime already includes them out of the box.The current workaround I have is to clone the
aws-secretsmanager-caching
library, convert it to a pants accepted build folder using BUILD files, and then the exclude works as expected, however this is not ideal since it copies source code from another library into my project.Any better way to do this ? Is this a feature that's supposed to be supported by pants ? Thanks for your feedback.
The text was updated successfully, but these errors were encountered: