happy-kitchen-89482
04/01/2020, 5:38 PM--level=debug
(or -ldebug
) to pants it passes that through to pex? Which version of Pants are you using?calm-balloon-91412
04/01/2020, 6:20 PMwitty-crayon-22786
04/01/2020, 6:26 PMwitty-crayon-22786
04/01/2020, 6:26 PMcalm-balloon-91412
04/01/2020, 6:30 PMhundreds-father-404
04/01/2020, 6:37 PMcalm-balloon-91412
04/01/2020, 9:29 PMhappy-kitchen-89482
04/02/2020, 7:24 PMhundreds-father-404
04/02/2020, 7:26 PM./pants test project/test_foo.py
, we will only test that file and nothing else
* smarter caching
* less verbose output
* avoids irrelevant work that V1 does - should be faster
* works more ergonomically with custom target types
* better support for Python interpreter constraints; if one test uses Py2 and another uses Py3, you can still run them in the same Pants run, unlike with V1average-vr-56795
04/03/2020, 5:46 PMfew-alarm-32433
04/04/2020, 9:36 PM17:34:25 00:01 [pyprep]
17:34:25 00:01 [interpreter]
17:34:26 00:02 [cache]
No cached artifacts for 6 targets.
Invalidated 6 targets.
17:34:26 00:02 [build-local-dists]
17:34:26 00:02 [requirements]
17:34:27 00:03 [cache]
No cached artifacts for 10 targets.
Invalidated 10 targets.
17:34:35 00:11 [sources]
17:34:35 00:11 [cache]
No cached artifacts for 6 targets.
Invalidated 6 targets.
17:34:36 00:12 [binary]
17:34:36 00:12 [binary-jvm-prep-command]
17:34:36 00:12 [jvm_prep_command]
17:34:36 00:12 [binary-prep-command]
17:34:36 00:12 [py]
17:34:37 00:13 [cache].
Using cached artifacts for 1 target.
created pex dist/load_tester.pex
17:34:48 00:24 [py-wheels]
17:34:48 00:24 [jvm]
17:34:48 00:24 [dup]
Waiting for background workers to finish.
17:34:48 00:24 [complete]
SUCCESS
wonderful-iron-54019
04/07/2020, 1:54 PMdocker_image
build target?hundreds-father-404
04/07/2020, 4:19 PMbulky-evening-62934
04/08/2020, 8:37 AM./pants --source-source-root-patterns='["srctest/*"]' binary srctest/python/app/hello
But I cannot set this options in pants.toml
,
[source]
source_root_patterns = [
"srctest/*"
]
the code above doesn’t work, does anyone know how to set it correctly ?bulky-evening-62934
04/08/2020, 5:23 PMpython_binary(
name='demo',
dependencies=[
'3rdparty/python:tensorflow',
],
platforms=[
'current',
],
source='main.py'
)
My current
platforms is macos, but I want to build a pex file also works on linux (ubuntu), I tried several possible values for platform but None of them work
Any idea about setting a proper platform value here ?bulky-evening-62934
04/09/2020, 2:14 PM/tmp
to do the job, but I don’t have enough space for /tmp
, which option can point it to another directory ?wonderful-iron-54019
04/09/2020, 3:10 PMpants test
my [python-repos] indexes;
settings as it cant seem to find a privately published dependency i cannot find anything related to this in the release notes. Any advice?aloof-angle-91616
04/10/2020, 12:02 AMwonderful-iron-54019
04/10/2020, 3:47 PMTaskRegistrar(name="build-my-artifact", action=BuildArtifact).install()
and then also add it to a registered goal
Goal.register(name="build")
TaskRegistrar(name="build-my-artifact", action=BuildArtifact).install("build")
wonderful-iron-54019
04/10/2020, 3:47 PMwonderful-iron-54019
04/10/2020, 3:50 PMwonderful-iron-54019
04/10/2020, 3:50 PMaloof-angle-91616
04/11/2020, 5:54 AMfancy-queen-20734
04/14/2020, 7:51 PMAll done! :sparkles: :cake: :sparkles:
N files would be left unchanged.
fancy-queen-20734
04/14/2020, 7:51 PMhundreds-father-404
04/14/2020, 7:55 PM--no-fmt-per-target-caching
so that you run everything in one single run and never have more than 3 lines of outputwitty-crayon-22786
04/14/2020, 8:01 PMfancy-queen-20734
04/14/2020, 8:01 PMfancy-queen-20734
04/14/2020, 8:02 PMhundreds-father-404
04/14/2020, 8:04 PM--lint-per-target-caching
there because we have remote caching so it results in much better performance. A followup project I have is to get the best of both --no-lint-per-target-caching
(generally faster perf due to the very high overhead of linters + less verbose output)and --lint-per-target-caching
(fine-grained caching)