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
Jie Luo
0def88b582
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
Jie Luo
44e6f6699a
Internal change only
...
PiperOrigin-RevId: 493742523
2 years ago
Jie Luo
0980a7b418
Internal change only
...
PiperOrigin-RevId: 493712594
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
Deanna Garcia
92dbe4b8bb
Add license file to pypi wheels.
...
Addresses https://github.com/protocolbuffers/protobuf/issues/10936 .
This requires updating to the newest version of rules_python to use the new py_wheel API that includes a parameter for extra distinfo files
PiperOrigin-RevId: 493060514
2 years ago
Eric Salo
b747edb830
append "ByDef" to names of message accessors that use reflection
...
PiperOrigin-RevId: 493018484
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
248ed86f2b
Add better handling for systems without python3 installed.
...
The current behavior will crash any Bazel command immediately, due to our declared pip dependencies in WORKSPACE, if python3 can't be found. The new behavior will mock out these workspace dependencies and allow any non-python targets to run. Python targets will be skipped by wildcard expressions if there's no system python3, and will fail when run directly, due to compatibility mismatch.
PiperOrigin-RevId: 492085254
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
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