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
File details
Details for the file setuptools-protobuf-0.1.3.tar.gz
.
File metadata
- Download URL: setuptools-protobuf-0.1.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ad71d7cb57a805841b29731380502e5cfa49695c31ba240723ac4168ae4c81e |
|
MD5 | 3ced34eed8370971e4010b057b850996 |
|
BLAKE2b-256 | e9ea6b5c2f5ac2994146eca21d8613841434e24f4168aeac14c8441e8b03249d |