mirror of
https://github.com/google/brotli.git
synced 2024-11-25 04:50:05 +00:00
9203765492
Previously, the Python package consisted of a single extension module, so `build_ext` was sufficient. Now, the package contains a native module and an extension module, so both `build_py` and `build_ext` are required. Instead, run `build`, which calls both `build_py` and `build_ext` automatically.
853 B
853 B
This directory contains the code for the Python brotli
module,
bro.py
tool, and roundtrip tests.
Development
To build the module, execute the following from the root project directory:
$ python setup.py build
To test the module, execute the following from the root project directory:
$ python setup.py test
Code Style
Brotli's code follows the Google Python Style Guide. To automatically format your code, install YAPF:
$ pip install yapf
Then, either format a single file:
$ yapf --in-place FILE
Or, format all files in a directory:
$ yapf --in-place --recursive DIR
See the YAPF usage documentation for more information.