diff --git a/thrift/compiler/generate/t_mstch_py3_generator.cc b/thrift/compiler/generate/t_mstch_py3_generator.cc index e6bd3c1b68d..b2b1247b1b2 100644 --- a/thrift/compiler/generate/t_mstch_py3_generator.cc +++ b/thrift/compiler/generate/t_mstch_py3_generator.cc @@ -1386,6 +1386,7 @@ void t_mstch_py3_generator::generate_types() { std::vector cythonFilesWithTypeContext{ "types.pyx", "types.pxd", + "cbindings.pxd", "types.pyi", }; diff --git a/thrift/compiler/generate/templates/py3/cbindings.pxd.mustache b/thrift/compiler/generate/templates/py3/cbindings.pxd.mustache new file mode 100644 index 00000000000..f5bc7dd9921 --- /dev/null +++ b/thrift/compiler/generate/templates/py3/cbindings.pxd.mustache @@ -0,0 +1,26 @@ +{{! + + Copyright (c) Meta Platforms, Inc. and affiliates. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +}} +{{> common/auto_generated_py}} +from {{#program:py3Namespaces}}{{value}}.{{/program:py3Namespaces}}{{program:name}}.types cimport ( + {{#program:enums}}c{{enum:name}}, + {{/program:enums}}{{! + }}{{#program:filtered_structs}}c{{struct:name}}, + {{/program:filtered_structs}}{{! + }}{{#program:constants}}c{{constant:name}}, + {{/program:constants}} +) diff --git a/thrift/compiler/test/fixtures/basic-annotations/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/basic-annotations/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..e258c8879c0 --- /dev/null +++ b/thrift/compiler/test/fixtures/basic-annotations/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/basic-annotations/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyEnum, + cMyStructNestedAnnotation, + cSecretStruct, + cmyStruct, +) diff --git a/thrift/compiler/test/fixtures/basic-enum/out/py3/gen-py3/test/fixtures/enumstrict/module/cbindings.pxd b/thrift/compiler/test/fixtures/basic-enum/out/py3/gen-py3/test/fixtures/enumstrict/module/cbindings.pxd new file mode 100644 index 00000000000..2e4140ffc94 --- /dev/null +++ b/thrift/compiler/test/fixtures/basic-enum/out/py3/gen-py3/test/fixtures/enumstrict/module/cbindings.pxd @@ -0,0 +1,15 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/basic-enum/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.fixtures.enumstrict.module.types cimport ( + cEmptyEnum, + cMyEnum, + cMyUseIntrinsicDefaultEnum, + cMyBigEnum, + cMyStruct, + ckOne, +cenumNames, +) diff --git a/thrift/compiler/test/fixtures/basic-stack-arguments/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/basic-stack-arguments/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..0e9fde3ac13 --- /dev/null +++ b/thrift/compiler/test/fixtures/basic-stack-arguments/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/basic-stack-arguments/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyEnum, + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/basic/out/py3/gen-py3/test/fixtures/basic/module/cbindings.pxd b/thrift/compiler/test/fixtures/basic/out/py3/gen-py3/test/fixtures/basic/module/cbindings.pxd new file mode 100644 index 00000000000..31fc80396bb --- /dev/null +++ b/thrift/compiler/test/fixtures/basic/out/py3/gen-py3/test/fixtures/basic/module/cbindings.pxd @@ -0,0 +1,27 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/basic/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.fixtures.basic.module.types cimport ( + cMyEnum, + cHackEnum, + cMyStruct, + cContainers, + cMyDataItem, + cMyUnion, + cMyException, + cMyExceptionWithMessage, + cReservedKeyword, + cUnionToBeRenamed, + cFLAG, +cOFFSET, +cCOUNT, +cMASK, +cE, +cDATE, +cAList, +cASet, +cAMap, +) diff --git a/thrift/compiler/test/fixtures/complex-union/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/complex-union/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..1536cfaf7f7 --- /dev/null +++ b/thrift/compiler/test/fixtures/complex-union/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,16 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/complex-union/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cComplexUnion, + cListUnion, + cDataUnion, + cVal, + cValUnion, + cVirtualComplexUnion, + cNonCopyableStruct, + cNonCopyableUnion, + ) diff --git a/thrift/compiler/test/fixtures/constants/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/constants/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..7e03fe1ed74 --- /dev/null +++ b/thrift/compiler/test/fixtures/constants/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,102 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/constants/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cEmptyEnum, + cCity, + cCompany, + cInternship, + cRange, + cstruct1, + cstruct2, + cstruct3, + cstruct4, + cunion1, + cunion2, + cmyInt, +cname, +cmulti_line_string, +cstates, +cx, +cy, +cz, +czeroDoubleValue, +clongDoubleValue, +cbin, +cmy_company, +cfoo, +cbar, +cmymap, +cinstagram, +cpartial_const, +ckRanges, +cinternList, +cpod_0, +cpod_s_0, +cpod_1, +cpod_s_1, +cpod_2, +cpod_trailing_commas, +cpod_s_2, +cpod_3, +cpod_s_3, +cpod_4, +cu_1_1, +cu_1_2, +cu_1_3, +cu_2_1, +cu_2_2, +cu_2_3, +cu_2_4, +cu_2_5, +cu_2_6, +capostrophe, +ctripleApostrophe, +cquotationMark, +cbackslash, +cescaped_a, +cchar2ascii, +cescaped_strings, +cfalse_c, +ctrue_c, +czero_byte, +czero16, +czero32, +czero64, +czero_dot_zero, +cempty_string, +cempty_int_list, +cempty_string_list, +cempty_int_set, +cempty_string_set, +cempty_int_int_map, +cempty_int_string_map, +cempty_string_int_map, +cempty_string_string_map, +cmaxIntDec, +cmaxIntOct, +cmaxIntHex, +cmaxIntBin, +cmaxDub, +cminDub, +cminSDub, +cmaxPIntDec, +cmaxPIntOct, +cmaxPIntHex, +cmaxPIntBin, +cmaxPDub, +cminPDub, +cminPSDub, +cminIntDec, +cminIntOct, +cminIntHex, +cminIntBin, +cmaxNDub, +cminNDub, +cminNSDub, +cI2B, +cI2B_REF, +) diff --git a/thrift/compiler/test/fixtures/empty-struct/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/empty-struct/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..03898ee0c3e --- /dev/null +++ b/thrift/compiler/test/fixtures/empty-struct/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/empty-struct/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cEmpty, + cNada, + ) diff --git a/thrift/compiler/test/fixtures/enums/out/py3/gen-py3/test/fixtures/enums/module/cbindings.pxd b/thrift/compiler/test/fixtures/enums/out/py3/gen-py3/test/fixtures/enums/module/cbindings.pxd new file mode 100644 index 00000000000..69794d8f993 --- /dev/null +++ b/thrift/compiler/test/fixtures/enums/out/py3/gen-py3/test/fixtures/enums/module/cbindings.pxd @@ -0,0 +1,17 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/enums/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.fixtures.enums.module.types cimport ( + cMetasyntactic, + cMyEnum1, + cMyEnum2, + cMyEnum3, + cMyEnum4, + cMyBitmaskEnum1, + cMyBitmaskEnum2, + cSomeStruct, + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/exceptions/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/exceptions/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..069318e7e14 --- /dev/null +++ b/thrift/compiler/test/fixtures/exceptions/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,15 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/exceptions/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFiery, + cSerious, + cComplexFieldNames, + cCustomFieldNames, + cExceptionWithPrimitiveField, + cExceptionWithStructuredAnnotation, + cBanal, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..1b7c89d508f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/includes/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cIncluded, + cExampleIncluded, +cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..ae5bc11682a --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..3f3ed8c658f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..0934c7ea056 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/includes/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cIncluded, + cExampleIncluded, +cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..3f3ed8c658f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_includes/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..1b7c89d508f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/includes/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cIncluded, + cExampleIncluded, +cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..b6ece0d9620 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/service/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/service/cbindings.pxd new file mode 100644 index 00000000000..d8462eb7533 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/service/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/service.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from service.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..3f3ed8c658f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_service/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_transitive/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_transitive/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..efe4707a3b8 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_auto_migrate_transitive/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..1b7c89d508f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/includes/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cIncluded, + cExampleIncluded, +cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/matching_struct_names/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/matching_struct_names/cbindings.pxd new file mode 100644 index 00000000000..4d1f4d19843 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/matching_struct_names/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/matching_struct_names.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from matching_struct_names.types cimport ( + cMyStruct, + cCombo, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..b6ece0d9620 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..3f3ed8c658f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_matching_struct_names/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..1b7c89d508f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/includes/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cIncluded, + cExampleIncluded, +cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..b6ece0d9620 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyStruct, + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/service/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/service/cbindings.pxd new file mode 100644 index 00000000000..d8462eb7533 --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/service/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/includes/src/service.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from service.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/transitive/cbindings.pxd b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/transitive/cbindings.pxd new file mode 100644 index 00000000000..3f3ed8c658f --- /dev/null +++ b/thrift/compiler/test/fixtures/includes/out/py3_service/gen-py3/transitive/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for transitive.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from transitive.types cimport ( + cFoo, + cExampleFoo, +) diff --git a/thrift/compiler/test/fixtures/inheritance/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/inheritance/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..d25aa493e5d --- /dev/null +++ b/thrift/compiler/test/fixtures/inheritance/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/inheritance/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/foo/cbindings.pxd b/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/foo/cbindings.pxd new file mode 100644 index 00000000000..55e07a095f0 --- /dev/null +++ b/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/foo/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for foo.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from foo.types cimport ( + cFields, + ) diff --git a/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..90806b958b0 --- /dev/null +++ b/thrift/compiler/test/fixtures/inject_metadata_fields/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/inject_metadata_fields/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFields, + cFieldsInjectedToEmptyStruct, + cFieldsInjectedToStruct, + cFieldsInjectedWithIncludedStruct, + ) diff --git a/thrift/compiler/test/fixtures/int_limits/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/int_limits/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..0dac93cb19f --- /dev/null +++ b/thrift/compiler/test/fixtures/int_limits/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,17 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/int_limits/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cLimits, + cmax_i64_const, +cmin_i64_const, +cmax_i32_const, +cmin_i32_const, +cmax_i16_const, +cmin_i16_const, +cmax_byte_const, +cmin_byte_const, +) diff --git a/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/another_interactions/shared/cbindings.pxd b/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/another_interactions/shared/cbindings.pxd new file mode 100644 index 00000000000..18943c9e4e6 --- /dev/null +++ b/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/another_interactions/shared/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for shared.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.fixtures.another_interactions.shared.types cimport ( + cDoSomethingResult, + ) diff --git a/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/interactions/module/cbindings.pxd b/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/interactions/module/cbindings.pxd new file mode 100644 index 00000000000..4c6a8b80e7d --- /dev/null +++ b/thrift/compiler/test/fixtures/interactions/out/py3/gen-py3/test/fixtures/interactions/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/interactions/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.fixtures.interactions.module.types cimport ( + cCustomException, + ) diff --git a/thrift/compiler/test/fixtures/list/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/list/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..32254ecea3c --- /dev/null +++ b/thrift/compiler/test/fixtures/list/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/list/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cTEST_MAP, +) diff --git a/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/includes/cbindings.pxd b/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/includes/cbindings.pxd new file mode 100644 index 00000000000..2064c9080a8 --- /dev/null +++ b/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/includes/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for includes.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from includes.types cimport ( + cAnEnum, + cAStruct, + cAStructB, + cIncludedConstant, +) diff --git a/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..ea8ebe0b844 --- /dev/null +++ b/thrift/compiler/test/fixtures/mcpp2-compare/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,46 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/mcpp2-compare/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyEnumA, + cAnnotatedEnum, + cAnnotatedEnum2, + cMyEnumB, + cEmpty, + cASimpleStruct, + cASimpleStructNoexcept, + cMyStruct, + cSimpleUnion, + cComplexUnion, + cAnException, + cAnotherException, + ccontainerStruct, + cMyIncludedStruct, + cAnnotatedStruct, + cComplexContainerStruct, + cFloatStruct, + cFloatUnion, + cAllRequiredNoExceptMoveCtrStruct, + caBool, +caByte, +ca16BitInt, +ca32BitInt, +ca64BitInt, +caFloat, +caDouble, +caString, +caList, +canEmptyMap, +caMap, +caSet, +caListOfLists, +cstates, +cAConstList, +cAnIntegerEnum2, +cListOfIntsFromEnums, +cconstEnumA, +cconstEnumB, +) diff --git a/thrift/compiler/test/fixtures/mixin/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/mixin/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..577d4e5a750 --- /dev/null +++ b/thrift/compiler/test/fixtures/mixin/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/mixin/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMixin1, + cMixin2, + cMixin3Base, + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/namespace/out/py3/gen-py3/my/namespacing/test/module/module/cbindings.pxd b/thrift/compiler/test/fixtures/namespace/out/py3/gen-py3/my/namespacing/test/module/module/cbindings.pxd new file mode 100644 index 00000000000..9aacd1b8465 --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace/out/py3/gen-py3/my/namespacing/test/module/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/namespace/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from my.namespacing.test.module.module.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/namespace/out/py3_emptyns/gen-py3/emptyns/cbindings.pxd b/thrift/compiler/test/fixtures/namespace/out/py3_emptyns/gen-py3/emptyns/cbindings.pxd new file mode 100644 index 00000000000..4a96689f137 --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace/out/py3_emptyns/gen-py3/emptyns/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/namespace/src/emptyns.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from emptyns.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/extend/test/extend/cbindings.pxd b/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/extend/test/extend/cbindings.pxd new file mode 100644 index 00000000000..e6619d52e23 --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/extend/test/extend/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/namespace/src/extend.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from my.namespacing.extend.test.extend.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/test/hsmodule/cbindings.pxd b/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/test/hsmodule/cbindings.pxd new file mode 100644 index 00000000000..2c5d3985813 --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace/out/py3_extend/gen-py3/my/namespacing/test/hsmodule/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for hsmodule.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from my.namespacing.test.hsmodule.types cimport ( + cHsFoo, + ) diff --git a/thrift/compiler/test/fixtures/namespace_from_package/out/py3/gen-py3/test/namespace_from_package/module/cbindings.pxd b/thrift/compiler/test/fixtures/namespace_from_package/out/py3/gen-py3/test/namespace_from_package/module/cbindings.pxd new file mode 100644 index 00000000000..6c8378e0198 --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace_from_package/out/py3/gen-py3/test/namespace_from_package/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/namespace_from_package/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.namespace_from_package.module.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/py3/gen-py3/test/namespace_from_package_without_module_name/module/cbindings.pxd b/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/py3/gen-py3/test/namespace_from_package_without_module_name/module/cbindings.pxd new file mode 100644 index 00000000000..761723419ab --- /dev/null +++ b/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/py3/gen-py3/test/namespace_from_package_without_module_name/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/namespace_from_package_without_module_name/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from test.namespace_from_package_without_module_name.module.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/optionals/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/optionals/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..261e7cbf3ee --- /dev/null +++ b/thrift/compiler/test/fixtures/optionals/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/optionals/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cAnimal, + cColor, + cVehicle, + cPerson, + ) diff --git a/thrift/compiler/test/fixtures/params/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/params/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..987fbdd9a9f --- /dev/null +++ b/thrift/compiler/test/fixtures/params/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/params/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/py3/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/py3/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..e302e2b6f5a --- /dev/null +++ b/thrift/compiler/test/fixtures/py3/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,34 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/py3/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cAnEnum, + cAnEnumRenamed, + cFlags, + cSimpleException, + cOptionalRefStruct, + cSimpleStruct, + cHiddenTypeFieldsStruct, + cComplexStruct, + cBinaryUnion, + cBinaryUnionStruct, + cA_BOOL, +cA_BYTE, +cTHE_ANSWER, +cA_NUMBER, +cA_BIG_NUMBER, +cA_REAL_NUMBER, +cA_FAKE_NUMBER, +cA_WORD, +cSOME_BYTES, +cA_STRUCT, +cEMPTY, +cWORD_LIST, +cSOME_MAP, +cDIGITS, +cA_CONST_MAP, +cANOTHER_CONST_MAP, +) diff --git a/thrift/compiler/test/fixtures/py3/out/py3_auto_migrate/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/py3/out/py3_auto_migrate/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..e302e2b6f5a --- /dev/null +++ b/thrift/compiler/test/fixtures/py3/out/py3_auto_migrate/gen-py3/module/cbindings.pxd @@ -0,0 +1,34 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/py3/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cAnEnum, + cAnEnumRenamed, + cFlags, + cSimpleException, + cOptionalRefStruct, + cSimpleStruct, + cHiddenTypeFieldsStruct, + cComplexStruct, + cBinaryUnion, + cBinaryUnionStruct, + cA_BOOL, +cA_BYTE, +cTHE_ANSWER, +cA_NUMBER, +cA_BIG_NUMBER, +cA_REAL_NUMBER, +cA_FAKE_NUMBER, +cA_WORD, +cSOME_BYTES, +cA_STRUCT, +cEMPTY, +cWORD_LIST, +cSOME_MAP, +cDIGITS, +cA_CONST_MAP, +cANOTHER_CONST_MAP, +) diff --git a/thrift/compiler/test/fixtures/py3/out/py3_empty/gen-py3/empty/cbindings.pxd b/thrift/compiler/test/fixtures/py3/out/py3_empty/gen-py3/empty/cbindings.pxd new file mode 100644 index 00000000000..a5eda0120e2 --- /dev/null +++ b/thrift/compiler/test/fixtures/py3/out/py3_empty/gen-py3/empty/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/py3/src/empty.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from empty.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module0/cbindings.pxd b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module0/cbindings.pxd new file mode 100644 index 00000000000..ea5966ccbf9 --- /dev/null +++ b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module0/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for module0.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module0.types cimport ( + cEnum, + cStruct, + cc0, +ce0s, +) diff --git a/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module1/cbindings.pxd b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module1/cbindings.pxd new file mode 100644 index 00000000000..43e797203dc --- /dev/null +++ b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module1/cbindings.pxd @@ -0,0 +1,12 @@ +# +# Autogenerated by Thrift for module1.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module1.types cimport ( + cEnum, + cStruct, + cc1, +ce1s, +) diff --git a/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module2/cbindings.pxd b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module2/cbindings.pxd new file mode 100644 index 00000000000..fb7190eef57 --- /dev/null +++ b/thrift/compiler/test/fixtures/qualified/out/py3/gen-py3/module2/cbindings.pxd @@ -0,0 +1,13 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/qualified/src/module2.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module2.types cimport ( + cStruct, + cBigStruct, + cc2, +cc3, +cc4, +) diff --git a/thrift/compiler/test/fixtures/refs/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/refs/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..3c8c1de6b85 --- /dev/null +++ b/thrift/compiler/test/fixtures/refs/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,34 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/refs/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyEnum, + cTypedEnum, + cMyUnion, + cNonTriviallyDestructibleUnion, + cMyField, + cMyStruct, + cStructWithUnion, + cRecursiveStruct, + cStructWithContainers, + cStructWithSharedConst, + cEmpty, + cStructWithRef, + cStructWithBox, + cStructWithInternBox, + cStructWithTerseInternBox, + cAdaptedStructWithInternBox, + cAdaptedStructWithTerseInternBox, + cStructWithRefTypeUnique, + cStructWithRefTypeShared, + cStructWithRefTypeSharedConst, + cStructWithRefAndAnnotCppNoexceptMoveCtor, + cStructWithString, + ckStructWithRef, +ckStructWithRefTypeUnique, +ckStructWithRefTypeShared, +ckStructWithRefTypeSharedConst, +) diff --git a/thrift/compiler/test/fixtures/req-opt/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/req-opt/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..5e317bb4acf --- /dev/null +++ b/thrift/compiler/test/fixtures/req-opt/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/req-opt/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/serialization_field_order/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/serialization_field_order/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..bda96770a78 --- /dev/null +++ b/thrift/compiler/test/fixtures/serialization_field_order/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/serialization_field_order/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFoo, + cFoo2, + ) diff --git a/thrift/compiler/test/fixtures/single_file_service/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/single_file_service/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..3238379f712 --- /dev/null +++ b/thrift/compiler/test/fixtures/single_file_service/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/single_file_service/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/single_file_service/out/py3_module_structs/gen-py3/module_structs/cbindings.pxd b/thrift/compiler/test/fixtures/single_file_service/out/py3_module_structs/gen-py3/module_structs/cbindings.pxd new file mode 100644 index 00000000000..c9080787454 --- /dev/null +++ b/thrift/compiler/test/fixtures/single_file_service/out/py3_module_structs/gen-py3/module_structs/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/single_file_service/src/module_structs.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module_structs.types cimport ( + cFoo, + ) diff --git a/thrift/compiler/test/fixtures/sink/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/sink/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..59f13e40e13 --- /dev/null +++ b/thrift/compiler/test/fixtures/sink/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,15 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/sink/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cInitialResponse, + cFinalResponse, + cSinkPayload, + cCompatibleWithKeywordSink, + cInitialException, + cSinkException1, + cSinkException2, + ) diff --git a/thrift/compiler/test/fixtures/stream/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/stream/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..da4678d0090 --- /dev/null +++ b/thrift/compiler/test/fixtures/stream/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/stream/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cFooStreamEx, + cFooEx, + cFooEx2, + ) diff --git a/thrift/compiler/test/fixtures/templated-deserialize/out/py3/gen-py3/module/cbindings.pxd b/thrift/compiler/test/fixtures/templated-deserialize/out/py3/gen-py3/module/cbindings.pxd new file mode 100644 index 00000000000..1faa96e9f10 --- /dev/null +++ b/thrift/compiler/test/fixtures/templated-deserialize/out/py3/gen-py3/module/cbindings.pxd @@ -0,0 +1,11 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/templated-deserialize/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from module.types cimport ( + cMyEnumA, + cSmallStruct, + ccontainerStruct, + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/a/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/a/cbindings.pxd new file mode 100644 index 00000000000..7ef5dff843e --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/a/cbindings.pxd @@ -0,0 +1,9 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/transitive-deps/src/a.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from a.types cimport ( + cA, + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/b/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/b/cbindings.pxd new file mode 100644 index 00000000000..699d99d4a09 --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/b/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for b.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from b.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/c/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/c/cbindings.pxd new file mode 100644 index 00000000000..7597d979669 --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_a/gen-py3/c/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for c.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from c.types cimport ( + cC, + cE, + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/b/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/b/cbindings.pxd new file mode 100644 index 00000000000..699d99d4a09 --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/b/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for b.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from b.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/c/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/c/cbindings.pxd new file mode 100644 index 00000000000..7597d979669 --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/c/cbindings.pxd @@ -0,0 +1,10 @@ +# +# Autogenerated by Thrift for c.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from c.types cimport ( + cC, + cE, + ) diff --git a/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/s/cbindings.pxd b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/s/cbindings.pxd new file mode 100644 index 00000000000..dab9ce35fe0 --- /dev/null +++ b/thrift/compiler/test/fixtures/transitive-deps/out/py3_s/gen-py3/s/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/transitive-deps/src/s.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from s.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/included/cbindings.pxd b/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/included/cbindings.pxd new file mode 100644 index 00000000000..18dae572f02 --- /dev/null +++ b/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/included/cbindings.pxd @@ -0,0 +1,8 @@ +# +# Autogenerated by Thrift for included.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from apache.thrift.fixtures.types.included.types cimport ( + ) diff --git a/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/module/cbindings.pxd b/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/module/cbindings.pxd new file mode 100644 index 00000000000..5491322c6bd --- /dev/null +++ b/thrift/compiler/test/fixtures/types/out/py3/gen-py3/apache/thrift/fixtures/types/module/cbindings.pxd @@ -0,0 +1,44 @@ +# +# Autogenerated by Thrift for thrift/compiler/test/fixtures/types/src/module.thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# @generated +# +from apache.thrift.fixtures.types.module.types cimport ( + chas_bitwise_ops, + cis_unscoped, + cMyForwardRefEnum, + cempty_struct, + cdecorated_struct, + cContainerStruct, + cCppTypeStruct, + cVirtualStruct, + cMyStructWithForwardRefEnum, + cTrivialNumeric, + cTrivialNestedWithDefault, + cComplexString, + cComplexNestedWithDefault, + cMinPadding, + cMinPaddingWithCustomType, + cMyStruct, + cMyDataItem, + cRenaming, + cAnnotatedTypes, + cForwardUsageRoot, + cForwardUsageStruct, + cForwardUsageByRef, + cIncompleteMap, + cIncompleteMapDep, + cCompleteMap, + cCompleteMapDep, + cIncompleteList, + cIncompleteListDep, + cCompleteList, + cCompleteListDep, + cAdaptedList, + cDependentAdaptedList, + cAllocatorAware, + cAllocatorAware2, + cTypedefStruct, + cStructWithDoubleUnderscores, + )