protobuf-protoc-bin 33.3__tar.gz → 33.5__tar.gz

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.
@@ -1,3 +1,11 @@
1
+ #
2
+ # This:
3
+ # - Builds Python packages on different platforms.
4
+ # - Combines those artifacts into a single one.
5
+ # - Tests those packages on the platforms again.
6
+ # - Uploads the whole set to PyPi
7
+ #
8
+
1
9
  name: Build wheels
2
10
 
3
11
  on: push
@@ -8,14 +16,14 @@ jobs:
8
16
  runs-on: ${{ matrix.os }}
9
17
  strategy:
10
18
  matrix:
11
- os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm]
19
+ os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm, windows-11-arm]
12
20
 
13
21
  steps:
14
- - uses: actions/checkout@v4
22
+ - uses: actions/checkout@v6
15
23
 
16
- - uses: actions/setup-python@v5
24
+ - uses: actions/setup-python@v6
17
25
  with:
18
- python-version: '3.12'
26
+ python-version: '3.13'
19
27
 
20
28
  - run: |
21
29
  python -m pip install -U pip
@@ -25,7 +33,7 @@ jobs:
25
33
  - if: matrix.os == 'ubuntu-latest'
26
34
  run: python -m build --sdist -v
27
35
 
28
- - uses: actions/upload-artifact@v4
36
+ - uses: actions/upload-artifact@v6
29
37
  with:
30
38
  name: dist-${{ matrix.os }}
31
39
  retention-days: 1
@@ -36,11 +44,11 @@ jobs:
36
44
  needs: build_wheels
37
45
  runs-on: ubuntu-latest
38
46
  steps:
39
- - uses: actions/download-artifact@v4
47
+ - uses: actions/download-artifact@v7
40
48
  with: # Download all artifacts so far
41
49
  path: dist
42
50
  merge-multiple: true
43
- - uses: actions/upload-artifact@v4
51
+ - uses: actions/upload-artifact@v6
44
52
  with:
45
53
  name: package
46
54
  path: dist
@@ -51,16 +59,18 @@ jobs:
51
59
  runs-on: ${{ matrix.os }}
52
60
  strategy:
53
61
  matrix:
54
- os: [ubuntu-latest, ubuntu-22.04, macos-latest, macos-14, windows-latest, ubuntu-24.04-arm]
62
+ os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm, windows-11-arm,
63
+ ubuntu-22.04, macos-14, macos-15-intel]
64
+ # Test on the same as the build platforms, plus some other older ones
55
65
  steps:
56
- - uses: actions/checkout @v4
57
- - uses: actions/download-artifact@v4
66
+ - uses: actions/checkout@v6
67
+ - uses: actions/download-artifact@v6
58
68
  with:
59
69
  name: package
60
70
  path: dist
61
- - uses: actions/setup-python@v5
71
+ - uses: actions/setup-python@v6
62
72
  with:
63
- python-version: "3.12"
73
+ python-version: "3.13"
64
74
  # Now install the package from the local wheels and try to use it:
65
75
  - run: |
66
76
  pip install --no-index --find-links ./dist protobuf_protoc_bin
@@ -74,7 +84,7 @@ jobs:
74
84
  runs-on: ubuntu-latest
75
85
  if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
76
86
  steps:
77
- - uses: actions/download-artifact@v4
87
+ - uses: actions/download-artifact@v7
78
88
  with:
79
89
  name: package
80
90
  path: dist
@@ -18,7 +18,7 @@ jobs:
18
18
 
19
19
  steps:
20
20
 
21
- - uses: actions/github-script@v7
21
+ - uses: actions/github-script@v8
22
22
  with:
23
23
  # Use a custom Personal Access Token (over the default `GITHUB_TOKEN`) as otherwise it cannot
24
24
  # trigger new workflows.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: protobuf-protoc-bin
3
- Version: 33.3
3
+ Version: 33.5
4
4
  Summary: Pip package to host the protobuf protoc binary
5
5
  Author-email: Robert Roos <robert.roos@demcon.com>
6
6
  Project-URL: Repository, https://github.com/RobertoRoos/protobuf-protoc-bin
