Mike Kruskal
f60f478f45
Enable new JSON field name conflict handling.
...
This will apply uniformly in both proto2 and proto3, taking into account `json_name` options. See https://github.com/protocolbuffers/protobuf/pull/10750 for more details.
PiperOrigin-RevId: 502972769
2 years ago
Mike Kruskal
3aaaf7d7ce
Add DescriptorPool-level opt-out for new JSON field name handling.
...
PiperOrigin-RevId: 502959921
2 years ago
Jie Luo
c80e7efac7
Soft deprecate python MessageFactory
...
Soft deprecate python MessageFactory. Added new replacement APIs GetMessageClass(descriptor) and GetMessagesFromFiles(files, pool)
PiperOrigin-RevId: 501802633
2 years ago
Protobuf Team Bot
258d67c0d3
Fix UnicodeDecodeError exception catching.
...
`str_lines` is a generator object, it won't be executed until Tokenizer() uses it.
PiperOrigin-RevId: 499824005
2 years ago
Jie Luo
f75fd051d6
Change extension_handle to field_descriptor in python `HasExtension()` and `ClearExtension()`
...
PiperOrigin-RevId: 499349711
2 years ago
Deanna Garcia
c59cc4d85a
Add files to python sources that we will need for the upb source distribution
...
PiperOrigin-RevId: 497247234
2 years ago
Matt Fowles Kulukundis
1697e4558b
Main 202212161220 ( #11340 )
...
Closes #11340
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11340 from protocolbuffers:main-202212161220 c39ccb73fb
PiperOrigin-RevId: 496029356
2 years ago
Protobuf Team Bot
9238c4843a
Add debug_redact field option to protobuf.
...
PiperOrigin-RevId: 496016877
2 years ago
Jie Luo
883ec1c3ef
Raise errors when serialize inf and nan for Value.number_value in json format. fixes #11259
...
PiperOrigin-RevId: 495976996
2 years ago
Deanna Garcia
d0169ff9d1
Create python source file distribution to use for python source wheel.
...
PiperOrigin-RevId: 495917777
2 years ago
Hongcheng Xu
68d25df1d2
Clarifies ParseFromString method takes only binary form of proto
...
PiperOrigin-RevId: 495898678
2 years ago
Tommy Dew
1e6f8761cd
Resolve #10949 : use raise from in json_format.py ( #10966 )
...
Resolve #10949
Closes #10966
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/10966 from TommyDew42:use-raise-from-in-try-except 7b5cc290a1
PiperOrigin-RevId: 495774419
2 years ago
Mike Kruskal
9baae6adcb
Clean up aarch64 tests.
...
This bumps us to gcc 6 (rather than 4.8), which fully supports C++14, and migrates the Python tests to our Bazel-based system. C#, PHP, and Ruby will remain on CMake + alternate build system for now.
PiperOrigin-RevId: 495501807
2 years ago
Mike Kruskal
6df908957a
Internal changes
...
PiperOrigin-RevId: 495485093
2 years ago
Mike Kruskal
bfed218c71
Internal changes
...
PiperOrigin-RevId: 495152163
2 years ago
Jie Luo
0dd27f9f93
delete python/google/protobuf/protobuf_test.py which is dead
...
PiperOrigin-RevId: 495146557
2 years ago
Jie Luo
de28d0b090
Removed python files from file_list and replace it with directory-based renames.
...
PiperOrigin-RevId: 495126987
2 years ago
Protobuf Team Bot
680881def1
Internal change
...
PiperOrigin-RevId: 495049673
2 years ago
Protobuf Team Bot
f6f6af5472
Internal change
...
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11257 from Neakxs:apply-registration-for-protocel-extensions 8d04626e85
PiperOrigin-RevId: 494841129
2 years ago
Protobuf Team Bot
f0dc78d7e6
Updating version.json and repo version numbers to: 21.12
2 years ago
Eric Salo
1f58f1d7b8
allow reserved enums to be negative
...
https://github.com/protocolbuffers/upb/issues/1024
PiperOrigin-RevId: 494414605
2 years ago
Mike Kruskal
912850b6f4
Fix python breakage from bad export
...
PiperOrigin-RevId: 494305314
2 years ago
Joshua Haberman
a49bfa9825
Fixed text_format_test.py's imports.
...
PiperOrigin-RevId: 494249469
2 years ago
Jie Luo
324f26e0cd
Internal change only
...
PiperOrigin-RevId: 494030289
2 years ago
Mike Kruskal
032c9c8ada
Internal changes
...
PiperOrigin-RevId: 493986824
2 years ago
Protobuf Team Bot
99eb7fa891
Updating version.json and repo version numbers to: 21.11
2 years ago
Jie Luo
ea1c922d75
Internal change only
...
PiperOrigin-RevId: 493925498
2 years ago
Protobuf Team Bot
a474c5b9ff
Updating version.json and repo version numbers to: 21.11
2 years ago
Jie Luo
b9eb6bf759
Internal change only
...
PiperOrigin-RevId: 493742523
2 years ago
Mike Kruskal
9d5dc6c9ec
Internal changes
...
PiperOrigin-RevId: 493456444
2 years ago
Jie Luo
0822add4d4
Internal change only
...
PiperOrigin-RevId: 493165757
2 years ago
Jie Luo
9e12e81bc2
Remove required fields in protobuf python test protos
...
PiperOrigin-RevId: 493096286
2 years ago
Mike Kruskal
3bc50497eb
Bump upb version and refactor python compatibility.
...
This pulls in updates to system_python, which allows for better handling of our non-hermetic setup. Specifically, our python tests are marked incompatible on systems without a python installation. This will cause them to get skipped by wildcard expansions (which is why we add 1 explicit target to the kokoro builds).
PiperOrigin-RevId: 492286518
2 years ago
Mike Kruskal
129c3a4697
Fix copybara transformations for Python/C++ code.
...
PiperOrigin-RevId: 492014560
2 years ago
Jie Luo
24743cd6c7
Remove _SetType from python api_implementation.py
...
PiperOrigin-RevId: 492000386
2 years ago
Jie Luo
3d3bebf8ab
Internal change only
...
PiperOrigin-RevId: 491993057
2 years ago
Protobuf Team Bot
11bc195441
Updating version.json and repo version numbers to: 21.10
2 years ago
Protobuf Team Bot
ed63a2c7e4
Updating version.json and repo version numbers to: 21.10-rc0
2 years ago
Eric Salo
4ac90bbb69
add unit test for recent upb bug fix
...
PiperOrigin-RevId: 490642761
2 years ago
Deanna Garcia
5251a44893
Upgrade rules_python to newest version.
...
This requires moving off the soon to be deprecated pip_install to pip_parse and pinning the numpy version
PiperOrigin-RevId: 490345714
2 years ago
Protobuf Team Bot
b141bf9b1e
protobuf: Improve error message while constructing messages in Python.
...
"Value is not iterable" is sometimes not that helpful. Lets at least mention the field name.
PiperOrigin-RevId: 489485451
2 years ago
Karol M. Langner
6e75fa152e
Add repeated and nested message fields to deprecated test proto
...
PiperOrigin-RevId: 489237987
2 years ago
Jie Luo
3b4c4d0123
Remove syntax usage in test_util.py
...
PiperOrigin-RevId: 488977024
2 years ago
Mike Kruskal
a13c2fbc9e
Internal change
...
PiperOrigin-RevId: 487925995
2 years ago
Andrii Oriekhov
21815faf0f
Copybara import of the project:
...
--
2daf4262a1
by Andrii Oriekhov <andriyorehov@gmail.com>:
add GitHub URL for PyPi
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/10841 from andriyor:patch-1 2daf4262a1
PiperOrigin-RevId: 487868530
2 years ago
645775992
c1a42b34e5
Copybara import of the project:
...
--
c348d1896d
by 645775992 <645775992@qq.com>:
update sphinx 2.3.1 to 3.0.4
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/10962 from 645775992:oscs_fix_cdmguj0au51seiv9qjng c348d1896d
PiperOrigin-RevId: 487858789
2 years ago
Mike Kruskal
e19c2606b3
Internal changes
...
PiperOrigin-RevId: 487447243
2 years ago
Jie Luo
f6f7046725
Use has_presence instead of syntax check in text_format.
...
Remove syntax check in descriptor_test.py
PiperOrigin-RevId: 487362335
2 years ago
Mike Kruskal
53e4fa3279
Internal change
...
PiperOrigin-RevId: 487029109
2 years ago
Jie Luo
da9de8d4d4
Added is_closed to EnumDescriptor in protobuf python
...
PiperOrigin-RevId: 486274963
2 years ago