Joshua Haberman
79af13abde
Use filegroup() internally instead of pkg_files()
...
pkg_files() has some odd quirks, like breaking if a filename exists in multiple directories. filegroup() does everything we need, without these quirks.
PiperOrigin-RevId: 547523447
1 year ago
Protobuf Team Bot
73ee41cbb2
license changes
...
PiperOrigin-RevId: 534600788
2 years ago
Jie Luo
62f1470f09
-Make message CopyFrom() call UPB code instead of default implementation for python UPB
...
-Add upb_Message_Clear() in UPB accessors
-Add upb_Message_CopyFrom() in UPB copy
-Fix UPB upb_Message_DeepClone() bug for repeated extensions
PiperOrigin-RevId: 527644009
2 years ago
Mike Kruskal
d260ab343e
Add windows CI
...
PiperOrigin-RevId: 520478558
2 years ago
Joshua Haberman
7cd8f6c940
Ported more cases of wire format parsing to upb_WireReader.
...
PiperOrigin-RevId: 498502557
2 years ago
Eric Salo
26e9a75294
remove wire/types.h from the :wire build target
...
PiperOrigin-RevId: 498167993
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
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
Eric Salo
ff6439fba0
move the wire type definitions into upb/wire/ where they belong
...
PiperOrigin-RevId: 489500430
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
9e2d7f02da
Support local builds of upb's python wheel build.
...
PiperOrigin-RevId: 481207184
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
44916d7d27
create reflection_internal library
...
internal declarations are now physically removed from the public headers
PiperOrigin-RevId: 478921131
2 years ago
Protobuf Team Bot
79b735a7d7
Make upb numpy type checks consistent with pure python and cpp.
...
PiperOrigin-RevId: 464907203
2 years ago
Protobuf Team Bot
15596be402
move table.c into upb/internal
...
PiperOrigin-RevId: 457044228
2 years ago
Joshua Haberman
d72d98495d
Fixed a Python test by adding a new map insert function that distinguishes between insert and update.
...
PiperOrigin-RevId: 447214618
3 years ago
Joshua Haberman
22c7daf1e3
Update to new upb module name.
...
PiperOrigin-RevId: 444699974
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
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
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
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
Matt Kulukundis
bf04341805
more licenses
3 years ago
Matt Kulukundis
cce4cffd85
more licenses
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
8f0a2cd603
Implemented the behavior of ignoring duplicate added filenames.
3 years ago
Joshua Haberman
627c44be1f
Initial commit of ExtensionDict.
3 years ago
Joshua Haberman
bf74b3e7fd
Added map support.
3 years ago
Joshua Haberman
4423e917ad
All tests in the repo are passing.
3 years ago
Joshua Haberman
e079f1bce5
Patched protobuf repo sufficiently for things to work.
3 years ago
Joshua Haberman
b8736ae28a
WIP.
3 years ago
Joshua Haberman
455426ec70
Added repeated fields.
3 years ago
Joshua Haberman
4111d13172
WIP.
3 years ago
Joshua Haberman
deddc20f0c
Adds implementations for most descriptor objects.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
Joshua Haberman
1845997498
Added comments.
3 years ago
Joshua Haberman
3206b321e1
Added descriptor containers.
3 years ago
Joshua Haberman
7183780b60
Added a Valgrind test that works for Python!
3 years ago
Joshua Haberman
98eab1c0c2
Fix the build on macos.
3 years ago
Joshua Haberman
da6475305b
Added missing license headers.
3 years ago
Joshua Haberman
eec1a45e02
Formatted files with clang-format.
3 years ago
Joshua Haberman
a086aafb6c
Added a minimal test and fixed some bugs.
3 years ago