jolly-midnight-72759
08/20/2020, 4:21 AMpant3
) that sets PANTS_WORKDIR
to a different directory then the one in pants.ini
.jolly-midnight-72759
08/20/2020, 4:22 AMhundreds-father-404
08/20/2020, 4:51 AMShould I be able to updateYes, you certainly should be able to. This is buggy behavior. That workaround is not at all satisfying, but it sounds like itâll work for yâall for now? Trying to get to 1.30 sounds great. This type of thing shouldnât be an issue with the V2 engine, and generally the Python support is much betterwithout having to change theinterpreter_constraints
pants_workdir?
happy-kitchen-89482
08/20/2020, 4:32 PM!!
route, does that mean "don't bring in this dep through this target"? Or "don't bring in this dep through any target'? Maybe the !!
has to be on python_binary
or other root targets, and it means "strip this dep from the transitive closure when computed on (but not through) this target"?hundreds-father-404
08/20/2020, 4:38 PMpython_tests
or python_binary
target, outside of convention. The best thing I could think of to try our best to enforce that !!
is only used on roots is to have plugin authors express if itâs supported in the Target API. When defining a Dependencies field for their target type, they could set a class property `supports_transitive_excludes = True`:
class PythonBinaryDependencies(Dependencies):
supports_transitive_excludes = True
If this is set to the default of False
, then weâll error if any values in the dependencies
field start with !!
.hundreds-father-404
08/20/2020, 5:18 PMbinary
than I hoped. And we think other users indeed may find this useful.
@clean-night-52582 if you have a moment, could you please ack if https://github.com/pantsbuild/pants/issues/10661#issuecomment-677793120 sounds on the right track?wooden-thailand-8386
08/20/2020, 6:49 PMpants
so I was wondering whatâs the ârecommendedâ way of doing a build docker image process.
Right now I have my CI set to lint
and test
using the --changed-since
flag and it works great. Now Iâm adding the bundle
step and that will generate the .tar.gz
files that will then be added to a docker image.
Iâm wondering how I can âknowâ what dockerfiles should be built based on the projects that were actually bundled during the bundle
step, I can probably do a bash script that gets the output from dist
folder but is that what I should be doing or pants have some cool feature to trigger commands/scripts that Iâm missing?clean-night-52582
08/20/2020, 7:18 PMhundreds-father-404
08/20/2020, 7:18 PMclean-night-52582
08/20/2020, 10:29 PMplain-river-51682
08/20/2020, 10:45 PMplain-river-51682
08/20/2020, 10:45 PMwooden-thailand-8386
08/20/2020, 10:48 PMwooden-thailand-8386
08/20/2020, 10:48 PMhundreds-father-404
08/21/2020, 12:06 AMhundreds-father-404
08/21/2020, 12:17 AMfiles()
target instead. Theyâre really similar, except a files()
target wonât be included in things like binary
and it wonât have its âsource rootâ stripped. Itâs designed for arbitrary loose files.
Also welcome! What languages are you using with Pants? And what version are you on? Let us know if you have any feedback or we can help with anything!full-oyster-41619
08/21/2020, 9:56 AM./pants list ::
based on target type? For example, I want to get only the python libraries using something like ./pants list --type=python_library ::
. The only thing I could only find in the docs was something like this:
# find external dependecies
./pants dependencies --type=3rdparty <lib-target>
full-oyster-41619
08/21/2020, 10:25 AM./pants list :: | xargs ./pants filter --filter-target-type=python_library
although this does not work for 3rdparty dependenciesfull-oyster-41619
08/21/2020, 10:47 AMhappy-kitchen-89482
08/21/2020, 1:17 PM./pants filter --filter-target-type=python_library ::
happy-kitchen-89482
08/21/2020, 1:17 PM./pants filter --filter-target-type=python_requirement_library ::
wooden-thailand-8386
08/21/2020, 1:25 PMhundreds-father-404
08/21/2020, 4:47 PMfilter
- my bad!full-oyster-41619
08/21/2020, 6:50 PMhundreds-father-404
08/21/2020, 6:51 PM./pants filter --target-type=python_requirement_library ::
, rather than ./pants filter --filter-target-type=python_requirement_library ::
. Theyâre different ways of typing the same thingjolly-midnight-72759
08/24/2020, 4:21 AMlocal_artifact_cache
configuration setting. The only mention I see of it is from 2014 on the dev mailing list. It looks like it is still in the code. In 1.18 we configured it under the [DEFAULT]
section. Is there a single place that DEFAULT and GENERAL settings get defined in the code? I'm trying to learn how to figure out some of these config settings on my own, but having trouble.full-oyster-41619
08/24/2020, 9:12 AM./pants setup-py my_lib -- sdist
pipenv run twine upload dist/*
and I would like something like
./pants setup-py my_lib -- sdist
./pants twine upload dist/*
# or
./pants run twine upload dist/*
eager-librarian-15922
08/24/2020, 1:16 PMhappy-kitchen-89482
08/24/2020, 5:34 PMjolly-midnight-72759
08/24/2020, 8:30 PM