Implement an exported ownership model.

Review Request #2010 - Created March 31, 2015 and submitted

Information
John Sirois
pants
jsirois/py_setup/improvements
1126, 1329, 1331, 1348
2013
5b5a515...
Reviewers
pants-reviews
jinfeng, stuhood
This implements a full consistent publishing model for setup-py whereby
a target that is not exported must have a single exported target owner.
It also adds support for finding such owners even when the owner is not
in the current target closure to effect consistent, complete recursive
setup-py publishing that does not require any dependency hacks.

As a result several BUILD dep hacks for exported plugins are removed
and the release script is updated to take advantage as well.

 build-support/bin/release.sh                                  |  16 +-
 contrib/cpp/src/python/pants/contrib/cpp/BUILD                |   4 -
 contrib/scrooge/src/python/pants/contrib/scrooge/BUILD        |   4 -
 src/python/pants/BUILD                                        |  24 ---
 src/python/pants/backend/python/tasks/BUILD                   |   3 +
 src/python/pants/backend/python/tasks/setup_py.py             | 394 ++++++++++++++++++++++++++++++++++--------------
 tests/python/pants_test/BUILD                                 |  20 +++
 tests/python/pants_test/backend/python/tasks/BUILD            |   7 +-
 tests/python/pants_test/backend/python/tasks/test_setup_py.py | 405 +++++++++++++++++++++++++++++++-------------------
 9 files changed, 561 insertions(+), 316 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/56670625

Issues

  • 0
  • 6
  • 1
  • 7
Description From Last Updated
John Sirois
Patrick Lawson
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
Stu Hood
John Sirois
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...