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"]
[tool.setuptools-protobuf]
protobufs = ["example/foo.proto"]
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools-protobuf-0.1.9.tar.gz.
File metadata
- Download URL: setuptools-protobuf-0.1.9.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02bafbbdf83ff9616909b3cdfccdc2757735903856ffab02244753babc03d673
|
|
| MD5 |
f2b38ff8282252170eaf13a638d28632
|
|
| BLAKE2b-256 |
ae766ca312c2260c96f404fdbcf6b4926f82d9c4af8dd0d302e19721d393e192
|
File details
Details for the file setuptools_protobuf-0.1.9-py3-none-any.whl.
File metadata
- Download URL: setuptools_protobuf-0.1.9-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0795697d18e7156031417ae59321febfaf40e9daa2901e6373d0dbee0dd5ff2
|
|
| MD5 |
1e8d4409106d3a3ce52817f571c30dfe
|
|
| BLAKE2b-256 |
a08ff88f0baa4efa00ed69b4b40d077d40002ecc35ffc2fb8b5fb08f13c0a707
|