witty-crayon-22786
11/12/2021, 5:22 PMnice-florist-55958
11/12/2021, 6:01 PMwitty-crayon-22786
11/12/2021, 6:15 PM--no-dynamic-ui
, but i’ll open an issue about that. EDIT: https://github.com/pantsbuild/pants/issues/13595loud-laptop-17949
11/12/2021, 7:38 PMdocker buildx
to build both x86 and arm containers and wondering if we can get this working with pants.nice-florist-55958
11/12/2021, 8:09 PMcreamy-airplane-38079
11/12/2021, 9:33 PM./pants --changed-parent=origin/main list
in the directory I have defined my sentinal/root files but I am getting an error
Globs may not traverse outside of the buildroot: "../../BUILD"
as there is indeed a BUILD file in that location, but in the interim I would like for my pants environment to ignore any target outside of my current directory and only ack child targets. Is there some toml file tweak that I can do to let pants ignore anything outside of my current directory ? I tried adding ../../BUILD*
to pants_ignore
but no luckloud-laptop-17949
11/12/2021, 11:04 PMos.uname()
–
def _syscmd_uname(option, default=''):
""" Interface to the system's uname command.
"""
if sys.platform in ('dos', 'win32', 'win16'):
# XXX Others too ?
return default
try:
f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
except (AttributeError, OSError):
return default
> output = f.read().strip()
E ValueError: I/O operation on closed file.
/Users/ryan.king/.asdf/installs/python/3.6.15/lib/python3.6/platform.py:791: ValueError
This code works fine outside pants and I don't know what about it would fail in the pants env.nice-florist-55958
11/13/2021, 12:16 AMnarrow-vegetable-37489
11/13/2021, 12:18 AMnice-florist-55958
11/13/2021, 12:33 AMnice-florist-55958
11/13/2021, 12:44 AM./src/casper/<pkg, mod, etc.>
structure and "src/"
pattern for root. When using ./pants run <target>
located in ./src/casper/pkg/subpkg
, I get an module not found error on import casper.pkg.subpkg
I would have assumed Pants would place ./src
in the PYTHONPATH
(or perhaps install the package in the hermetic env to make it self-importable)? I don't know if it makes a difference, but the import was in __init__.py
of pkg
. The second issue is that when I make any changes to the offending file, it seems Pants does not pick those changes up -- build and run goals keep using the same depended on file.fresh-cat-90827
11/13/2021, 5:54 AM2.6.1
to 2.8.0rc5
, on the packaging step, the Linux CI fails with an error message. It looks like Pex now requires all dependencies, transitively, to be present as wheels (--only-binary :all:
argument to the pex
command). It works fine to produce necessary .pex
packages with 2.6.1
atm even though some transitive dependencies are available only as sdist
on the PyPI. I know Pex wouldn’t get the sdist
for multiplatform packages, but the package in question is only for a single platform (linux_x86_64-cp-38-cp38
). @enough-analyst-54434 is this intended?happy-pizza-30507
11/13/2021, 4:28 PMpoetry_requirements
supports wildcard specification. In migrating a project using pants, I took the existing pyproject.toml as is, which contains, e.g. pillow = "*"
in the declarations. After generating the user lockfile using poetry export
and configuring the constraints file in the pants.toml
, I received an error saying that pillow==*
can't be satisfied while building. I've verified that poetry has correctly exported the resolved version for that package in constraints.txt. I hope I followed the right steps when using poetry_requirements
in pants.
It's not a blocker for me though as a wildcard can always be rewritten to >=0.0.0
or some known version as the lower bound in pyproject.toml. But it would be nice if pants could have it supported.nice-florist-55958
11/13/2021, 5:51 PMnice-florist-55958
11/14/2021, 2:47 AMnice-florist-55958
11/14/2021, 7:12 PMnice-florist-55958
11/14/2021, 8:50 PM3rdpary/pkg/bin.so
, Pants only copies the *.py
files when running the test goal. So import pkg
results in __init__.py
being invoked and then an import error from from .bin import *
because bin.so
is not in the sandboxed environment. Confirmed by dropping into pdb and looking at the folder structure in the execution env.
Any ideas? Is that expected behavior or?ambitious-actor-36781
11/14/2021, 9:32 PMmypy
to my project.
But continuously getting this error:
𐄂 MyPy failed.
10:29:21.85 [ERROR] Completed: Typecheck using MyPy - MyPy failed (exit code 2).
test/python/gcloud/conftest.py: error: Duplicate module named "conftest" (also at "test/python/editor/score/conftest.py")
test/python/gcloud/conftest.py: note: Are you missing an __init__.py? Alternatively, consider using --exclude to avoid checking one of them.
Found 1 error in 1 file (errors prevented further checking)
So now (due to: https://github.com/pantsbuild/pants/issues/13615) I'm adding
overrides={"conftest.py": {"skip_mypy": True}}
to all my python_test_utils
but it feels like I'm doing something wrong?curved-television-6568
11/15/2021, 10:06 AMYou have set interpreter constraints (`CPython<4 OR CPython>=3.6.*`) that are not compatible with those used to generate the lockfile (`CPython<4,>=3.6`). `flake8` determines its interpreter constraints
curved-television-6568
11/15/2021, 10:08 AMOR
now…curved-television-6568
11/15/2021, 10:11 AMC1, C2
where presented as C1 AND C2
to match the OR
case… that would be clearer 🙂bitter-ability-32190
11/15/2021, 2:29 PMfmt
, lint
, check
, test
, but what about validate
? or update-build-files --check
?happy-kitchen-89482
11/15/2021, 3:06 PMhundreds-father-404
11/15/2021, 4:14 PM[python]
interpreter_constraints = [">=3.6,<4", "==2.7.*"]
We use ' OR '.join()
curved-television-6568
11/15/2021, 4:16 PMclean-city-64472
11/15/2021, 5:10 PMcalm-alarm-89082
11/15/2021, 5:20 PMbusy-vase-39202
11/15/2021, 6:49 PMsalmon-barista-63163
11/15/2021, 8:01 PMenough-analyst-54434
11/15/2021, 8:15 PM