Setuptools protobuf extension plugin
Project description
protobuf support for setuptools
Plugin for setuptools
that adds support for compiling protobuf files.
Dependencies
The plugin requires the external protoc
executable that is part of the
protobuf project to be present.
On Debian systems, this executable is shipped in the protobuf-compiler
package.
Optionally, it can also generate typing hints if the mypy
extra is selected.
Usage
You can configure setuptools-protobuf
in either setup.py
, setup.cfg
or pyproject.toml
.
setup.py
from setuptools_protobuf import Protobuf
setup(
...
setup_requires=['setuptools-protobuf'],
protobufs=[Protobuf('example/foo.proto')],
)
setup.cfg
...
[options]
setup_requires =
setuptools
setuptools-protobuf
pyproject.toml
[build-system]
requires = ["setuptools", "setuptools-protobuf"]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for setuptools-protobuf-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39569cffef5c1774ac5e55ddf959b9b6ab312186762c862181fc4a5a75bf7ad7 |
|
MD5 | cabb5f10148234c73c75dac9f23164ac |
|
BLAKE2b-256 | 8a28915741cb1467f2d1c338b2f5f6fc8cf484c236b28657714960de83f5228b |
Close
Hashes for setuptools_protobuf-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bbb8290c3906a1a1d031f48ad1a77cb5942b7b674eadadf59e75ade75c9a973 |
|
MD5 | eb00e2199217100f85a112b1d02eb1e9 |
|
BLAKE2b-256 | e7850293c3ff74e904e725211edf0fd5e605c23b1b215a18f36d53c07c8191b6 |