Protobuf Team Bot
a847a8dc4b
Updating version.json and repo version numbers to: 22.0
2 years ago
Protobuf Team Bot
a594141cc4
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
1de344fcd1
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
4dd7a1e380
Updating version.json and repo version numbers to: 22.0-rc3
2 years ago
Xavier Bonaventura
c8ebeb1733
Set incompatible_disallow_empty_glob in CI tests
...
In order to flip the flag, all downstream projects should be adapted. However, it is hard to fix them all if there are constant regressions. Adding it to the CI will ensure that once the project can build with incompatible_disallow_empty_glob it can keep building like that.
See: bazelbuild/bazel#15327
PiperOrigin-RevId: 507927389
2 years ago
Protobuf Team Bot
fa7a079c11
Updating version.json and repo version numbers to: 22.0-rc2
2 years ago
Deanna Garcia
f775d49299
Use python3 setup.py sdist to build the source distribution for python.
...
Our pkg_tar rule was missing a few template files for python. Using setup.py will guarantee conformance with python package requirements.
Adds MANIFEST.in to include c header/inc files in the source distribution.
PiperOrigin-RevId: 506638326
2 years ago
Deanna Garcia
702d95891d
Use "manylinux" for release wheel platform name
...
A while back, the targets were all renamed from "manylinux" to "linux" in order to allow for local testing. However, we still need the release artifacts to use "manylinux" so this conditions the name on whether it is a release or local testing.
PiperOrigin-RevId: 505831116
2 years ago
Joshua Haberman
1c8ddf248e
Removed unused argument to error message.
...
It is not useful to include the argument, because this message is only printed when the argument type is `kUpb_CType_Message`.
PiperOrigin-RevId: 505230804
2 years ago
Protobuf Team Bot
2b406251e4
Updating version.json and repo version numbers to: 22.0-rc1
2 years ago
Mike Kruskal
7bc3ed8835
Migrating downstream error collectors to use the new string_view overrides.
...
PiperOrigin-RevId: 504607264
2 years ago
Mike Kruskal
a9f1ea6371
Breaking change: Migrate to Abseil's logging library.
...
This deletes our old branches of internal Abseil code in favor of their newly open-sourced library. Notably, this removes the ability to turn CHECK crashes into exceptions.
PiperOrigin-RevId: 504460562
2 years ago
Mike Kruskal
7930cd1f9d
Upgrade to Abseil LTS 20230117 ( #11622 )
...
Closes #11622
PiperOrigin-RevId: 503588252
2 years ago
Mike Kruskal
9ee25ad91d
Silence deprecated usage
2 years ago
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
Mike Kruskal
06b5775fd7
Remove reference to deleted test.
...
This caused failures in protobuf CI
PiperOrigin-RevId: 501972926
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
Jie Luo
9b5a084118
check if testCreatePrototypeOverride exist
...
PiperOrigin-RevId: 501229501
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
Protobuf Team Bot
b8f35b2628
Fix missing parameter lists.
...
In C (before C23), a missing parameter list means “parameters are unknown”, not
“no parameters” (unlike C++). See
https://en.cppreference.com/w/c/language/function_declaration .
PiperOrigin-RevId: 499559101
2 years ago
Deanna Garcia
d78c7bc53f
Remove MSVC tests and document that source is just for ubuntu/macos
2 years ago
Deanna Garcia
f74dad67f8
Try static linking
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
bbcc9ca8e8
Specify language of extension
2 years ago
Deanna Garcia
100a025766
Change header installation now that we are using pip
2 years ago
Deanna Garcia
f887fe30aa
Add lots more source files
2 years ago
Joshua Haberman
7cd8f6c940
Ported more cases of wire format parsing to upb_WireReader.
...
PiperOrigin-RevId: 498502557
2 years ago
Eric Salo
0c6b72dbf8
replace upb_Map_Delete()
...
We would like for upb_Map_Delete() to optionally return the deleted value.
Unfortunately this will require several steps since we are crossing repos.
Step #3 : Give the new footprint to the original function and switch back to it.
Since we're already touching map.h, also mark UPB_API as appropriate.
PiperOrigin-RevId: 498398474
2 years ago
Deanna Garcia
4efa9c3c40
Add manifest
2 years ago
Deanna Garcia
d21ea652dd
Add include dir to setup.py
2 years ago
Deanna Garcia
c740802bcb
Update proto dep and setup.py
2 years ago
Eric Salo
26e9a75294
remove wire/types.h from the :wire build target
...
PiperOrigin-RevId: 498167993
2 years ago
Eric Salo
3f173c4b81
add upb_Map_Delete2()
...
We would like for upb_Map_Delete() to optionally return the deleted value.
Unfortunately this will require several steps since we are crossing repos.
Step #1 : Add a new version of the function and point all local uses at it.
PiperOrigin-RevId: 497275930
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
Deanna Garcia
031a12b6a5
Move pyext to python dir and change test installation
2 years ago
Deanna Garcia
9880136636
Add bazel target for source distribution
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