foursquare.pants.spindle-0.0.1


توضیحات

Spindle Thrift-to-Scala code generation plugin for pants build system
ویژگی مقدار
سیستم عامل -
نام فایل foursquare.pants.spindle-0.0.1
نام foursquare.pants.spindle
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Foursquare
ایمیل نویسنده pants@foursquare.com
آدرس صفحه اصلی https://github.com/foursquare/pants-spindle
آدرس اینترنتی https://pypi.org/project/foursquare.pants.spindle/
مجوز UNKNOWN
Spindle Codegen Plugin ================= A plugin for the Pants build system to use Foursquare's `Spindle <https://github.com/foursquare/spindle>`_ to Thrift-to-Scala code generator. Configuration ---------- ``pants.ini`` ^^^^^^^^^^^^^ The ``spindle-gen`` section of pants.ini must contain ``bootstrap-tools`` and ``scala_record``. The list ``bootstrap-tools`` should include the address of a ``jar_library`` target (usually defined in ``BUILD.tools``_) for the spindle codegen jar. The dictionary ``scala_record`` should include a list ``deps`` of address specs to be added to the ``dependencies`` of generated targets. The minimal pants.ini additions to get Spindle working likely looks more or less like:: [spindle-gen] bootstrap-tools: ['//:spindle-codegen'] scala_record: { 'target_language': 'scala', 'template': 'scala/record.ssp', 'javaTemplate': 'javagen/record.ssp', 'options': '', 'deps': [ '3rdparty:spindle-runtime', '3rdparty:mongodb', '3rdparty:joda-time', '3rdparty:scalaj-collection', ] } ``BUILD.tools`` ^^^^^^^^^^^^^^^ The ``bootstrap-tools`` config in ``pants.ini`` should point to a target that specifies a spindle codegen jar:: jar_library( name = 'spindle-codegen', jars = [ jar(org = 'com.foursquare', name = 'spindle-codegen-binary_2.10', rev = '3.0.0-M5.1'), ], )


نحوه نصب


نصب پکیج whl foursquare.pants.spindle-0.0.1:

    pip install foursquare.pants.spindle-0.0.1.whl


نصب پکیج tar.gz foursquare.pants.spindle-0.0.1:

    pip install foursquare.pants.spindle-0.0.1.tar.gz