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.4.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

setuptools_protobuf-0.1.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for setuptools-protobuf-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ab26a58d37c5d7615783184ea56e3909fe4342e1e683cc6fe6d5d5717d9d6ce8
MD5 0726a15e4f44586a6db0a58836470a88
BLAKE2b-256 b36413190a9bc4c2506ad226728da6c322f7928763a8cf6a9a3dd0a84baaa174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for setuptools_protobuf-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e86528d0107fdae467717fb6b632fcd873007c684997961eab0f8ad27a72cf5c
MD5 df9daf958593fcaa046458c9129676b2
BLAKE2b-256 0f24a579b244c3382a8521c12cb3aeb2175b89f44c80f5e72588e528bf09967f

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