Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/protobuf/python/setup.py

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/protobuf/python/setup.cfg ('k') | third_party/protobuf/python/tox.ini » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 # 2 #
3 # See README for usage instructions. 3 # See README for usage instructions.
4 import glob 4 import glob
5 import os 5 import os
6 import subprocess 6 import subprocess
7 import sys 7 import sys
8 8
9 # We must use setuptools, not distutils, because we need to use the 9 # We must use setuptools, not distutils, because we need to use the
10 # namespace_packages option for the "google" package. 10 # namespace_packages option for the "google" package.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 sys.stderr.write( 69 sys.stderr.write(
70 "protoc is not installed nor found in ../src. Please compile it " 70 "protoc is not installed nor found in ../src. Please compile it "
71 "or install the binary package.\n") 71 "or install the binary package.\n")
72 sys.exit(-1) 72 sys.exit(-1)
73 73
74 protoc_command = [ protoc, "-I../src", "-I.", "--python_out=.", source ] 74 protoc_command = [ protoc, "-I../src", "-I.", "--python_out=.", source ]
75 if subprocess.call(protoc_command) != 0: 75 if subprocess.call(protoc_command) != 0:
76 sys.exit(-1) 76 sys.exit(-1)
77 77
78 def GenerateUnittestProtos(): 78 def GenerateUnittestProtos():
79 generate_proto("../src/google/protobuf/any_test.proto", False)
80 generate_proto("../src/google/protobuf/map_unittest.proto", False) 79 generate_proto("../src/google/protobuf/map_unittest.proto", False)
81 generate_proto("../src/google/protobuf/test_messages_proto3.proto", False)
82 generate_proto("../src/google/protobuf/unittest_arena.proto", False) 80 generate_proto("../src/google/protobuf/unittest_arena.proto", False)
83 generate_proto("../src/google/protobuf/unittest_no_arena.proto", False) 81 generate_proto("../src/google/protobuf/unittest_no_arena.proto", False)
84 generate_proto("../src/google/protobuf/unittest_no_arena_import.proto", False) 82 generate_proto("../src/google/protobuf/unittest_no_arena_import.proto", False)
85 generate_proto("../src/google/protobuf/unittest.proto", False) 83 generate_proto("../src/google/protobuf/unittest.proto", False)
86 generate_proto("../src/google/protobuf/unittest_custom_options.proto", False) 84 generate_proto("../src/google/protobuf/unittest_custom_options.proto", False)
87 generate_proto("../src/google/protobuf/unittest_import.proto", False) 85 generate_proto("../src/google/protobuf/unittest_import.proto", False)
88 generate_proto("../src/google/protobuf/unittest_import_public.proto", False) 86 generate_proto("../src/google/protobuf/unittest_import_public.proto", False)
89 generate_proto("../src/google/protobuf/unittest_mset.proto", False) 87 generate_proto("../src/google/protobuf/unittest_mset.proto", False)
90 generate_proto("../src/google/protobuf/unittest_mset_wire_format.proto", False ) 88 generate_proto("../src/google/protobuf/unittest_mset_wire_format.proto", False )
91 generate_proto("../src/google/protobuf/unittest_no_generic_services.proto", Fa lse) 89 generate_proto("../src/google/protobuf/unittest_no_generic_services.proto", Fa lse)
92 generate_proto("../src/google/protobuf/unittest_proto3_arena.proto", False) 90 generate_proto("../src/google/protobuf/unittest_proto3_arena.proto", False)
93 generate_proto("../src/google/protobuf/util/json_format_proto3.proto", False) 91 generate_proto("../src/google/protobuf/util/json_format_proto3.proto", False)
94 generate_proto("google/protobuf/internal/any_test.proto", False) 92 generate_proto("google/protobuf/internal/any_test.proto", False)
95 generate_proto("google/protobuf/internal/descriptor_pool_test1.proto", False) 93 generate_proto("google/protobuf/internal/descriptor_pool_test1.proto", False)
96 generate_proto("google/protobuf/internal/descriptor_pool_test2.proto", False) 94 generate_proto("google/protobuf/internal/descriptor_pool_test2.proto", False)
97 generate_proto("google/protobuf/internal/factory_test1.proto", False) 95 generate_proto("google/protobuf/internal/factory_test1.proto", False)
98 generate_proto("google/protobuf/internal/factory_test2.proto", False) 96 generate_proto("google/protobuf/internal/factory_test2.proto", False)
99 generate_proto("google/protobuf/internal/file_options_test.proto", False)
100 generate_proto("google/protobuf/internal/import_test_package/inner.proto", Fal se) 97 generate_proto("google/protobuf/internal/import_test_package/inner.proto", Fal se)
101 generate_proto("google/protobuf/internal/import_test_package/outer.proto", Fal se) 98 generate_proto("google/protobuf/internal/import_test_package/outer.proto", Fal se)
102 generate_proto("google/protobuf/internal/missing_enum_values.proto", False) 99 generate_proto("google/protobuf/internal/missing_enum_values.proto", False)
103 generate_proto("google/protobuf/internal/message_set_extensions.proto", False) 100 generate_proto("google/protobuf/internal/message_set_extensions.proto", False)
104 generate_proto("google/protobuf/internal/more_extensions.proto", False) 101 generate_proto("google/protobuf/internal/more_extensions.proto", False)
105 generate_proto("google/protobuf/internal/more_extensions_dynamic.proto", False ) 102 generate_proto("google/protobuf/internal/more_extensions_dynamic.proto", False )
106 generate_proto("google/protobuf/internal/more_messages.proto", False) 103 generate_proto("google/protobuf/internal/more_messages.proto", False)
107 generate_proto("google/protobuf/internal/packed_field_test.proto", False) 104 generate_proto("google/protobuf/internal/packed_field_test.proto", False)
108 generate_proto("google/protobuf/internal/test_bad_identifiers.proto", False) 105 generate_proto("google/protobuf/internal/test_bad_identifiers.proto", False)
109 generate_proto("google/protobuf/pyext/python.proto", False) 106 generate_proto("google/protobuf/pyext/python.proto", False)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 # Keep this list of dependencies in sync with tox.ini. 212 # Keep this list of dependencies in sync with tox.ini.
216 install_requires = ['six>=1.9', 'setuptools'] 213 install_requires = ['six>=1.9', 'setuptools']
217 if sys.version_info <= (2,7): 214 if sys.version_info <= (2,7):
218 install_requires.append('ordereddict') 215 install_requires.append('ordereddict')
219 install_requires.append('unittest2') 216 install_requires.append('unittest2')
220 217
221 setup( 218 setup(
222 name='protobuf', 219 name='protobuf',
223 version=GetVersion(), 220 version=GetVersion(),
224 description='Protocol Buffers', 221 description='Protocol Buffers',
225 download_url='https://github.com/google/protobuf/releases',
226 long_description="Protocol Buffers are Google's data interchange format", 222 long_description="Protocol Buffers are Google's data interchange format",
227 url='https://developers.google.com/protocol-buffers/', 223 url='https://developers.google.com/protocol-buffers/',
228 maintainer='protobuf@googlegroups.com', 224 maintainer='protobuf@googlegroups.com',
229 maintainer_email='protobuf@googlegroups.com', 225 maintainer_email='protobuf@googlegroups.com',
230 license='New BSD License', 226 license='New BSD License',
231 classifiers=[ 227 classifiers=[
232 "Programming Language :: Python", 228 "Programming Language :: Python",
233 "Programming Language :: Python :: 2", 229 "Programming Language :: Python :: 2",
234 "Programming Language :: Python :: 2.6", 230 "Programming Language :: Python :: 2.6",
235 "Programming Language :: Python :: 2.7", 231 "Programming Language :: Python :: 2.7",
236 "Programming Language :: Python :: 3", 232 "Programming Language :: Python :: 3",
237 "Programming Language :: Python :: 3.3", 233 "Programming Language :: Python :: 3.3",
238 "Programming Language :: Python :: 3.4", 234 "Programming Language :: Python :: 3.4",
239 ], 235 ],
240 namespace_packages=['google'], 236 namespace_packages=['google'],
241 packages=find_packages( 237 packages=find_packages(
242 exclude=[ 238 exclude=[
243 'import_test_package', 239 'import_test_package',
244 ], 240 ],
245 ), 241 ),
246 test_suite='google.protobuf.internal', 242 test_suite='google.protobuf.internal',
247 cmdclass={ 243 cmdclass={
248 'clean': clean, 244 'clean': clean,
249 'build_py': build_py, 245 'build_py': build_py,
250 'test_conformance': test_conformance, 246 'test_conformance': test_conformance,
251 }, 247 },
252 install_requires=install_requires, 248 install_requires=install_requires,
253 ext_modules=ext_module_list, 249 ext_modules=ext_module_list,
254 ) 250 )
OLDNEW
« no previous file with comments | « third_party/protobuf/python/setup.cfg ('k') | third_party/protobuf/python/tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698