Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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:
  https://pypi.python.org/pypi/pantsbuild.pants/0.0.39

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/build_py_commons.sh` which now
works again, generating all the prior sdists plus the 2 new broken-out
thrift sdists.

CI went green here:
  https://travis-ci.org/twitter/commons/builds/72547292

Bugs closed: 394, 400

Reviewed at https://rbcommons.com/s/twitter/r/2530/
latest commit ba861a184d
@jsirois jsirois authored

README

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 http://twitter.github.com/commons/

Refer to pants documentation at http://pantsbuild.github.io

== Usage questions and feature discussions ==

Please check the archives for twitter-commons@googlegroups.com then fire
away if the question has not been addressed.

== Reporting bugs ==

Please use the github issue tracker for twitter commons at:
https://github.com/twitter/commons/issues

== 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:

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


Something went wrong with that request. Please try again.