Deanna Garcia
9880136636
Add bazel target for source distribution
2 years ago
Mike Kruskal
ea1996f40d
Separate pip and fuzzing_py wrappers into separate files.
...
This will allow cases where downstream repos don't depend on fuzzing_py but do use pip.
PiperOrigin-RevId: 494767924
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
Mike Kruskal
ee56471047
Skip pip installation for unsupported versions of python.
...
This will generate a warning, but won't fail unless the pip dependencies are actually used by Bazel runs.
PiperOrigin-RevId: 492485607
2 years ago
Mike Kruskal
4069649ecd
Switch to cmake fetch instead of git submodules
2 years ago
Mike Kruskal
3e078f5fe4
Add CMake+Bazel dependencies on utf8_range repo
2 years ago
Mike Kruskal
b198dd0754
Remove compatibility check from amalgamation binary.
...
Any public interface should not be marked incompatible, since the @system_python repository is specific to *this* workspace. Downstream users can name it whatever they want or use a hermetic python build, in which case this repository won't be defined.
PiperOrigin-RevId: 492103118
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
Laramie Leavitt
7d76251d9f
Split upb_amalgamation into a separate .bzl file
...
PiperOrigin-RevId: 489034477
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
Protobuf Team Bot
afd43b8ba4
Fix a build error when using upb_cc_proto_library.
...
PiperOrigin-RevId: 488941778
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
Protobuf Team Bot
306123e2e8
C++ Code generator
...
PiperOrigin-RevId: 486158566
2 years ago
Protobuf Team Bot
04363f7bae
Update workspace_deps.bzl protobuf main commit
...
PiperOrigin-RevId: 479635174
2 years ago
Joshua Haberman
18446cf64f
Removed unused "paths" import.
2 years ago
Protobuf Team Bot
23048df525
Fully-qualify labels in the µpb repository.
...
This is necessary at least for workspace rules because otherwise files will be
taken from the main repository.
PiperOrigin-RevId: 477175268
2 years ago
Ivo List
9e19bec587
Fix upb proto libraryies for default strip_import_prefix.
2 years ago
Joshua Haberman
a8bc4ca4a3
Fixed Bazel 4.1.0 compatibility, and added a GitHub Action to verify.
...
This will help ensure that we remain compatible with old Bazel versions per the policy here: https://opensource.google/documentation/policies/cplusplus-support
PiperOrigin-RevId: 473884285
2 years ago
Joshua Haberman
896e74c141
Optimizes `upb_MiniTable_Enum` for large but dense enums.
...
Optimizes `upb_MiniTable_Enum` for enums with many values (>64) but with relatively dense packing in numeric space.
This CL optimizes both the size and speed of such enums:
- size: 30x code size reduction
- speed: moved from linear search to a constant-time bit test
Negative enum values are still expensive, as they are never put into the bitfield.
PiperOrigin-RevId: 473259819
2 years ago
Joshua Haberman
5cb177e09a
Removed unused code.
2 years ago
Joshua Haberman
ccd88d5a63
Updated staleness test and amalgamator to work cross-repo.
2 years ago
Derek Perez
fa5e4cfd31
Updating rules_python to 0.12.0
2 years ago
Derek Perez
4135cd206b
Updating python to 0.11.0
2 years ago
Mike Kruskal
63a4a7d74b
Bump pinned protobuf version
...
PiperOrigin-RevId: 466825011
2 years ago
Mike Kruskal
17b6451684
Bumping protobuf dependency to newer commit
...
PiperOrigin-RevId: 460811319
2 years ago
Protobuf Team Bot
ff46379efe
Prepare build for C++ generator.
...
PiperOrigin-RevId: 459265699
2 years ago
Protobuf Team Bot
d2177912c7
Internal change
...
PiperOrigin-RevId: 456338456
2 years ago
Joshua Haberman
a60e9a379e
Fixed the mingw build by adding compatibility code for vsnprintf()
...
PiperOrigin-RevId: 448611947
3 years ago
Joshua Haberman
32f45b5f33
Update to the latest protobuf.
...
PiperOrigin-RevId: 447642349
3 years ago
Joshua Haberman
2eb973f53a
Added a GitHub Action to test Python+upb on Windows, and fixed a couple of bugs this revealed.
...
PiperOrigin-RevId: 446322046
3 years ago
Joshua Haberman
5f627b69e5
GitHub Action for building/installing Python wheel.
...
This creates a multi-job workflow. The first step builds all wheels, using the Docker image and cross-compiler. The second step attempts to install that wheel on all platforms.
Future changes will enhance this workflow to also install and run the tests. We also need to add macOS wheels, which are not currently being built.
PiperOrigin-RevId: 444952832
3 years ago
Deanna Garcia
24febb01c8
Move python deps to workspace_deps
3 years ago
Joshua Haberman
22c7daf1e3
Update to new upb module name.
...
PiperOrigin-RevId: 444699974
3 years ago
Joshua Haberman
a0bc6693b0
Avoid registering a toolchain in upb_deps(), to avoid errors in cases where system_python was not available.
...
PiperOrigin-RevId: 444358333
3 years ago
Joshua Haberman
7f9135b766
Updated system_python to tolerate the case where a system python is not available.
...
PiperOrigin-RevId: 443773186
3 years ago
Joshua Haberman
3e0890c055
Added support for UnknownFieldSet.
...
PiperOrigin-RevId: 443143448
3 years ago
Joshua Haberman
1fc983f35f
Added Python deps to upb_deps().
...
PiperOrigin-RevId: 442669011
3 years ago
Joshua Haberman
57e272449c
Revert "Moved system_python dep into upb_deps()."
...
This reverts commit 17052fce40
.
3 years ago
Joshua Haberman
17052fce40
Moved system_python dep into upb_deps().
3 years ago
Protobuf Team
ee6b1abb35
Create targets for UPB release
...
PiperOrigin-RevId: 441496547
3 years ago
Protobuf Team
9f371b781b
Set explicit mnemonic for Starlark action.
...
This will allow us to differentiate where the action was created.
PiperOrigin-RevId: 441195283
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
afffa9eaeb
Two Ruby changes to unblock the release
3 years ago
Joshua Haberman
970c645140
Fixes for google3 (layering check and formatting).
3 years ago
Joshua Haberman
ccf2fa6c92
Added one more dep.
3 years ago
Joshua Haberman
97c3de35fe
Added google3 version of test wrapper.
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
8c530f9226
Changed generated code deps to avoid deps on core libraries.
...
This will allow the core libraries to be visibility controlled if
necessary.
3 years ago
Matt Kulukundis
9f8c080832
add missing license lines to bazel files
3 years ago