Joshua Haberman
fbcd42b9f0
Added a test that the Python module is importable, and fixed several issues that were required to make the test pass:
...
1. For some reason the version script was not working, it was failing to export the main symbol for the Python extension. I fixed this by using the `visibility` attribute instead to export the `PyInit__message` function.
2. We were not properly stripping the `python/dist/` prefix for the C module, which was making the module exported under the name `dist.google._upb` instead of `google._upb`.
3. The `py_library()` rule was failing to actually propagate the module file into the wheel, so I just removed it.
PiperOrigin-RevId: 445446611
3 years ago
Joshua Haberman
22c7daf1e3
Update to new upb module name.
...
PiperOrigin-RevId: 444699974
3 years ago
Joshua Haberman
f75d707ae9
A small test cleanup for Python.
...
PiperOrigin-RevId: 444586482
3 years ago
Joshua Haberman
92e06d027c
Fix for internal running of tests.
...
PiperOrigin-RevId: 444297087
3 years ago
Joshua Haberman
3e0890c055
Added support for UnknownFieldSet.
...
PiperOrigin-RevId: 443143448
3 years ago
Protobuf Team
ee6b1abb35
Create targets for UPB release
...
PiperOrigin-RevId: 441496547
3 years ago
Protobuf Team
e6e73198e3
Ignore recently added pb unit test method
...
PiperOrigin-RevId: 438590118
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
ac27e3b317
Remaining fixes to make Python tests pass in google3.
3 years ago
Joshua Haberman
6a94a385f8
Factor out name differences into macros.
3 years ago
Joshua Haberman
936a753290
Added missing ".google3" prefix.
3 years ago
Joshua Haberman
0a858bb57a
Factor out name differences into macros.
3 years ago
Joshua Haberman
61f904efb7
Strip out OSS-only test for google3.
3 years ago
Joshua Haberman
0853c41b9c
Factored out common logic around our python test wrappers.
3 years ago
Joshua Haberman
dd28a2a745
Make minimal_test open-source only for now.
3 years ago
Joshua Haberman
dfc07a8f89
Added explicit dep on :table from Python.
3 years ago
Joshua Haberman
cf7dc19b72
Added explicit cast for freefunc.
3 years ago
Joshua Haberman
b1426546fc
Mark python packaging rules as stripped for google3.
3 years ago
Joshua Haberman
f9c2a1d6ba
Fixed copybara tag.
3 years ago
Joshua Haberman
1e75fbf2c2
Ported api_implementation to py_extension().
3 years ago
Joshua Haberman
711885db8f
Added py_extension().
3 years ago
Joshua Haberman
c56fe27f88
Fix mistake in previous rename: upb_MessageDef_FindFieldByNameWithSize.
3 years ago
Matt Kulukundis
bf04341805
more licenses
3 years ago
Matt Kulukundis
cce4cffd85
more licenses
3 years ago
Matt Kulukundis
9d9e36125c
another license
3 years ago
Joshua Haberman
022ccf54d4
Updated to the HEAD version of Protobuf.
...
This brings in a few new Python tests that are failing.
3 years ago
Joshua Haberman
1938d1f6ac
Added specific issue numbers for the TODOs.
3 years ago
Joshua Haberman
67efea7cf3
Added a TODO about how we are currently including unit tests.
3 years ago
Joshua Haberman
5a10ce7025
Added a Bazel rule to build a binary wheel.
3 years ago
Joshua Haberman
62af892ddf
Fixed the build for Python 3.7.
3 years ago
Joshua Haberman
1c3d63dc25
Fixed a test by checking for the type of proto.
...
Also labeled a few tests for why we don't pass them.
3 years ago
Joshua Haberman
06d6f5c91f
Added test for -0.
3 years ago
Joshua Haberman
bc7b5dcadf
Ported protobuf's dtoa() function for text format and JSON.
3 years ago
Joshua Haberman
bb95a18631
Fixed a bug in the enum value map, fixing a few unit tests.
3 years ago
Joshua Haberman
cfdd016bed
PyUpb_CheckStrData() -> PyUpb_VerifyStrData()
3 years ago
Joshua Haberman
606308c639
Added back missing underscore.
3 years ago
Joshua Haberman
b38e4a4332
Fixed a few cases where we were not checking GetStrData properly.
3 years ago
Joshua Haberman
e613af9e87
Fixed test by checking string argument properly.
3 years ago
Joshua Haberman
75b6291e40
Renamed upb_FieldType_* -> kUpb_FieldType_*
3 years ago
Joshua Haberman
2bdbfc33e5
Addressed PR comments.
3 years ago
Joshua Haberman
392531c14f
Fixed test by implementing FindMethodByName().
3 years ago
Joshua Haberman
3eeea895dd
Fixed FieldDescriptor test.
3 years ago
Joshua Haberman
cd214fe73d
upb_TextEncode.
3 years ago
Joshua Haberman
0c541f3305
Single encode.
3 years ago
Joshua Haberman
72af9dc0cc
Switch to a single upb_Decode.
3 years ago
Joshua Haberman
499c2cc8b1
upb_extreg, upb_msg
3 years ago
Joshua Haberman
ffdcc46390
Fixed a handful of reference leaks found in a debug build of Python ( #484 )
...
* Fixed some reference leaks.
* Fixed a few reference leaks.
* Fixed a few more memory errors.
* Fixed a few more reference leaks.
* Revert minimal_test.py.
* Re-enable limited API.
* Removed some debugging and spurious changes.
* Addressed PR comments.
3 years ago
Joshua Haberman
1c955f37ce
Mass API rename and clang-reformat ( #485 )
...
* Wave 1: upb_fielddef.
* upb_fielddef itself.
* upb_oneofdef.
* upb_msgdef.
* ExtensionRange.
* upb_enumdef
* upb_enumvaldef
* upb_filedef
* upb_methoddef
* upb_servicedef
* upb_symtab
* upb_defpool_init
* upb_wellknown and upb_syntax_t
* Some constants.
* upb_status
* upb_strview
* upb_arena
* upb.h constants
* reflection
* encode
* JSON decode.
* json encode.
* msg_internal.
* Formatted with clang-format.
* Some naming fixups and comment reformatting.
* More refinements.
* A few more stragglers.
* Fixed PyObject_HEAD with semicolon. Removed TODO entries.
3 years ago
Joshua Haberman
201d2265e3
Variable rename for readability.
3 years ago
Joshua Haberman
8c256cc677
Addressed PR comments.
3 years ago