Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare code for breaking change in Protobuf C++ API. #185

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

copybara-service[bot]
Copy link

Prepare code for breaking change in Protobuf C++ API.

Protobuf 6.30.0 will change the return types of Descriptor::name() and other
methods to absl::string_view. This makes the code work both before and after
such a change.

@copybara-service copybara-service bot force-pushed the cl/714453888 branch 3 times, most recently from d979c62 to dbb7ef8 Compare January 14, 2025 03:25
Protobuf 6.30.0 will change the return types of Descriptor::name() and other
methods to absl::string_view. This makes the code work both before and after
such a change.

PiperOrigin-RevId: 715199813
@copybara-service copybara-service bot merged commit 324672e into main Jan 14, 2025
@copybara-service copybara-service bot deleted the cl/714453888 branch January 14, 2025 03:34
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.<br>
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 17, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 20, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 20, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
copybara-service bot pushed a commit that referenced this pull request Jan 20, 2025
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants