Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Twitter common libraries for python and the JVM
Java Python Thrift JavaScript Shell GAP Other

Upgrade to pants 0.0.39

See the pants changelog here:

This pulls in 2 important fixes for commons python:
1. Fixes broken thrift handling in the run, repl, compile, test and
   binary goals.
2. Fixes python thrift stub publishing to work in the setup-py goal.

The python thrift stub publishing fix does require a change to the old
publishing scheme where the plain python_library target depending on the
python thrift stub code would include that code in its sdist.  That
arrangment was not generally provably sound (more than one
python_library might depend on the thrift stubs in which case both would
publish with the embedded thrift stub code).  The new arrangement just
requires published python_thrift_libraries have their own setup_py and
this change adds those for the 2 python_thrift_libraries that were
implicitly published previously.

Some additional BUILD and pants.ini config cleanups are also included.

Testing Done:
Ran `./build-support/commons/scripts/` which now
works again, generating all the prior sdists plus the 2 new broken-out
thrift sdists.

CI went green here:

Bugs closed: 394, 400

Reviewed at
latest commit ba861a184d
@jsirois jsirois authored


Twitter common libraries for python and the jvm

== Installation ==

Building requires:
+ jdk 1.6+
+ python 2.7+

The build tool is custom and hosted in the repository itself.

== Usage ==

To build all jvm code and run all tests:
$ ./pants test {src,tests}/java/com/twitter/common::
$ ./pants test {src,tests}/scala/com/twitter/common::

Likewise for python commons:
$ ./pants test tests/python/twitter/common/:all

To get help on pants:
$ ./pants help

Read more

Refer to pants documentation at

== Usage questions and feature discussions ==

Please check the archives for then fire
away if the question has not been addressed.

== Reporting bugs ==

Please use the github issue tracker for twitter commons at:

== Copyright and License ==

Copyright 2015 Twitter, Inc.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this work except in compliance with the License.
   You may obtain a copy of the License in the LICENSE file, or at:

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   See the License for the specific language governing permissions and
   limitations under the License.

Something went wrong with that request. Please try again.