protobuf-protoc-bin 33.3__py2.py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- protobuf_protoc_bin/__init__.py +9 -0
- protobuf_protoc_bin/_version.py +34 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/any.proto +162 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/api.proto +229 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/compiler/plugin.proto +180 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/cpp_features.proto +67 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/descriptor.proto +1434 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/duration.proto +115 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/empty.proto +51 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/field_mask.proto +245 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/go_features.proto +83 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/java_features.proto +132 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/source_context.proto +48 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/struct.proto +95 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/timestamp.proto +145 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/type.proto +217 -0
- protobuf_protoc_bin-33.3.data/data/include/google/protobuf/wrappers.proto +157 -0
- protobuf_protoc_bin-33.3.data/scripts/protoc.exe +0 -0
- protobuf_protoc_bin-33.3.dist-info/METADATA +92 -0
- protobuf_protoc_bin-33.3.dist-info/RECORD +22 -0
- protobuf_protoc_bin-33.3.dist-info/WHEEL +6 -0
- protobuf_protoc_bin-33.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: protobuf-protoc-bin
|
|
3
|
+
Version: 33.3
|
|
4
|
+
Summary: Pip package to host the protobuf protoc binary
|
|
5
|
+
Author-email: Robert Roos <robert.roos@demcon.com>
|
|
6
|
+
Project-URL: Repository, https://github.com/RobertoRoos/protobuf-protoc-bin
|
|
7
|
+
Project-URL: Issues, https://github.com/RobertoRoos/protobuf-protoc-bin/issues
|
|
8
|
+
Project-URL: Protobuf, https://protobuf.dev/
|
|
9
|
+
Project-URL: Protobuf Github, https://github.com/protocolbuffers/protobuf
|
|
10
|
+
Requires-Python: >=2.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# Protobuf Protoc Bin
|
|
14
|
+
|
|
15
|
+
[](https://pypi.org/project/protobuf-protoc-bin)
|
|
16
|
+
[](https://github.com/RobertoRoos/protobuf-protoc-bin/actions/workflows/protobuf_monitor.yml)
|
|
17
|
+
[](https://github.com/RobertoRoos/protobuf-protoc-bin/actions/workflows/build.yml)
|
|
18
|
+
|
|
19
|
+
This Python package is an installer for [protobuf](https://protobuf.dev/)'s `protoc` compiler.
|
|
20
|
+
|
|
21
|
+
Use this package to install a specific version of `protoc` in your project, without having to figure out the installation externally.
|
|
22
|
+
|
|
23
|
+
This package is not maintained by or affiliated with the official protobuf group!
|
|
24
|
+
|
|
25
|
+
This repository does not host any binaries on itself.
|
|
26
|
+
Instead, the binaries are downloaded from the official protobuf Github during package built or during source installation.
|
|
27
|
+
|
|
28
|
+
## How to install
|
|
29
|
+
|
|
30
|
+
The package is hosted on PyPi at https://pypi.org/project/protobuf-protoc-bin.
|
|
31
|
+
It can be installed via PIP as normal with:
|
|
32
|
+
```shell
|
|
33
|
+
pip install protobuf-protoc-bin
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The wheels hosted on PyPi do contain a copy of the protoc releases.
|
|
37
|
+
You can also install this package directly from the Github source.
|
|
38
|
+
During an installation from source, `protoc` will be downloaded fresh from the official Protobuf releases:
|
|
39
|
+
```
|
|
40
|
+
pip install "git+https://github.com/RobertoRoos/protobuf-protoc-bin.git@<tag>"
|
|
41
|
+
```
|
|
42
|
+
(Replacing `<tag>` with a version like `v27.3`.)
|
|
43
|
+
|
|
44
|
+
## How to require
|
|
45
|
+
|
|
46
|
+
To require `protoc` only during a build script, include it in your `pyproject.toml` with:
|
|
47
|
+
```
|
|
48
|
+
[build-system]
|
|
49
|
+
requires = [..., "protobuf-protoc-bin==27.3"]
|
|
50
|
+
# ...
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or make it part of an additional install group in your regular environment (with the Poetry backend):
|
|
54
|
+
```
|
|
55
|
+
[tool.poetry.group.dev.dependencies]
|
|
56
|
+
protobuf-protoc-bin = "27.3"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## How to develop
|
|
60
|
+
|
|
61
|
+
The following concerns only contributors to this package.
|
|
62
|
+
|
|
63
|
+
### Adding a release
|
|
64
|
+
|
|
65
|
+
Each `protobuf-protoc-bin` release must correspond one-to-one to a [Protobuf release](https://github.com/protocolbuffers/protobuf/releases).
|
|
66
|
+
|
|
67
|
+
To trigger a new release, simply push a new tag to the tip of the main branch that matches the protobuf release, including the leading 'v'.
|
|
68
|
+
An example of a valid tag is `v27.3`.
|
|
69
|
+
|
|
70
|
+
This means multiple package releases are made from the same commit.
|
|
71
|
+
However, the reference that triggers the CI build will affect the version assigned by `setuptools_scm` and therefor the protobuf release that's being packaged.
|
|
72
|
+
|
|
73
|
+
### CI
|
|
74
|
+
|
|
75
|
+
A nightly workflow runs a script that looks for new Protoc releases and copies the tags into here, at the tip of the `main` branch.
|
|
76
|
+
So future releases should show up fully automatically.
|
|
77
|
+
|
|
78
|
+
### Platform Tags
|
|
79
|
+
|
|
80
|
+
Relevant for a binary wheel release is the [platform tag](https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/), to indicate to a client which wheel should be downloaded.
|
|
81
|
+
Separate from that is downloading the correct archive from the protoc release page.
|
|
82
|
+
Below is a table showing known examples and their correct values.
|
|
83
|
+
In `setup.py` there is logic to determine these values dynamically.
|
|
84
|
+
|
|
85
|
+
| | Ubuntu (arm64) | Ubuntu (x64) | Windows (x64) | MacOS (x64) |
|
|
86
|
+
|----------------------------|-------------------------------|-----------------------------|------------------------|---------------------------|
|
|
87
|
+
| Github runner | ubuntu-24.04-arm | ubuntu-latest | windows-latest | macos-latest |
|
|
88
|
+
| `sysconfig.get_platform()` | linux-aarch64 | linux-x86_64 | win-amd64 | macosx-10.13-universal2 |
|
|
89
|
+
| `platform.system()` | Linux | Linux | Windows | Darwin |
|
|
90
|
+
| `platform.architecture()` | ('64bit', 'ELF') | ('64bit', 'ELF') | ('64bit', 'WindowsPE') | ('64bit', '') |
|
|
91
|
+
| Wheel platform tag | manylinux_2_24_aarch64 | manylinux_2_24_x86_64 | win_amd64 | macosx_10_13_universal2 |
|
|
92
|
+
| Protoc archive name | protoc-vvv-linux-aarch_64.zip | protoc-vvv-linux-x86_64.zip | protoc-vvv-win64.zip | protoc-vvv-osx-x86_64.zip |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
protobuf_protoc_bin/__init__.py,sha256=G_RoeZn3_WVSAMUsluFtdO7mfCiZnRz44zXfU9IyPKQ,221
|
|
2
|
+
protobuf_protoc_bin/_version.py,sha256=YY045U9dG5-2tQOomEIHfm_GPyj9Ona3L9ibpcIhHoY,743
|
|
3
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/any.proto,sha256=vPXebORjsaOP92t3lVqn5YC07BKvNKknsdRcnvsPr2Y,6154
|
|
4
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/api.proto,sha256=bUfWJy62h8gGtv6wjvOSUkPGTqB2zZRAt4PienrsVQI,8845
|
|
5
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/cpp_features.proto,sha256=Cwsd_msm8JKllNN--EAX8RxqL4hfZMER0gmyLnLKYtU,2186
|
|
6
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/descriptor.proto,sha256=gm3VVemNFqg2Dtyq6Dd4BX8KWD6nBZ5Z0tg4CW-RKRg,57928
|
|
7
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/duration.proto,sha256=o_cwH_KVbsLjDCJB7OBxl-SobHUjSNVgciSBnUkhyf4,4892
|
|
8
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/empty.proto,sha256=7O89VMyeB5ZzuYFsZ7rHcPfzv22totRZa6adcdqpceY,2363
|
|
9
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/field_mask.proto,sha256=F7DzQsw6Ji4xfVaITz9XWvv6xRKtBXk0nMdFDkHyaJE,8185
|
|
10
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/go_features.proto,sha256=xiON7PHf9sLIX47dtOQ9MPY-XmPovuQRq8HpkC7iMKQ,2536
|
|
11
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/java_features.proto,sha256=rAJT8jb5OSqcccGyEpe8fKiSSW7VULEsk9Ckro5BIN8,4899
|
|
12
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/source_context.proto,sha256=N9NAHeia8dFJb8lJkkpfIBG9L6376w2hyqJ3FZqWd20,2341
|
|
13
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/struct.proto,sha256=G_B7qLmiTjoDkN3aw60NtBxjKH0lJ4iwI5giC5q8kA8,3778
|
|
14
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/timestamp.proto,sha256=ecm7VB_dUiFMo9OiyZHg3-xbsqmgW6LgYeP8aLRgQH0,6600
|
|
15
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/type.proto,sha256=UKO2e02JToKBczGar81qxEDBU0AEhFK9E6E-i0fMZjc,7774
|
|
16
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/wrappers.proto,sha256=aHjcdTTPmAXu5WNFzcOLXpyjneziRnEMZjxwB6Z_70k,5392
|
|
17
|
+
protobuf_protoc_bin-33.3.data/data/include/google/protobuf/compiler/plugin.proto,sha256=j172w2-tjmbjNHwPjYkQ37FCObjM_SqNFtuo53W1e38,8556
|
|
18
|
+
protobuf_protoc_bin-33.3.data/scripts/protoc.exe,sha256=7nnNeAPTQQuqNjpBDqLJNVRs3oeYUCNU__nTEf3TO74,12692987
|
|
19
|
+
protobuf_protoc_bin-33.3.dist-info/METADATA,sha256=XdkoV48-0XanyZH6ElUy01pJ3j0IPDZru1qpRh1z6Lk,5029
|
|
20
|
+
protobuf_protoc_bin-33.3.dist-info/WHEEL,sha256=AU4K3vx0ALFGVA9GWyeLyeJQNhYimMCMr9RHwrlu0t4,121
|
|
21
|
+
protobuf_protoc_bin-33.3.dist-info/top_level.txt,sha256=afBaZDfluZv1nGzi4GoHBIk52GjoHfFL1zEMio0q_YA,20
|
|
22
|
+
protobuf_protoc_bin-33.3.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
protobuf_protoc_bin
|