31 """Setuptools/distutils extension for generating Python protobuf code."""
33 __author__ =
'dlj@google.com (David L. Jones)'
36 from setuptools
import setup, find_packages
39 this_directory = path.abspath(path.dirname(__file__))
40 with open(path.join(this_directory,
'README.md'), encoding=
'utf-8')
as f:
44 name=
'protobuf_distutils',
46 packages=find_packages(),
47 maintainer=
'protobuf@googlegroups.com',
48 maintainer_email=
'protobuf@googlegroups.com',
49 license=
'3-Clause BSD License',
51 "Framework :: Setuptools Plugin",
52 "Operating System :: OS Independent",
54 "Programming Language :: Python",
55 "Programming Language :: Python :: 3",
56 "Programming Language :: Python :: 3.3",
57 "Programming Language :: Python :: 3.4",
58 "Programming Language :: Python :: 3.5",
59 "Programming Language :: Python :: 3.6",
60 "Programming Language :: Python :: 3.7",
61 "Programming Language :: Python :: 3.8",
62 "Topic :: Software Development :: Code Generators",
64 description=(
'This is a distutils extension to generate Python code for '
65 '.proto files using an installed protoc binary.'),
66 long_description=_readme,
67 long_description_content_type=
'text/markdown',
68 url=
'https://github.com/protocolbuffers/protobuf/',
70 'distutils.commands': [
71 (
'generate_py_protobufs = '
72 'protobuf_distutils.generate_py_protobufs:generate_py_protobufs'),