bitter-ability-32190
10/26/2021, 6:08 PMyapf
through fmt
, does it take advantage of all my cores (the output shows one line about running yapf
on 1k files and 63 more spinny doodads. Similarly for pylint
)witty-crayon-22786
10/26/2021, 6:20 PMyapf
will take advantage of your cores if it is capable of doing that: we configure the concurrency of tools that we know have concurrency flags, but many have reasonable defaultsbitter-ability-32190
10/26/2021, 6:21 PMpants
witty-crayon-22786
10/26/2021, 6:27 PMlint
that will toggle “lint per file”, and in that case you would get ~1k yapf
processes. we really ought to have an in-between toggle that would lint in batches.witty-crayon-22786
10/26/2021, 6:31 PMwitty-crayon-22786
10/26/2021, 6:32 PMbitter-ability-32190
10/26/2021, 6:44 PMuser
10/26/2021, 7:48 PMbitter-ability-32190
10/26/2021, 8:32 PMrequirement_constraints = "constraints.txt"
and saw ERROR: Constraints cannot have extras
the output wasn't very helpful (I'll file an issue)
but I think the offender is marshmallow-dataclass[enum,union]==8.5.3
.
The file was generated by pip-compile
version 6.2.0
straight-printer-37909
10/26/2021, 9:21 PM10.14.6
, does anyone have idea to fix this? 😄
ProcessExecutionFailure: Process 'Searching for `python2` on PATH=/Users/xiaotongli/.nvm/versions/node/v10.24.1/bin:/Users/xiaotongli/arc/arcanist/bin:/Users/xiaotongli/Library/Python/2.7/bin:/Users/xiaotongli/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Users/xiaotongli/.krew/bin:/usr/local/mysql/bin' failed with exit code 1.
stdout:
stderr:
+ command -v which
+ command which -a python2
+ which -a python2
I can run pants 2.7 in our linux machine but cannot run the ./pants pacakge
in my local 😂user
10/26/2021, 9:29 PMbusy-vase-39202
10/26/2021, 10:21 PMloud-laptop-17949
10/26/2021, 10:33 PMchanged-since
and target type at the same time?worried-piano-71208
10/27/2021, 2:30 AMstale-nightfall-29801
10/27/2021, 11:27 AMstale-nightfall-29801
10/27/2021, 11:27 AMpython_library(
name = "bar",
sources = ["bar/*.py"]
)
python_tests(
name="test",
sources = ["test/test_*.py"]
)
pex_binary(
name="server",
entry_point="bar/server.py:main"
)
docker_image(
name='docker',
sources=["Dockerfile"]
)
stale-nightfall-29801
10/27/2021, 11:28 AMARG PY_VERSION=3.9
ARG VERSION=${PY_VERSION}-slim-buster
FROM python:${VERSION}
ENTRYPOINT [ "/bin/server" ]
COPY server.pex /bin/server
stale-nightfall-29801
10/27/2021, 11:29 AMcore
foo
bar
stale-nightfall-29801
10/27/2021, 11:30 AMbar
)
• monoreop
◦ bar
▪︎ bar (contains the code)
▪︎ test (contains the tests)
▪︎ Dockerfile
▪︎ BUILDstale-nightfall-29801
10/27/2021, 11:32 AMCOPY failed: file not found in build context or excluded by .dockerignore: stat server.pex: file does not exist
curved-television-6568
10/27/2021, 11:41 AMCOPY bar/server.pex /bin/server
stale-nightfall-29801
10/27/2021, 11:45 AMhundreds-father-404
10/27/2021, 1:05 PM./pants roots
say?stale-nightfall-29801
10/27/2021, 1:11 PM.
core
foo
bar
thirdparty/python
happy-kitchen-89482
10/27/2021, 3:49 PMdocker_image
target onto :server
? It should be inferred, but let's find outstale-nightfall-29801
10/27/2021, 3:51 PMbar
like so:
docker_image(
name='docker',
dependencies=[":bar"],
sources=["Dockerfile"]
)
stale-nightfall-29801
10/27/2021, 3:52 PMbar/server.pex
or server.pex
user
10/27/2021, 3:54 PMclean-night-52582
10/27/2021, 4:12 PMsetup.py
file. The python_distribution
also has dependencies
on the target. They don't seem to be in the environment when setup.py
is invoked? is there another way to get access to the libs e.g numpy
?bitter-ability-32190
10/27/2021, 4:22 PMrequirements.txt
for a large set of deps?
Currently seeing "Error storing Digest { hash: Fingerprint<012ed7213b69805f0e19542c9ec2fc98640d356b25739ec6c687bc20abcf9ab6>, size_bytes: 2392030244 }: Input/output error"