polite-garden-50641
03/25/2020, 10:20 PMfancy-queen-20734
03/26/2020, 1:42 AMfancy-queen-20734
03/26/2020, 1:53 AMdamp-easter-17791
03/26/2020, 9:22 AM/usr/bin/python3.6: can't open file '/home/runner/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-16.4.3/virtualenv.py': [Errno 2] No such file or directory
Any idea what might cause this issue? I think it was working OK a week agofast-forest-19506
03/27/2020, 7:04 PMPackage SourcePackage(u'file:///Users/<name>/.cache/pants/python_cache/requirements/CPython-2.7.16/configparser-5.0.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
Any idea for any actions I can do to patch this? Thanks ahead of time for any help!!fancy-queen-20734
03/27/2020, 7:47 PMBlockJUnit4ClassRunnerWithRetry
that explains some weird behavior Ive been frustrated withcalm-artist-46894
03/30/2020, 6:29 AMpants_version = "1.27.0.dev1"
With V2 engine, is there a way to config my pants.toml so that it will default ipython
instead of python
for Python repl
?
Also, I saw that there was a lot discussion about having a single repl
goal V.S. one goal per implementation. However, with the version I am having right now, I still only see a single repl
goal from ./pants gals
. Is this settled? Or still subject to change.bland-horse-61839
03/30/2020, 11:17 AMpytest.ini
to my test folder. When I run pants test
i get an error from pytest: "ERROR: not found <path to pytest.ini> (no name <path to pytest.ini> in any of [])"bland-horse-61839
03/30/2020, 11:18 AMbland-horse-61839
03/30/2020, 11:19 AMpython_tests(
name="my-tests",
sources=["a/b/tests/*"],
dependencies=[":lib"]
)
bland-horse-61839
03/30/2020, 11:20 AMpytest.ini
is located in "a/b/tests/pytest.ini"calm-artist-46894
03/30/2020, 4:52 PMpants_version = "1.27.0.dev1"
default zip_safe
to true
for python_binary? (Used to be false
for earlier version).
Is it configurable for a given target? Or a global overwrite in pants.toml
?jolly-doctor-21349
03/30/2020, 5:35 PMpants_version
, migrated my pants.ini to pants.toml. Now none of my custom plugins are workingjolly-doctor-21349
03/30/2020, 5:35 PMname 'docker_python_image' is not defined
, where docker_python_image is supplied by a pants pluginwitty-crayon-22786
03/30/2020, 5:36 PMjolly-doctor-21349
03/30/2020, 5:36 PMjolly-doctor-21349
03/30/2020, 5:36 PMlively-france-2777
03/31/2020, 9:28 AMpants.toml
lively-france-2777
03/31/2020, 9:29 AMhundreds-father-404
03/31/2020, 3:13 PMpants.toml
migration! Thank you for reporting it.
My first instinct would be if you are using string interpolation like %(my_interpolated_string)s
, perhaps? TOML is supposed to work with that, but perhaps there is an edge case we missed.hundreds-father-404
03/31/2020, 3:15 PMpants.toml
in 1.25.0 or 1.26.0? pants.toml
only works from 1.26.0+jolly-doctor-21349
03/31/2020, 3:16 PMbackend_packages: [ 'package1', 'package2' ]
, didn't look right, moved it to backend_packages = [...]
that didn't help though
I was testing it in pants 1.24 and 1.25jolly-doctor-21349
03/31/2020, 3:17 PMjolly-doctor-21349
03/31/2020, 3:17 PMhundreds-father-404
03/31/2020, 3:17 PMhundreds-father-404
03/31/2020, 3:18 PMbut basically what you are saying is I was running without a pants configuration and that is why I got no backend packages 🙂Exactly what the issue is. Pants won’t complain about
pants.toml
in 1.25.0 because it’s just another random file in your repository. Whereas in 1.26.0, Pants knows how to read it.jolly-doctor-21349
03/31/2020, 3:21 PMhundreds-father-404
03/31/2020, 3:23 PMpants.toml
in 1.26 - while it’s not required, we’ve found it makes several improvements and removes a lot of gotchas that even us Pants developers would get caught by. Thanks for reporting this and I’m glad we got it working!red-balloon-89377
04/01/2020, 4:27 PMif isinstance(current_target, JvmTarget):
# Some code...
if isinstance(current_target, RuntimePlatformMixin):
info["runtime_platform"] = current_target.runtime_platform.name
In CI, mypy complains that:
src/python/pants/backend/project_info/tasks/export_dep_as_jar.py: note: In member "_process_target" of class "ExportDepAsJar":
src/python/pants/backend/project_info/tasks/export_dep_as_jar.py:319:17: error:
Statement is unreachable [misc]
info["runtime_platform"] = current_target.runtime_plat...
^
Which is apparently a thing in the presence of multiple inheritance https://github.com/python/mypy/issues/3603
Is it okay to skip typechecking in this line, with a reference to the issue (or one of the follow ups, since that one is closed)? cc\ @hundreds-father-404calm-balloon-91412
04/01/2020, 5:05 PM