cold-journalist-66984
01/22/2020, 5:26 PM[pytest]
pytest_plugins: +["zipp==1.0.0"]
I see this error
17:18:53 [ERROR] Invalid option 'pytest_plugins' under [pytest]
What is the right way to pin zipp for pants 1.16?fancy-queen-20734
01/22/2020, 6:12 PMcalm-artist-46894
01/23/2020, 5:38 AM--build-file-imports
is warn
, what’s the reason to discourage using import in BUILD file?
If I need read the environment variable (e.g. the git branch) and do different things based on if the branch is master. Something like:
def get_version(version):
import os
release = os.getenv("CIRCLE_BRANCH") == "master"
if not release:
version += ".dev"
return version
What is the recommended alternative?happy-journalist-13561
01/23/2020, 2:34 PMPants 1.16.0
. What has worked was bumping the cache_key_gen_version
which will rebuild the entire JAR with new artifacts; however, the expected behavior is that I can reuse the cached artifact and any changes should only override the affected artifacts.fancy-queen-20734
01/23/2020, 6:41 PMwitty-crayon-22786
01/23/2020, 6:44 PMwitty-crayon-22786
01/23/2020, 6:45 PMearly-needle-54791
01/24/2020, 8:48 PMcalm-balloon-91412
01/26/2020, 9:28 PMdry-analyst-73584
01/29/2020, 1:12 AMaloof-angle-91616
01/29/2020, 7:07 AMerrutil.py
would ever make sense for pants. https://github.com/pantsbuild/pants/issues/9033wonderful-iron-54019
01/29/2020, 1:43 PMFAILURE: Owners for Resources(BuildFileAddress(src/adobe_mta/BUILD, config)) are ambiguous. Found DatabricksJob(BuildFileAddress(src/adobe_mta/BUILD, job)) and 1 others: [PythonLibrary(BuildFileAddress(src/adobe_mta/BUILD, lib))]
Any advice?little-salesmen-78240
01/30/2020, 9:37 AMlittle-salesmen-78240
01/30/2020, 9:37 AMlittle-salesmen-78240
01/30/2020, 9:39 AMlittle-salesmen-78240
01/30/2020, 9:39 AM/{fingerprint1}/{target-name}/{fingerprint2}-ResolvedJarAwareFingerprintStrategy.{fingerprint3}_{fingerprint4}.tgz
little-salesmen-78240
01/30/2020, 9:40 AMlittle-salesmen-78240
01/30/2020, 4:44 PMlittle-salesmen-78240
01/30/2020, 4:45 PMhundreds-father-404
01/30/2020, 4:46 PMlittle-salesmen-78240
01/30/2020, 4:47 PMhundreds-father-404
01/30/2020, 4:50 PM--filedeps-absolute
unfortunately wouldn’t help because that only impacts the output of ./pants filedeps
aloof-angle-91616
01/30/2020, 4:51 PMIs it possible to avoid this constraint?absolutely! and we are actually planning to phase out v1
./pants filedeps
in favor of a faster version at some point, which is currently available with ./pants fast-filedeps
hundreds-father-404
01/30/2020, 4:52 PMabsolutely! and we are actually planning to phase out v1 ./pants filedeps in favor of a faster version at some point, which is currently available with ./pants fast-filedepsI don’t think Serge is asking about changing how
filedeps
behaves. Rather, he wants to change how cache fingerprinting works in general and was looking at --filedeps-absolute
as a possible solution that ended up being irrelevantlittle-salesmen-78240
01/30/2020, 4:55 PMlittle-salesmen-78240
01/30/2020, 4:56 PMaloof-angle-91616
02/04/2020, 3:58 AMTarget
doesn't accept the sources
kwarg, when it assumes that the payload
will always have a 'sources'
field? I know that i see every target i've ever seen always creates a payload and adds the appropriate sources -- is there a reason we can't have Target
do that in its ctor?chilly-carpet-91912
02/04/2020, 12:52 PMException message: Could not satisfy all requirements for Markdown==2.1.1:
Markdown==2.1.1(from: pantsbuild.pants==1.23.0), markdown>=2.6.8(from: tensorflow==1.12.0->tensorboard<1.13.0,>=1.12.0)
I'm out of ideashundreds-breakfast-49010
02/04/2020, 9:29 PM./pants repl <python_target>
to populate the repl's namespace with symbols define in the specified target?calm-artist-46894
02/05/2020, 6:24 PMpex 2.x
for pantsbuild?
There are more and more libraries dropping python2 support for their latest version and pants will resolve to the latest version for many transitive dependencies (which is not pinned in BUILD) even for python2 target, then we get errors like:
Exception message: Package SourcePackage('file:///home/bpierce/github.robot.car/cruise/ark/.pants.d/python-setup/resolved_requirements/CPython-2.7.17/grpcio-1.27.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
We can pin the transitive dependencies in our BUILD file to workaround the issue for now.