Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setuptools-protobuf-0.1.6.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

setuptools_protobuf-0.1.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file setuptools-protobuf-0.1.6.tar.gz.

File metadata

  • Download URL: setuptools-protobuf-0.1.6.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for setuptools-protobuf-0.1.6.tar.gz
Algorithm Hash digest
SHA256 79ccd0bd908ad30492ba8c3841b667100826df51599237d2e8b41ceb3bdc8092
MD5 af356597d226ddf494d66a1e85586df9
BLAKE2b-256 26f527b56e72ab0635952656396eae577fc9af6063d464364a50351ab1c249d0

See more details on using hashes here.

File details

Details for the file setuptools_protobuf-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for setuptools_protobuf-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 284ebced67369fbcf12e81c44757409487f85974558257366f5039689c1f61ac
MD5 9050b39c0016797aa32cf25e94dc6a67
BLAKE2b-256 767bd40e9837e37163d28d32422318537a82eb3b044e7897ea765ecb8c0bcf2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page