https://pantsbuild.org/ logo
#general
Title
# general
h

hundreds-father-404

04/28/2020, 4:54 PM
Yes, it does for Python in particular. Pants has been using remote execution and remote caching since November for its own repository. Remote caching makes CI a charm - if you push a change that only updates one file, usually you only need to rerun 1-2 tests and everything else uses the cache. With upgrading, we recommend bumping one major version at a time to catch deprecation warnings. In particular, change the version in your
pants.ini
, then run
./pants
,
./pants list :: > /dev/null
, and
./pants filedeps :: > /dev/null
to see if there are any deprecations. You don’t need to have a separate pull request for each version bump, of course; you can combine them all into one pull request. But, changing it incrementally will make for a much smoother upgrade.
As soon as you get to Pants 1.15.x, you’ll want to re-download the
./pants
script by running
curl -L -O <https://pantsbuild.github.io/setup/pants>
. In 1.15.x, we added support for running Pants with Python 3 (which results in a 15% speedup). You need to update the script so that it knows how to use Python 3.
Highlights of some nice upgrades from 1.13.x to 1.27.0rc0: * The V2 Python implementation was added. It has better caching, better parallelism, avoids unnecessary work V1 did, and works with remote execution and buildfarm. * File arguments. You can now say
./pants fmt example.py
, instead of needing to use address arguments like
:example
. Pants will figure out the right thing to do. If using the V2 Python implementation, Pants will only run on that specified file, rather than the entire owning target. * Added support for Flake8, Pylint, Bandit, Black, and Docformatter. * Better output for
./pants goals
,
./pants help
, and
./pants target-types
. * Simpler
sources
field in BUILD files. There’s no more
globs()
and
rglobs()
. Now, it’s just
['*.py', '!ignore.py']
, where the
!
means to exclude the glob. * Support for
pants.toml
instead of
pants.ini
, which removes a lot of gotchas and makes it easier to edit the config file.
b

big-baker-75091

05/14/2020, 10:42 AM
Is Scoot the preferred RE server for Pants?