@@ -90,3 +90,8 @@ In `setup.py` there is logic to determine these values dynamically.
90
90
  | `platform.architecture()` | ('64bit', 'ELF') | ('64bit', 'ELF') | ('64bit', 'WindowsPE') | ('64bit', '') |
91
91
  | Wheel platform tag | manylinux_2_24_aarch64 | manylinux_2_24_x86_64 | win_amd64 | macosx_10_13_universal2 |
92
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 |
93
+
94
+ ### Testing
95
+
96
+ You can locally override the version that [`setuptools-scm` detects](https://setuptools-scm.readthedocs.io/en/latest/overrides/#pretend-versions) by writing the environment variable `SETUPTOOLS_SCM_PRETEND_VERSION`.
97
+ This way you can easily mimic specific releases.
@@ -78,3 +78,8 @@ In `setup.py` there is logic to determine these values dynamically.
78
78
  | `platform.architecture()` | ('64bit', 'ELF') | ('64bit', 'ELF') | ('64bit', 'WindowsPE') | ('64bit', '') |
79
79
  | Wheel platform tag | manylinux_2_24_aarch64 | manylinux_2_24_x86_64 | win_amd64 | macosx_10_13_universal2 |
80
80
  | 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 |
81
+
82
+ ### Testing
83
+
84
+ You can locally override the version that [`setuptools-scm` detects](https://setuptools-scm.readthedocs.io/en/latest/overrides/#pretend-versions) by writing the environment variable `SETUPTOOLS_SCM_PRETEND_VERSION`.
85
+ This way you can easily mimic specific releases.
@@ -1,5 +1,6 @@
1
1
  [build-system]
2
- requires = ["setuptools", "setuptools-scm", "wheel"]
2
+ requires = ["setuptools >= 70.1.0", "setuptools-scm", "wheel"]
3
+ # Minimal version of setptools that has moved `bdist_wheel` command
3
4
  build-backend = "setuptools.build_meta"
4
5
 
5
6
  [project]
@@ -11,7 +11,7 @@ from tempfile import TemporaryDirectory
11
11
 
12
12
  from setuptools import setup
13
13
  from setuptools.command.install import install
14
- from wheel.bdist_wheel import bdist_wheel
14
+ from setuptools.command.bdist_wheel import bdist_wheel
15
15
 
16
16
 
17
17
  class CustomInstallCommand(install):
@@ -100,6 +100,8 @@ class CustomInstallCommand(install):
100
100
  with open(
101
101
  self.PKG_ROOT / "src" / "protobuf_protoc_bin" / "_version.py", "r"
102
102
  ) as fh:
103
+ # `_version.py` will contain a version that looks like:
104
+ # "33.2" (without "v")
103
105
  re_version = re.compile(r'.*version = [\'"](.*)[\'"]')
104
106
  while line := fh.readline():
105
107
  if match := re_version.search(line):
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '33.3'
32
- __version_tuple__ = version_tuple = (33, 3)
31
+ __version__ = version = '33.5'
32
+ __version_tuple__ = version_tuple = (33, 5)
33
33
 
34
- __commit_id__ = commit_id = 'g33f102640'
34
+ __commit_id__ = commit_id = 'ge6799ffdb'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: protobuf-protoc-bin
3
- Version: 33.3
3
+ Version: 33.5
4
4
  Summary: Pip package to host the protobuf protoc binary
5
5
  Author-email: Robert Roos <robert.roos@demcon.com>
6
6
  Project-URL: Repository, https://github.com/RobertoRoos/protobuf-protoc-bin
@@ -90,3 +90,8 @@ In `setup.py` there is logic to determine these values dynamically.
90
90
  | `platform.architecture()` | ('64bit', 'ELF') | ('64bit', 'ELF') | ('64bit', 'WindowsPE') | ('64bit', '') |
91
91
  | Wheel platform tag | manylinux_2_24_aarch64 | manylinux_2_24_x86_64 | win_amd64 | macosx_10_13_universal2 |
92
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 |
93
+
94
+ ### Testing
95
+
96
+ You can locally override the version that [`setuptools-scm` detects](https://setuptools-scm.readthedocs.io/en/latest/overrides/#pretend-versions) by writing the environment variable `SETUPTOOLS_SCM_PRETEND_VERSION`.
97
+ This way you can easily mimic specific releases.