Make Globs classes and Bundle stand on their own. [API]

Review Request #2740 - Created Aug. 31, 2015 and submitted

Information
John Sirois
pants
jsirois/LOD/globs_and_bundles
2103
2738
8e368f3...
Reviewers
pants-reviews
patricklaw, stuhood, zundel
Previously a ParseConext was required to create these limiting use.
Fundamentally, each only needed a relative path to base its operations
from, so lift up a dedicated factory method for registration as a
context aware object factory leaving the fundamental constructor
unconstrained.

 contrib/go/src/python/pants/contrib/go/targets/BUILD              |  2 +-
 contrib/go/src/python/pants/contrib/go/targets/go_local_source.py | 12 +++-------
 src/python/pants/backend/core/BUILD                               |  3 ++-
 src/python/pants/backend/core/register.py                         |  6 ++---
 src/python/pants/backend/core/wrapped_globs.py                    | 16 +++++++++++---
 src/python/pants/backend/jvm/targets/jvm_app.py                   |  7 +++---
 tests/python/pants_test/backend/core/test_wrapped_globs.py        |  4 ++--
 tests/python/pants_test/backend/jvm/targets/BUILD                 |  1 -
 tests/python/pants_test/backend/jvm/targets/test_jvm_app.py       | 59 +++++++++++++++++++-------------------------------
 tests/python/pants_test/base/test_payload.py                      |  2 +-
 tests/python/pants_test/tasks/test_what_changed.py                |  2 +-
 11 files changed, 52 insertions(+), 62 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/78110626
John Sirois
Patrick Lawson
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...