Sandy Zhang
3d0119a2dd
Use pkg_files for python source tarball.
...
The file structure was broken only when invoking from protobuf repo (`bazel build @upb//python/dist:source_tarball`) since filegroup files have a path like `protobuf/external/upb/python/dist/setup.py` rather than `protobuf/setup.py`
This was broken by 79af13abde
PiperOrigin-RevId: 553821217
1 year ago
Sandy Zhang
629764bacf
Disambiguate release and local `config_settings` via a release flag.
...
This flag was added to Protobuf and submitted separately due to version skew between repos.
This attempts to fix the following error from local and release settings both matching.
```
ERROR: /workspace/_build/out/external/upb/python/dist/BUILD.bazel:251:9: Illegal ambiguous match on configurable attribute "platform" in @upb//python/dist:binary_wheel:
@upb//python/dist:linux_x86_64_local
@upb//python/dist:windows_x86_64
Multiple matches are not allowed unless one is unambiguously more specialized or they resolve to the same value. See https://bazel.build/reference/be/functions#select .
```
PiperOrigin-RevId: 553226261
1 year ago
Eric Salo
3817bbb572
upb: create upb/mem/BUILD
...
The next in a series of CLs to split upb/BUILD into subdirs.
Create mem/internal/
Delete the deprecated upb/arena.h and upb/alloc.h stub headers
PiperOrigin-RevId: 552864952
1 year ago
Protobuf Team Bot
3487ae0c01
Updating version.json and repo version numbers to: 24.0-rc3
1 year ago
Eric Salo
6637147055
upb: delete upb/array.h, upb/map.h, upb/collections.h
...
PiperOrigin-RevId: 552294524
1 year ago
Eric Salo
e1e8f1e222
upb: create upb/base/BUILD
...
The next in a series of CLs to split upb/BUILD into subdirs.
PiperOrigin-RevId: 552010931
1 year ago
Protobuf Team Bot
034ec9d9f6
Updating version.json and repo version numbers to: 24.0-rc2
1 year ago
Richard Levasseur
8c71bc4593
Internal change
...
PiperOrigin-RevId: 547927505
1 year ago
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
Jie Luo
533fbbb45e
Add tuple support to set Struct
...
fixes https://github.com/protocolbuffers/protobuf/issues/13205
PiperOrigin-RevId: 547465304
1 year ago
Protobuf Team Bot
05835e374d
Updating version.json and repo version numbers to: 24.0-rc1
1 year ago
Yilei Yang
84b1beb3bb
Specify stacklevel=2 to these warnings.warn calls, so that users can actually see where these deprecated methods are called, instead of a trace in message_factory.py file itself.
...
PiperOrigin-RevId: 546104883
1 year ago
Jie Luo
a734d12d61
Use the default generated pool for some message factory tests.
...
Use the default generated pool for some message factory tests. Use a new descriptor
pool each time may turns out flake refleck test -- garbage collectors aren't
very predictable.
For blaze test third_party/py/google/protobuf/internal:message_factory_test_python_protos --runs_per_test_detects_flakes --runs_per_test=1000 --copt=-DPy_DEBUG
There were 30-50 failures before the change. Now tests are passing
PiperOrigin-RevId: 546091823
1 year ago
Joshua Haberman
07f6b578ee
Split mini_descriptor into its own directory
...
After this change, `mini_table` only has MiniTable definitions themselves. Everything having to do with the MiniDescriptor wire format is in `mini_descriptor`.
Also rearranged some of the files in mini_table to have better structure for `internal/`.
This CL contains no functional change.
PiperOrigin-RevId: 543529112
1 year ago
Joshua Haberman
34a770d13e
Refactored mini_table targets into their own BUILD file.
...
PiperOrigin-RevId: 542607918
1 year ago
Jie Luo
96ca7d96da
Raise warinings when extend repeated field with none iterable in OSS. OSS will raise errors soon
...
PiperOrigin-RevId: 542037298
1 year ago
Jie Luo
00a9807c9e
Remove some message factory tests in python upb
...
PiperOrigin-RevId: 540696051
1 year ago
Protobuf Team Bot
2631490637
Automated rollback of commit c4bc23782e
.
...
PiperOrigin-RevId: 540609660
1 year ago
Jie Luo
0ea9f73be3
skip some upb python test which extend non iterable value to repeated field
...
PiperOrigin-RevId: 539783147
1 year ago
Protobuf Team Bot
c4bc23782e
Automated rollback of commit aa2eb83fb8
.
...
PiperOrigin-RevId: 539776341
1 year ago
Protobuf Team Bot
aa2eb83fb8
Fix a bug in which we call Reflection::ClearField() on a default message instance.
...
PiperOrigin-RevId: 539740799
1 year ago
Jie Luo
3560e2381e
Remove RegisterExtension in message class
...
PiperOrigin-RevId: 539568063
1 year ago
Jie Luo
cbacdf152a
Remove RegisterExtension in message class
...
PiperOrigin-RevId: 539568063
1 year ago
Jie Luo
56a770818c
Skip some upb tests for message factory. To get rid of copybara complains
...
PiperOrigin-RevId: 539166171
1 year ago
Jie Luo
cfb8b3dd6d
Update upb deps and remove testAddTypeError test in python upb
...
PiperOrigin-RevId: 538930281
2 years ago
Jie Luo
0ce1fce37f
Remove AddHelpersToExtenions() back as no-op
...
PiperOrigin-RevId: 536501017
2 years ago
Jie Luo
862a2281ce
Remove AddHelpersToExtenions() in generated code
...
PiperOrigin-RevId: 536439101
2 years ago
Jie Luo
f36a5c6674
Internal change
...
PiperOrigin-RevId: 534622899
2 years ago
Protobuf Team Bot
73ee41cbb2
license changes
...
PiperOrigin-RevId: 534600788
2 years ago
Jie Luo
86fc32cedc
Removed message._extensions_by_number
...
PiperOrigin-RevId: 534514738
2 years ago
Jie Luo
7f0092a802
Internal change
...
PiperOrigin-RevId: 534490554
2 years ago
Jie Luo
e737c8108a
Removed message._extensions_by_name
...
PiperOrigin-RevId: 533501166
2 years ago
Mike Kruskal
734b2abcca
Internal Code Change
...
PiperOrigin-RevId: 532856964
2 years ago
Jie Luo
3b8a472d07
Internal change
...
PiperOrigin-RevId: 532155491
2 years ago
deannagarcia
0e23f18865
Merge to main after 23.0 release ( #12721 )
...
Closes #12721
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12721 from protocolbuffers:main-202305082101 36482b4c68
PiperOrigin-RevId: 530664393
2 years ago
Protobuf Team Bot
67d9ea87f3
Internal change
...
PiperOrigin-RevId: 530619366
2 years ago
Jie Luo
e5a7a2eba7
Remove RegisterExtension() in python generated code
...
PiperOrigin-RevId: 530452253
2 years ago
Protobuf Team Bot
6e511679de
Updating version.json and repo version numbers to: 23.0
2 years ago
Jie Luo
3f5d844d90
Deprecated APIs that add non top descriptors to pool will be removed soon
...
PiperOrigin-RevId: 529840421
2 years ago
Protobuf Team Bot
d8f44cc2fb
Updating version.json and repo version numbers to: 23.0-rc3
2 years ago
Deanna Garcia
b36c39236e
Fix bug in _internal_copy_files where the rule would fail in downstream repositories.
...
Taken from https://github.com/protocolbuffers/upb/blob/main/bazel/protobuf.patch#L42
Fixes https://github.com/protocolbuffers/protobuf/issues/12620 .
PiperOrigin-RevId: 528586464
2 years ago
Jie Luo
60be96e0bf
-Make message __deepcopy__ call UPB code instead of default implementation for
...
python UPB (splitted change 2)
PiperOrigin-RevId: 528614850
2 years ago
Deanna Garcia
859410bccc
Fix bug in _internal_copy_files where the rule would fail in downstream repositories.
...
Taken from https://github.com/protocolbuffers/upb/blob/main/bazel/protobuf.patch#L42
Fixes https://github.com/protocolbuffers/protobuf/issues/12620 .
PiperOrigin-RevId: 528586464
2 years ago
Jie Luo
65e047d098
-Make message __deepcopy__ call UPB code instead of default implementation for python UPB (splitted change 1)
...
PiperOrigin-RevId: 528083849
2 years ago
Protobuf Team Bot
51f51ac4ef
Updating version.json and repo version numbers to: 23.0-rc2
2 years ago
Jie Luo
e202f31b78
-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
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
Protobuf Team Bot
b21d6be78b
Updating version.json and repo version numbers to: 23.0-rc1
2 years ago
Deanna Garcia
bd6a0cf15b
Delete old numpy_test.py file and replace references with the new one.
...
This is the final step to make numpy/pip_deps a test-only dependency.
PiperOrigin-RevId: 525785717
2 years ago
Deanna Garcia
8c10056074
Add back UPB numpy test now that it has been moved in the protobuf directory.
...
This also includes an update to the newest protobuf commit.
PiperOrigin-RevId: 525551351
2 years ago