Remove some stray calls to setup_parser.

One is in help.py which is completely unused, so now deleted.

The other was in the new help printer.

Testing Done:
Verified that --help works.

CI passed.

Reviewed at https://rbcommons.com/s/twitter/r/1300/
docs: mention mvn2pants

while I was in there: setup_repo had a paragraph about top-dir BUILD files for config. LOL, nowadays, that config has moved into plugins. So pull that out, and re-jigger examples of BUILD.foo files.

Reviewed at https://rbcommons.com/s/twitter/r/1301/
be rigorous get it right
Remove a superfluous test.

It only tests that Goal.parse_args works, but that function is
about to be killed itself.

Reviewed at https://rbcommons.com/s/twitter/r/1304/
Move cache logging to debug

Can get a tad noisy with several tasks all using setting up multiple caches.

Testing Done: https://travis-ci.org/pantsbuild/pants/builds/40392152

Bugs closed: 783

Reviewed at https://rbcommons.com/s/twitter/r/1310/
make it clear: you can only download those pexes because you previously uploaded 'em.

they don't appear by magic.

Reviewed at https://rbcommons.com/s/twitter/r/1296/
Merge branch 'master' into python_repl
Ensure that the new options system reports goals in the right order.

We sometimes rely on this, e.g., when specifying "clean-all compile".

Testing Done:
option unittests pass. CI passed when run with https://rbcommons.com/s/twitter/r/1309/

Reviewed at https://rbcommons.com/s/twitter/r/1308/
Switch option parsing for goals to the new parser.

Relies on https://rbcommons.com/s/twitter/r/1308/.

Testing Done:
CI passed when run with https://rbcommons.com/s/twitter/r/1308/.

Reviewed at https://rbcommons.com/s/twitter/r/1309/
Add support for the Wire protobuf library.  Adds the java_wire_library() target.

https://github.com/square/wire

Testing Done:
Added an example, plus new unit and integration tests.
CI is running @ https://travis-ci.org/pantsbuild/pants/jobs/39988400

Bugs closed: 765

Reviewed at https://rbcommons.com/s/twitter/r/1275/
Remove some remaining old options references.

Testing Done:
CI passed. Manual testing of cmd-line flags.

Reviewed at https://rbcommons.com/s/twitter/r/1317/
docs: confluence-publish's wiki info lives in a plugin now.

also, give a sample ConfluencePublish goal.

Bugs closed: 723

Reviewed at https://rbcommons.com/s/twitter/r/1299/
doc: update import path for PEX

"I don't see any code still importing twitter.common.python pex (except for examples in rst files,which should probably be fixed)"

Bugs closed: 428

Reviewed at https://rbcommons.com/s/twitter/r/1298/
switch src/* usages of Config.load to use Config.from_cache instead

Now all usages of Config.load in src use a cache if the config already has been parsed.

This doesn't change test usages, but since tests use temp directories, tests with different ini files don't interfer

Testing Done:
ran ci.sh locally

travis ci in progress: https://travis-ci.org/pantsbuild/pants/builds/40687043

Bugs closed: 788

Reviewed at https://rbcommons.com/s/twitter/r/1319/
- Create VIRTUALENV_PACKAGE_LOCATION env var so we can customize virtualenv package download
- Refactor to have a common.sh containing the set_archflags and logging functionalities.
- Make the virtual env script a bit more robust against curl/tar/activate errors

Testing Done:
manually tested:
1) not specifying VIRTUALENV_PACKAGE_LOCATION,
2) specifying a valid custom VIRTUALENV_PACKAGE_LOCATION location, and
3) specifying an invalid VIRTUALENV_PACKAGE_LOCATION location.

Travis: https://travis-ci.org/jinfeng/jinfeng-pants-fork/builds/40690744

Reviewed at https://rbcommons.com/s/twitter/r/1316/
Skip compressing/writing artifacts that are already in the cache.

Compressing things is expensive, so no reason clients should do it if they don't have to and writing the same thing over and over wastes IO capacity on the cache server.

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/39729173 passed

Bugs closed: 760

Reviewed at https://rbcommons.com/s/twitter/r/1272/
Support passthru args in tasks.

Tasks must declare that they take them.

The last task explicitly mentioned on the cmd-line gets them.

Implemented this for pytest.

Testing Done:
Verified that this does what you expect:

./pants goal test.pytest compile tests/python/pants_test/option/ -- -s

CI passes.

Reviewed at https://rbcommons.com/s/twitter/r/1320/
update the "Pants Essentials" tech talk slides

Nothing changed much; everything changed some

Testing Done:
eyeball

Reviewed at https://rbcommons.com/s/twitter/r/1314/
Merge branch 'master' into python_repl
Enable passthru args for python run.

Also enabled an explicit flag for this, which we shockingly didn't have before somehow.

Made some changes to example code to allow manual testing of this. Try:

./pants goal run.py --args="benjy"  examples/src/python/example/hello/main/ -- zundel jsirois

Changed the python run task's registration name from 'python-run' to 'py',  so that the cmd-line
scope is run.py instead of run.python_run.

Also added some missing __init__.py files.

Reviewed at https://rbcommons.com/s/twitter/r/1321/