{"push_id":577108577,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"1f69da2d3c423949b73c575d588cd24e753da3aa","before":"cb581225412de9e2a318864b7c733e168ba494df","commits":[{"sha":"1f69da2d3c423949b73c575d588cd24e753da3aa","author":{"email":"86f39098c3d6e8fa24cceea9f4753c2782977b2d@gmail.com","name":"John Sirois"},"message":"Introduce a @deprecated decorator.\n\nDeprecations will be an ongoing part of moving pants forward. This\ndecorator standardizes denotation of deprecated functions by requiring a\nfuture version of removal be noted and by routing and displaying these\nwarnings in a consistent way.\n\nPorted AbstractTarget.is_* deprecations to this new system as an\nexample.\n\nTesting Done:\nLook and feel (note 1 warning instead of N and extra detail of file, line\nno and line snippet):\n```console\n$ pants.dev compile examples/src/java/::\n...\n02:56:25 00:00   [compile]\n02:56:25 00:00     [compile]\n02:56:25 00:00     [jvm]\n02:56:25 00:00       [jvm-compilers] WARN] /home/jsirois/dev-jsirois-pants3/src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py:151: DeprecationWarning:\npants.base.target.is_apt is deprecated and will be removed in version 0.0.30:\nDo not use this method, use an isinstance check on AnnotationProcessor.\n  if target.is_apt and target.processors:\n\n...\n```\n\nAnd then the new test:\n```console\n$ PANTS_PY_COVERAGE=modules:pants.base.deprecated PANTS_DEV=1 ./pants test tests/python/pants_test/base:deprecated\n...\n02:48:31 00:00   [test]\n02:48:31 00:00     [run_prep_command]\n02:48:31 00:00     [test]\n02:48:31 00:00     [pytest]\n02:48:31 00:00       [run]\n                     ============== test session starts ===============\n                     platform linux2 -- Python 2.7.8 -- py-1.4.26 -- pytest-2.6.4\n                     plugins: timeout\n                     collected 9 items\n\n                     tests/python/pants_test/base/test_deprecated.py .........\n\n                     ============ 9 passed in 0.13 seconds ============\n                     Name                               Stmts   Miss Branch BrMiss  Cover\n                     --------------------------------------------------------------------\n                     src/python/pants/base/deprecated      32      0      8      0   100%\n\n02:48:32 00:01     [junit]\n02:48:32 00:01     [specs]\n               SUCCESS\n```\n\nCI went green here:\n  https://travis-ci.org/pantsbuild/pants/builds/50864471\n\nBugs closed: 1048\n\nReviewed at https://rbcommons.com/s/twitter/r/1725/","distinct":true,"url":"https://api.github.com/repos/pantsbuild/pants/commits/1f69da2d3c423949b73c575d588cd24e753da3aa"}]}