curved-television-6568
06/21/2022, 5:20 PMbitter-ability-32190
06/21/2022, 5:21 PMcurved-television-6568
06/21/2022, 5:22 PMbitter-ability-32190
06/21/2022, 5:23 PMcurved-television-6568
06/21/2022, 5:23 PMbitter-ability-32190
06/21/2022, 5:23 PMcurved-television-6568
06/21/2022, 5:24 PMcurved-television-6568
06/21/2022, 5:24 PM./pants version
can take well over a minute… 😉proud-dentist-22844
06/21/2022, 5:31 PMpython_distribution
targets. Can I use relocated_files
(maybe one per python_distribution
target) to do that? Or will relocated_files
move the file no matter where it is used (so only one relocated_files
target per file)?curved-television-6568
06/21/2022, 5:39 PMcurved-television-6568
06/21/2022, 5:40 PM"ibm-{target_repository}"
curved-television-6568
06/21/2022, 5:41 PMbitter-ability-32190
06/21/2022, 5:43 PMproud-dentist-22844
06/21/2022, 6:56 PM--builtins
for all the registered targets when linting pants-plugins/macros.py
?
pants-plugins/macros.py:20:26: F821 undefined name 'python_artifact'
pants-plugins/macros.py:34:5: F821 undefined name 'python_distribution'
pants-plugins/macros.py:45:26: F821 undefined name 'python_artifact'
pants-plugins/macros.py:71:5: F821 undefined name 'python_distribution'
pants-plugins/macros.py:81:5: F821 undefined name 'shell_sources'
pants-plugins/macros.py:86:5: F821 undefined name 'resources'
^^ that's annoying 😛proud-appointment-36730
06/21/2022, 9:31 PM.whl
file from a python_distribution
target into the build context for a docker_image
target? Or is this an anti-pattern? Works great for pex_binary
, but there is no output_path
argument for a python_distribution
. And how do I also enforce a dependency on a python_distribution
target in my docker_image
target?bitter-ability-32190
06/21/2022, 10:18 PMbitter-ability-32190
06/21/2022, 10:19 PMhappy-kitchen-89482
06/21/2022, 10:23 PMdocker_image
build context. No, @curved-television-6568? The problem might be knowing what exact path it's at.bitter-ability-32190
06/21/2022, 10:38 PMproud-appointment-36730
06/21/2022, 10:40 PMarchive
target that assembled the wheels built from all the python_distribution
targets I'm interesting in. archive
targets are available in the build context, so I just copy that into the image, unpack it, and install all the wheels it containsproud-appointment-36730
06/21/2022, 10:43 PMarchive(
name="web-tarball",
packages=[
"src/python/org/services/silly_web_backend:silly_web_backend-dist",
"src/python:org-libs"
],
format="tar.gz"
)
docker_image(
name="web_backend",
dependencies=[
":msg",
":web-tarball",
":image_scripts"
]
)
Which means you have access to <http://path.to|path.to>.docker.target/web-tarball.tar.gz
in the build contextcold-soccer-63228
06/22/2022, 2:37 AMprehistoric-rainbow-54138
06/22/2022, 9:29 AMthousands-plumber-33255
06/22/2022, 9:35 AM./pants run
the command is watching the filesystem and restarts. Is there something similiar for ./pants test
? I know this from https://nx.dev/packages/jest/executors/jest#watch where you can enter watch mode with yarn test myapp --watch
and then select a test based on a test name regex pattern (see attached screenshot). Is something like this available? If no watch mode is available, can I filter for a regex name and then select from a list of matches?abundant-hospital-56388
06/22/2022, 3:23 PMproud-dentist-22844
06/22/2022, 3:59 PMproud-dentist-22844
06/22/2022, 4:30 PM*.swp
to [GLOBAL].pants_ignore
but that didn't seem to do anything. If I don't want to interrupt pants' process, then I make sure not to save until it's done. But, I can only do that if I opened the file before pants started.bitter-ability-32190
06/22/2022, 6:34 PM.add
at multiple config values overriding each other, but can't find it 😕
E.g. pants.toml - [GLOBAL].pants_ignore.add = [...]
And .pants.rc - [GLOBAL].pants_ignore.add = [...]
the second case overwrites the first 😕fresh-cat-90827
06/22/2022, 6:41 PMproud-appointment-36730
06/22/2022, 7:11 PMBUILD
files? For context, looking to configure the repositories
field of a python_distribution