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]
mypy = true
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
File details
Details for the file setuptools-protobuf-0.1.10.tar.gz
.
File metadata
- Download URL: setuptools-protobuf-0.1.10.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c6e0c5915cc496453bbe953792b6946ea1f9c1abccfbb0a82b9a964b7129bd8 |
|
MD5 | 2dafe27d55f1023332e3ceb004ee13ac |
|
BLAKE2b-256 | e3e691f4e3934d009a05a1534feb815be9d37389cc17e3252dc67ff30205c8ba |
File details
Details for the file setuptools_protobuf-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: setuptools_protobuf-0.1.10-py3-none-any.whl
- Upload date:
- Size: 8.3 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 | 6001a2ab9d94e913049ccfe2cdfa930aeaf0e33c08c25a5fd6c3a5c3b2e3d8d8 |
|
MD5 | 40cf510d9856446a30448907289a2f4d |
|
BLAKE2b-256 | 7383d4fb0ab65c8c494991a8fd7e420b6cf6de48c056f8865659d4feead86265 |