pymbusparser 0.0.0__tar.gz → 0.0.2__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.
- pymbusparser-0.0.2/.github/workflows/python.yml +185 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/.github/workflows/rust.yml +1 -2
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/Cargo.lock +209 -154
- pymbusparser-0.0.2/Cargo.toml +65 -0
- pymbusparser-0.0.2/PKG-INFO +46 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/README.md +5 -0
- pymbusparser-0.0.2/README_python.md +36 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/pyproject.toml +4 -3
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/python/Cargo.toml +3 -3
- pymbusparser-0.0.2/python/README_python.md +36 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/python/src/lib.rs +12 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/lib.rs +299 -291
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/user_data/data_information.rs +20 -6
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/user_data/data_record.rs +77 -49
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/user_data/mod.rs +1 -5
- pymbusparser-0.0.0/PKG-INFO +0 -8
- pymbusparser-0.0.0/python/Cargo.lock +0 -499
- pymbusparser-0.0.0/python/README_python.md +0 -11
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/.github/dependabot.yml +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/.gitignore +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/.vscode/launch.json +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/.vscode/settings.json +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/CONTRIBUTING.md +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/LICENSE +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/benches/bench.rs +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/index.html +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/m_bus_parser_wasm_pack.js +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/m_bus_parser_wasm_pack_bg.js +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/m_bus_parser_wasm_pack_bg.wasm +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/meter.png +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/docs/package.json +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/python/.gitignore +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/frames/mod.rs +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/user_data/value_information.rs +0 -0
- {pymbusparser-0.0.0 → pymbusparser-0.0.2}/src/user_data/variable_user_data.rs +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
name: Python Bindings CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'python-v*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linux:
|
|
14
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
15
|
+
defaults:
|
|
16
|
+
run:
|
|
17
|
+
working-directory: ./python
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
platform:
|
|
21
|
+
- runner: ubuntu-latest
|
|
22
|
+
target: x86_64
|
|
23
|
+
- runner: ubuntu-latest
|
|
24
|
+
target: x86
|
|
25
|
+
- runner: ubuntu-latest
|
|
26
|
+
target: aarch64
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
target: armv7
|
|
29
|
+
- runner: ubuntu-latest
|
|
30
|
+
target: s390x
|
|
31
|
+
- runner: ubuntu-latest
|
|
32
|
+
target: ppc64le
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
|
+
- uses: actions/setup-python@v5
|
|
36
|
+
with:
|
|
37
|
+
python-version: 3.x
|
|
38
|
+
- name: Build wheels
|
|
39
|
+
uses: PyO3/maturin-action@v1
|
|
40
|
+
with:
|
|
41
|
+
target: ${{ matrix.platform.target }}
|
|
42
|
+
args: --release --out dist --find-interpreter
|
|
43
|
+
sccache: 'true'
|
|
44
|
+
manylinux: auto
|
|
45
|
+
working-directory: ./python
|
|
46
|
+
- name: Upload wheels
|
|
47
|
+
uses: actions/upload-artifact@v4
|
|
48
|
+
with:
|
|
49
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
50
|
+
path: ./python/dist
|
|
51
|
+
|
|
52
|
+
musllinux:
|
|
53
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
54
|
+
defaults:
|
|
55
|
+
run:
|
|
56
|
+
working-directory: ./python
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
platform:
|
|
60
|
+
- runner: ubuntu-latest
|
|
61
|
+
target: x86_64
|
|
62
|
+
- runner: ubuntu-latest
|
|
63
|
+
target: x86
|
|
64
|
+
- runner: ubuntu-latest
|
|
65
|
+
target: aarch64
|
|
66
|
+
- runner: ubuntu-latest
|
|
67
|
+
target: armv7
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/checkout@v4
|
|
70
|
+
- uses: actions/setup-python@v5
|
|
71
|
+
with:
|
|
72
|
+
python-version: 3.x
|
|
73
|
+
- name: Build wheels
|
|
74
|
+
uses: PyO3/maturin-action@v1
|
|
75
|
+
with:
|
|
76
|
+
target: ${{ matrix.platform.target }}
|
|
77
|
+
args: --release --out dist --find-interpreter
|
|
78
|
+
sccache: 'true'
|
|
79
|
+
manylinux: musllinux_1_2
|
|
80
|
+
working-directory: ./python
|
|
81
|
+
- name: Upload wheels
|
|
82
|
+
uses: actions/upload-artifact@v4
|
|
83
|
+
with:
|
|
84
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
85
|
+
path: ./python/dist
|
|
86
|
+
|
|
87
|
+
windows:
|
|
88
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
89
|
+
defaults:
|
|
90
|
+
run:
|
|
91
|
+
working-directory: ./python
|
|
92
|
+
strategy:
|
|
93
|
+
matrix:
|
|
94
|
+
platform:
|
|
95
|
+
- runner: windows-latest
|
|
96
|
+
target: x64
|
|
97
|
+
- runner: windows-latest
|
|
98
|
+
target: x86
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/checkout@v4
|
|
101
|
+
- uses: actions/setup-python@v5
|
|
102
|
+
with:
|
|
103
|
+
python-version: 3.x
|
|
104
|
+
architecture: ${{ matrix.platform.target }}
|
|
105
|
+
- name: Build wheels
|
|
106
|
+
uses: PyO3/maturin-action@v1
|
|
107
|
+
with:
|
|
108
|
+
target: ${{ matrix.platform.target }}
|
|
109
|
+
args: --release --out dist --find-interpreter
|
|
110
|
+
sccache: 'true'
|
|
111
|
+
working-directory: ./python
|
|
112
|
+
- name: Upload wheels
|
|
113
|
+
uses: actions/upload-artifact@v4
|
|
114
|
+
with:
|
|
115
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
116
|
+
path: ./python/dist
|
|
117
|
+
|
|
118
|
+
macos:
|
|
119
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
120
|
+
defaults:
|
|
121
|
+
run:
|
|
122
|
+
working-directory: ./python
|
|
123
|
+
strategy:
|
|
124
|
+
matrix:
|
|
125
|
+
platform:
|
|
126
|
+
- runner: macos-12
|
|
127
|
+
target: x86_64
|
|
128
|
+
- runner: macos-14
|
|
129
|
+
target: aarch64
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/checkout@v4
|
|
132
|
+
- uses: actions/setup-python@v5
|
|
133
|
+
with:
|
|
134
|
+
python-version: 3.x
|
|
135
|
+
- name: Build wheels
|
|
136
|
+
uses: PyO3/maturin-action@v1
|
|
137
|
+
with:
|
|
138
|
+
target: ${{ matrix.platform.target }}
|
|
139
|
+
args: --release --out dist --find-interpreter
|
|
140
|
+
sccache: 'true'
|
|
141
|
+
working-directory: ./python
|
|
142
|
+
- name: Upload wheels
|
|
143
|
+
uses: actions/upload-artifact@v4
|
|
144
|
+
with:
|
|
145
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
146
|
+
path: ./python/dist
|
|
147
|
+
|
|
148
|
+
sdist:
|
|
149
|
+
runs-on: ubuntu-latest
|
|
150
|
+
defaults:
|
|
151
|
+
run:
|
|
152
|
+
working-directory: ./python
|
|
153
|
+
steps:
|
|
154
|
+
- uses: actions/checkout@v4
|
|
155
|
+
- name: Build sdist
|
|
156
|
+
uses: PyO3/maturin-action@v1
|
|
157
|
+
with:
|
|
158
|
+
command: sdist
|
|
159
|
+
args: --out dist
|
|
160
|
+
working-directory: ./python
|
|
161
|
+
- name: Upload sdist
|
|
162
|
+
uses: actions/upload-artifact@v4
|
|
163
|
+
with:
|
|
164
|
+
name: wheels-sdist
|
|
165
|
+
path: ./python/dist
|
|
166
|
+
|
|
167
|
+
release:
|
|
168
|
+
name: Release
|
|
169
|
+
runs-on: ubuntu-latest
|
|
170
|
+
defaults:
|
|
171
|
+
run:
|
|
172
|
+
working-directory: ./python
|
|
173
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
174
|
+
steps:
|
|
175
|
+
- uses: actions/download-artifact@v4
|
|
176
|
+
with:
|
|
177
|
+
path: ./python
|
|
178
|
+
- name: Publish to PyPI
|
|
179
|
+
uses: PyO3/maturin-action@v1
|
|
180
|
+
env:
|
|
181
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
182
|
+
with:
|
|
183
|
+
command: upload
|
|
184
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
185
|
+
working-directory: ./python
|
|
@@ -9,6 +9,7 @@ on:
|
|
|
9
9
|
- 'wasm-v*'
|
|
10
10
|
pull_request:
|
|
11
11
|
branches: [main]
|
|
12
|
+
workflow_dispatch:
|
|
12
13
|
|
|
13
14
|
jobs:
|
|
14
15
|
build-library:
|
|
@@ -122,8 +123,6 @@ jobs:
|
|
|
122
123
|
run: |
|
|
123
124
|
cd cli/src
|
|
124
125
|
cargo publish --token ${{ secrets.CRATESTOKEN }}
|
|
125
|
-
|
|
126
|
-
|
|
127
126
|
publish-wasm:
|
|
128
127
|
needs: build-wasm
|
|
129
128
|
runs-on: ubuntu-latest
|