bazel 9 tests for csharp, hpb, objc, php, python, rust and upb

PiperOrigin-RevId: 918164613
This commit is contained in:
Jie Luo 2026-05-19 19:56:10 -07:00 committed by Copybara-Service
parent 46a1d94e94
commit f9e028f29f
25 changed files with 96 additions and 65 deletions

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_DESCRIPTOR_H__
#define PYUPB_DESCRIPTOR_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "python/python_api.h"

View file

@ -20,6 +20,9 @@
// those functions directly inside these vtables, greatly reducing the amount of
// "adaptor" code we need to write.
// clang-format on
#include "Python.h"
// clang-format off
#include <stdbool.h>
#include "protobuf.h"

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_DESCRIPTOR_POOL_H__
#define PYUPB_DESCRIPTOR_POOL_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "protobuf.h"

View file

@ -3,6 +3,8 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
limited_api_build_file = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "python_headers",
hdrs = glob(["**/Include/**/*.h"]),
@ -33,6 +35,8 @@ def python_source_archive(version, sha256):
)
nuget_build_file = """
load("@rules_cc//cc:defs.bzl", "cc_import")
cc_import(
name = "python_full_api",
hdrs = glob(["**/*.h"]),

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_EXTENSION_DICT_H__
#define PYUPB_EXTENSION_DICT_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "python/python_api.h"

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_MAP_H__
#define PYUPB_MAP_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "python/protobuf.h"

View file

@ -8,6 +8,9 @@
#ifndef PYPB_MESSAGE_H__
#define PYPB_MESSAGE_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "python/protobuf.h"

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_PROTOBUF_H__
#define PYUPB_PROTOBUF_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <assert.h>
#include <stdbool.h>

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_REPEATED_H__
#define PYUPB_REPEATED_H__
// clang-format off
#include "Python.h"
// chang-format on
#include <stdbool.h>
#include "python/protobuf.h"

View file

@ -8,6 +8,9 @@
#ifndef PYUPB_UNKNOWN_FIELDS_H__
#define PYUPB_UNKNOWN_FIELDS_H__
// clang-format off
#include "Python.h"
// clang-format on
#include <stdbool.h>
#include "python/python_api.h"