1# Protocol Buffers - Google's data interchange format 2# Copyright 2008 Google Inc. All rights reserved. 3# 4# Use of this source code is governed by a BSD-style 5# license that can be found in the LICENSE file or at 6# https://developers.google.com/open-source/licenses/bsd 7 8"""Setuptools extension for generating Python protobuf code.""" 9 10__author__ = 'dlj@google.com (David L. Jones)' 11 12from os import path 13from setuptools import setup, find_packages 14 15# Use README.md as the source for long_description. 16this_directory = path.abspath(path.dirname(__file__)) 17with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: 18 _readme = f.read() 19 20setup( 21 name='protobuf_distutils', 22 version='1.0', 23 packages=find_packages(), 24 maintainer='protobuf@googlegroups.com', 25 maintainer_email='protobuf@googlegroups.com', 26 license='BSD-3-Clause', 27 classifiers=[ 28 'Framework :: Setuptools Plugin', 29 'Operating System :: OS Independent', 30 # These Python versions should match the protobuf package: 31 'Programming Language :: Python', 32 'Programming Language :: Python :: 3', 33 'Programming Language :: Python :: 3.8', 34 'Programming Language :: Python :: 3.9', 35 'Programming Language :: Python :: 3.10', 36 'Programming Language :: Python :: 3.11', 37 'Programming Language :: Python :: 3.12', 38 'Topic :: Software Development :: Code Generators', 39 ], 40 description=( 41 'This is a setuptools extension to generate Python code for ' 42 '.proto files using an installed protoc binary.' 43 ), 44 long_description=_readme, 45 long_description_content_type='text/markdown', 46 url='https://github.com/protocolbuffers/protobuf/', 47 entry_points={ 48 'distutils.commands': [ 49 ( 50 'generate_py_protobufs = ' 51 'protobuf_distutils.generate_py_protobufs:generate_py_protobufs' 52 ), 53 ], 54 }, 55) 56