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
Sandy Zhang
a1d054be85
Internal Change
...
PiperOrigin-RevId: 490276306
2 years ago
Eric Salo
03b1dee5cc
implement upb_Map_Next() as the new upb_Map iterator
...
update upb to use upb_Map_Next()
remove upb_MapIterator_SetValue(), which was declared but not actually implemented
remove upb_MapIterator_Done(), which was implemented but not actually used
PiperOrigin-RevId: 489989481
2 years ago
Eric Salo
ff6439fba0
move the wire type definitions into upb/wire/ where they belong
...
PiperOrigin-RevId: 489500430
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
Eric Salo
70566461f9
replace and repair the integer hash table iterator:
...
- replace all instances of the deprecated iterator with the much nicer new one
- fix a bug which caused the new iterator to skip all values in the hash array
- fix a bug which caused the new iterator to skip the first value in the hash table
- delete the old iterator code
- also replace most uses of the deprecated string hash table iterator
PiperOrigin-RevId: 489093240
2 years ago
Protobuf Team Bot
d3ec4b63c9
Add Parse/Serialize templates to support shared_ptr/unique_ptr.
...
Fix UBSAN in _upb_Message_Clear due to unsigned UPB_PTR_AT
PiperOrigin-RevId: 489007182
2 years ago
Jie Luo
3b4c4d0123
Remove syntax usage in test_util.py
...
PiperOrigin-RevId: 488977024
2 years ago
Joshua Haberman
023c4da591
Enabled TAP testing for upb on Windows via Lexan.
...
We disable targets that are not currently working on Windows.
PiperOrigin-RevId: 488560033
2 years ago
Eric Salo
b3cb3fbea8
create upb/hash/
...
The next lowest build target to scrub is the hash table. We already have a few
other things called 'table' (mini table, fast table) so let's just go with
'hash' here. Split apart the headers into int and str branches sharing common
definitions. Leave the core functions in a single .c for inlining.
PiperOrigin-RevId: 488388767
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
Eric Salo
75907f7af9
rename the upb_MiniTable subtypes to follow the upb style guide:
...
upb_MiniTable_Enum -> upb_MiniTableEnum
upb_MiniTable_Extension -> upb_MiniTableExtension
upb_MiniTable_Field -> upb_MiniTableField
upb_MiniTable_File -> upb_MiniTableFile
upb_MiniTable_Sub -> upb_MiniTableSub
PiperOrigin-RevId: 486712960
2 years ago
Eric Salo
f6307877d3
move portability stuff into upb/port/
...
Also delete redundant system #includes that are already pulled in by port/def.inc
PiperOrigin-RevId: 486398989
2 years ago
Jie Luo
da9de8d4d4
Added is_closed to EnumDescriptor in protobuf python
...
PiperOrigin-RevId: 486274963
2 years ago
Jie Luo
9b725fb9a3
use FieldDescriptor.has_presence instead of file.syntax in python_message.py
...
PiperOrigin-RevId: 486254134
2 years ago
Jie Luo
73661563db
Added is_closed to EnumDescriptor in protobuf python upb
...
PiperOrigin-RevId: 486253678
2 years ago
Mike Kruskal
97c0f376f6
Internal changes
...
PiperOrigin-RevId: 485917621
2 years ago
Mike Kruskal
d934383117
Internal changes
...
PiperOrigin-RevId: 485912044
2 years ago
Eric Salo
0bb466356d
create text/ subdir for all text-format code
...
Currently all we have is an encoder but eventually a decoder will also go here.
PiperOrigin-RevId: 485911424
2 years ago
Jie Luo
5fc9c37208
Internal change
...
PiperOrigin-RevId: 485680539
2 years ago
Joshua Haberman
0ff26563c9
Enable the Copybara sync for all files.
...
PiperOrigin-RevId: 485351777
2 years ago
Mike Kruskal
6e2102c8e3
Internal change
...
PiperOrigin-RevId: 485200609
2 years ago
Mike Kruskal
0890984ce6
Internal change
...
PiperOrigin-RevId: 485191150
2 years ago
Mike Kruskal
0eb9504485
Internal change
...
PiperOrigin-RevId: 485179950
2 years ago
Mike Kruskal
0ab63a7699
Sync from Piper @484138213
...
PROTOBUF_SYNC_PIPER
2 years ago
Protobuf Team Bot
0135eb0e52
Updating version.json and repo version numbers to: 21.9
2 years ago
Mike Kruskal
41017ef8dc
Fixes https://github.com/protocolbuffers/upb/issues/869
...
PiperOrigin-RevId: 483794621
2 years ago
Mike Kruskal
449b6e860f
Fixing merge issues
2 years ago
Mike Kruskal
c302d90db5
Merge 21.8 into main ( #10788 )
...
* Force uninstall protobuf in python macos builds
We are seeing failures in brew uninstall protobuf due to no package. Change this to a force install to avoid the error.
* Fix spelling errors (#10717 )
* Merge pull request #10200 from tonydnewell/bugfix/protobuf-7474
Fix for grpc.tools #17995 & protobuf #7474 (handle UTF-8 paths in argumentfile)
* Upgrade to kotlin 1.6
* 21.x No longer define no_threadlocal on OpenBSD
* Upgrade kokoro to Xcode 14 (#10732 )
* Upgrade kokoro to Xcode 14
* Fix osx errors
* Merge pull request #10770 from protocolbuffers/googleberg-cl-480629524
Mark default instance as immutable first to avoid race during static initialization of default instances.
* Auto capitalize enums name in Ruby (#10454 ) (#10763 )
This closes #1965 .
* Edit toolchain to work with absl dep
* Bump upb to latest version after fixes applied (#10783 )
* 21.x 202210180838 (#10785 )
* Updating version.json and repo version numbers to: 21.8
* Update changelog
Co-authored-by: Protobuf Team Bot <protobuf-team-bot@google.com>
* Update generated protos
Co-authored-by: deannagarcia <69992229+deannagarcia@users.noreply.github.com>
Co-authored-by: Matt Fowles Kulukundis <matt.fowles@gmail.com>
Co-authored-by: Deanna Garcia <deannagarcia@google.com>
Co-authored-by: Brad Smith <brad@comstyle.com>
Co-authored-by: Jerry Berg <107155935+googleberg@users.noreply.github.com>
Co-authored-by: tison <wander4096@gmail.com>
Co-authored-by: Protobuf Team Bot <protobuf-team-bot@google.com>
2 years ago
Mike Kruskal
591fe403c9
21.x 202210180838 ( #10785 )
...
* Updating version.json and repo version numbers to: 21.8
* Update changelog
Co-authored-by: Protobuf Team Bot <protobuf-team-bot@google.com>
2 years ago
Mike Kruskal
9e2d7f02da
Support local builds of upb's python wheel build.
...
PiperOrigin-RevId: 481207184
2 years ago
Eric Salo
df34b04658
make upb_ExtensionRegistry_AddArray() and upb_ExtensionRegistry_Lookup() public
...
Previously these were internal _upb functions but it turns out that they are also useful outside of upb.
PiperOrigin-RevId: 480997511
2 years ago
Mike Kruskal
fc73215f86
Internal change
...
PiperOrigin-RevId: 480942674
2 years ago
Mike Kruskal
72f7799d12
Internal change
...
PiperOrigin-RevId: 480925629
2 years ago
Mike Kruskal
23f1481386
Sync from Piper @480194141
...
PROTOBUF_SYNC_PIPER
2 years ago
Eric Salo
85bf4677b2
lock down internal reflection
...
- upb_DefPool_FindExtensionByMiniTable() has been promoted to a public function.
- There are now zero uses of the internal reflection headers outside of upb core (but still a few left in generated code).
PiperOrigin-RevId: 480211522
2 years ago
Eric Salo
41335a03be
normalize upb_Message_New()
...
We had _upb_Message_New(), which created a message from a mini table and was
being used outside of upb even though it is an internal-only function.
We also had upb_Message_New(), which created a message from a message def.
Now there is a single public function, upb_Message_New(), which creates a
message from a mini table and covers all use cases. (The internal version has the same definition and is used for inlining.)
PiperOrigin-RevId: 480169804
2 years ago
Mike Kruskal
2c71df4547
Cleanup issues with internal sync ( #10752 )
...
* Deleting vendored mox.py
* Deleting unused imports
* Delete vendored stubout.py
2 years ago
Protobuf Team Bot
c172bfb4bc
Import numpy_test in upb wrapper from protobuf
...
PiperOrigin-RevId: 479637272
3 years ago
Mike Kruskal
eb6ebf9dd0
Sync from Piper @479479714
...
PROTOBUF_SYNC_PIPER
3 years ago