pymocd 0.0.1__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.
@@ -0,0 +1,114 @@
1
+ name: Build and Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ CARGO_TERM_COLOR: always
11
+ PYTHON_VERSION: "3.9"
12
+
13
+ jobs:
14
+ # Build wheels for each OS in parallel
15
+ build:
16
+ name: Build wheels on ${{ matrix.os }}
17
+ runs-on: ${{ matrix.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu-latest, windows-latest, macos-latest]
22
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
23
+
24
+ steps:
25
+ - name: Checkout repository
26
+ uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 1
29
+
30
+ - name: Set up Python ${{ matrix.python-version }}
31
+ uses: actions/setup-python@v4
32
+ with:
33
+ python-version: ${{ matrix.python-version }}
34
+ cache: 'pip'
35
+
36
+ - name: Install Rust toolchain
37
+ uses: dtolnay/rust-toolchain@stable
38
+
39
+ - name: Install build dependencies
40
+ run: |
41
+ python -m pip install --upgrade pip
42
+ pip install maturin wheel
43
+
44
+ # This step is necessary for macOS arm64 builds
45
+ - name: Set up Rust target for macOS arm64
46
+ if: runner.os == 'macOS'
47
+ run: rustup target add aarch64-apple-darwin
48
+
49
+ - name: Build wheels
50
+ run: |
51
+ maturin build --release --sdist --strip
52
+ env:
53
+ # Build universal2 wheels on macOS
54
+ MACOSX_DEPLOYMENT_TARGET: "10.12"
55
+ DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
56
+ SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
57
+
58
+ - name: List wheels
59
+ run: |
60
+ ls -l target/wheels/
61
+
62
+ - name: Upload wheels
63
+ uses: actions/upload-artifact@v4
64
+ with:
65
+ name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
66
+ path: target/wheels/*.whl
67
+
68
+ - name: Upload sdist
69
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
70
+ uses: actions/upload-artifact@v4
71
+ with:
72
+ name: sdist
73
+ path: target/wheels/*.tar.gz
74
+
75
+ # Publish once all builds are complete
76
+ publish:
77
+ name: Publish to PyPI
78
+ needs: build
79
+ runs-on: ubuntu-latest
80
+ # Only publish on tag push or manual trigger
81
+ if: ${{ github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' }}
82
+
83
+ steps:
84
+ - name: Create dist directory
85
+ run: mkdir -p dist
86
+
87
+ - name: Download all wheels
88
+ uses: actions/download-artifact@v4
89
+ with:
90
+ path: downloaded
91
+
92
+ - name: Move wheels to dist
93
+ run: |
94
+ find downloaded -type f \( -name "*.whl" -o -name "*.tar.gz" \) -exec mv {} dist/ \;
95
+
96
+ - name: List distribution files
97
+ run: ls -l dist/
98
+
99
+ - name: Set up Python
100
+ uses: actions/setup-python@v4
101
+ with:
102
+ python-version: ${{ env.PYTHON_VERSION }}
103
+
104
+ - name: Install twine
105
+ run: |
106
+ python -m pip install --upgrade pip
107
+ pip install twine
108
+
109
+ - name: Publish to PyPI
110
+ env:
111
+ TWINE_USERNAME: __token__
112
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
113
+ run: |
114
+ twine upload --skip-existing dist/*
@@ -0,0 +1,22 @@
1
+ name: Rust
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ env:
10
+ CARGO_TERM_COLOR: always
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Build
20
+ run: cargo build --verbose
21
+ - name: Run tests
22
+ run: cargo test --verbose
@@ -0,0 +1,395 @@
1
+ ## Ignore Visual Studio temporary files, build results, and
2
+ ## files generated by popular Visual Studio add-ons.
3
+ ##
4
+ ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
5
+
6
+ # User-specific files
7
+ .venv
8
+ *.suo
9
+ *.user
10
+ *.userosscache
11
+ *.sln.docstates
12
+ Cargo.lock
13
+
14
+
15
+ # User-specific files (MonoDevelop/Xamarin Studio)
16
+ *.userprefs
17
+
18
+ # Experiments
19
+ *.csv
20
+ *.png
21
+ *.temp
22
+
23
+ # Mono auto generated files
24
+ mono_crash.*
25
+
26
+ # Build results
27
+ target
28
+
29
+ # Visual Studio 2015/2017 cache/options directory
30
+ .vs/
31
+ .vscode
32
+ # Uncomment if you have tasks that create the project's static files in wwwroot
33
+ #wwwroot/
34
+
35
+ # Visual Studio 2017 auto generated files
36
+ Generated\ Files/
37
+
38
+ # MSTest test Results
39
+ [Tt]est[Rr]esult*/
40
+ [Bb]uild[Ll]og.*
41
+
42
+ # NUnit
43
+ *.VisualState.xml
44
+ TestResult.xml
45
+ nunit-*.xml
46
+
47
+ # Build Results of an ATL Project
48
+ [Dd]ebugPS/
49
+ [Rr]eleasePS/
50
+ dlldata.c
51
+
52
+ # Benchmark Results
53
+ BenchmarkDotNet.Artifacts/
54
+
55
+ # .NET Core
56
+ project.lock.json
57
+ project.fragment.lock.json
58
+ artifacts/
59
+
60
+ # ASP.NET Scaffolding
61
+ ScaffoldingReadMe.txt
62
+
63
+ # StyleCop
64
+ StyleCopReport.xml
65
+
66
+ # Files built by Visual Studio
67
+ *_i.c
68
+ *_p.c
69
+ *_h.h
70
+ *.ilk
71
+ *.meta
72
+ *.obj
73
+ *.iobj
74
+ *.pch
75
+ *.pdb
76
+ *.ipdb
77
+ *.pgc
78
+ *.pgd
79
+ *.rsp
80
+ # but not Directory.Build.rsp, as it configures directory-level build defaults
81
+ !Directory.Build.rsp
82
+ *.sbr
83
+ *.tlb
84
+ *.tli
85
+ *.tlh
86
+ *.tmp
87
+ *.tmp_proj
88
+ *_wpftmp.csproj
89
+ *.log
90
+ *.tlog
91
+ *.vspscc
92
+ *.vssscc
93
+ .builds
94
+ *.pidb
95
+ *.svclog
96
+ *.scc
97
+
98
+ # Chutzpah Test files
99
+ _Chutzpah*
100
+
101
+ # Visual C++ cache files
102
+ ipch/
103
+ *.aps
104
+ *.ncb
105
+ *.opendb
106
+ *.opensdf
107
+ *.sdf
108
+ *.cachefile
109
+ *.VC.db
110
+ *.VC.VC.opendb
111
+
112
+ # Visual Studio profiler
113
+ *.psess
114
+ *.vsp
115
+ *.vspx
116
+ *.sap
117
+
118
+ # Visual Studio Trace Files
119
+ *.e2e
120
+
121
+ # TFS 2012 Local Workspace
122
+ $tf/
123
+
124
+ # Guidance Automation Toolkit
125
+ *.gpState
126
+
127
+ # ReSharper is a .NET coding add-in
128
+ _ReSharper*/
129
+ *.[Rr]e[Ss]harper
130
+ *.DotSettings.user
131
+
132
+ # TeamCity is a build add-in
133
+ _TeamCity*
134
+
135
+ # DotCover is a Code Coverage Tool
136
+ *.dotCover
137
+
138
+ # AxoCover is a Code Coverage Tool
139
+ .axoCover/*
140
+ !.axoCover/settings.json
141
+
142
+ # Coverlet is a free, cross platform Code Coverage Tool
143
+ coverage*.json
144
+ coverage*.xml
145
+ coverage*.info
146
+
147
+ # Visual Studio code coverage results
148
+ *.coverage
149
+ *.coveragexml
150
+
151
+ # NCrunch
152
+ _NCrunch_*
153
+ .*crunch*.local.xml
154
+ nCrunchTemp_*
155
+
156
+ # MightyMoose
157
+ *.mm.*
158
+ AutoTest.Net/
159
+
160
+ # Web workbench (sass)
161
+ .sass-cache/
162
+
163
+ # Installshield output folder
164
+ [Ee]xpress/
165
+
166
+ # DocProject is a documentation generator add-in
167
+ DocProject/buildhelp/
168
+ DocProject/Help/*.HxT
169
+ DocProject/Help/*.HxC
170
+ DocProject/Help/*.hhc
171
+ DocProject/Help/*.hhk
172
+ DocProject/Help/*.hhp
173
+ DocProject/Help/Html2
174
+ DocProject/Help/html
175
+
176
+ # Click-Once directory
177
+ publish/
178
+
179
+ # Publish Web Output
180
+ *.[Pp]ublish.xml
181
+ *.azurePubxml
182
+ # Note: Comment the next line if you want to checkin your web deploy settings,
183
+ # but database connection strings (with potential passwords) will be unencrypted
184
+ *.pubxml
185
+ *.publishproj
186
+
187
+ # Microsoft Azure Web App publish settings. Comment the next line if you want to
188
+ # checkin your Azure Web App publish settings, but sensitive information contained
189
+ # in these scripts will be unencrypted
190
+ PublishScripts/
191
+
192
+ # NuGet Packages
193
+ *.nupkg
194
+ # NuGet Symbol Packages
195
+ *.snupkg
196
+ # The packages folder can be ignored because of Package Restore
197
+ **/[Pp]ackages/*
198
+ # except build/, which is used as an MSBuild target.
199
+ !**/[Pp]ackages/build/
200
+ # Uncomment if necessary however generally it will be regenerated when needed
201
+ #!**/[Pp]ackages/repositories.config
202
+ # NuGet v3's project.json files produces more ignorable files
203
+ *.nuget.props
204
+ *.nuget.targets
205
+
206
+ # Microsoft Azure Build Output
207
+ csx/
208
+ *.build.csdef
209
+
210
+ # Microsoft Azure Emulator
211
+ ecf/
212
+ rcf/
213
+
214
+ # Windows Store app package directories and files
215
+ AppPackages/
216
+ BundleArtifacts/
217
+ Package.StoreAssociation.xml
218
+ _pkginfo.txt
219
+ *.appx
220
+ *.appxbundle
221
+ *.appxupload
222
+
223
+ # Visual Studio cache files
224
+ # files ending in .cache can be ignored
225
+ *.[Cc]ache
226
+ # but keep track of directories ending in .cache
227
+ !?*.[Cc]ache/
228
+
229
+ # Others
230
+ ClientBin/
231
+ ~$*
232
+ *~
233
+ *.dbmdl
234
+ *.dbproj.schemaview
235
+ *.jfm
236
+ *.pfx
237
+ *.publishsettings
238
+ orleans.codegen.cs
239
+
240
+ # Including strong name files can present a security risk
241
+ # (https://github.com/github/gitignore/pull/2483#issue-259490424)
242
+ #*.snk
243
+
244
+ # Since there are multiple workflows, uncomment next line to ignore bower_components
245
+ # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
246
+ #bower_components/
247
+
248
+ # RIA/Silverlight projects
249
+ Generated_Code/
250
+
251
+ # Backup & report files from converting an old project file
252
+ # to a newer Visual Studio version. Backup files are not needed,
253
+ # because we have git ;-)
254
+ _UpgradeReport_Files/
255
+ Backup*/
256
+ UpgradeLog*.XML
257
+ UpgradeLog*.htm
258
+ ServiceFabricBackup/
259
+ *.rptproj.bak
260
+
261
+ # SQL Server files
262
+ *.mdf
263
+ *.ldf
264
+ *.ndf
265
+
266
+ # Business Intelligence projects
267
+ *.rdl.data
268
+ *.bim.layout
269
+ *.bim_*.settings
270
+ *.rptproj.rsuser
271
+ *- [Bb]ackup.rdl
272
+ *- [Bb]ackup ([0-9]).rdl
273
+ *- [Bb]ackup ([0-9][0-9]).rdl
274
+
275
+ # Microsoft Fakes
276
+ FakesAssemblies/
277
+
278
+ # GhostDoc plugin setting file
279
+ *.GhostDoc.xml
280
+
281
+ # Node.js Tools for Visual Studio
282
+ .ntvs_analysis.dat
283
+ node_modules/
284
+
285
+ # Visual Studio 6 build log
286
+ *.plg
287
+
288
+ # Visual Studio 6 workspace options file
289
+ *.opt
290
+
291
+ # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
292
+ *.vbw
293
+
294
+ # Visual Studio 6 auto-generated project file (contains which files were open etc.)
295
+ *.vbp
296
+
297
+ # Visual Studio 6 workspace and project file (working project files containing files to include in project)
298
+ *.dsw
299
+ *.dsp
300
+
301
+ # Visual Studio 6 technical files
302
+ *.ncb
303
+ *.aps
304
+
305
+ # Visual Studio LightSwitch build output
306
+ **/*.HTMLClient/GeneratedArtifacts
307
+ **/*.DesktopClient/GeneratedArtifacts
308
+ **/*.DesktopClient/ModelManifest.xml
309
+ **/*.Server/GeneratedArtifacts
310
+ **/*.Server/ModelManifest.xml
311
+ _Pvt_Extensions
312
+
313
+ # Paket dependency manager
314
+ .paket/paket.exe
315
+ paket-files/
316
+
317
+ # FAKE - F# Make
318
+ .fake/
319
+
320
+ # CodeRush personal settings
321
+ .cr/personal
322
+
323
+ # Python Tools for Visual Studio (PTVS)
324
+ __pycache__/
325
+ *.pyc
326
+
327
+ # Cake - Uncomment if you are using it
328
+ # tools/**
329
+ # !tools/packages.config
330
+
331
+ # Tabs Studio
332
+ *.tss
333
+
334
+ # Telerik's JustMock configuration file
335
+ *.jmconfig
336
+
337
+ # BizTalk build output
338
+ *.btp.cs
339
+ *.btm.cs
340
+ *.odx.cs
341
+ *.xsd.cs
342
+
343
+ # OpenCover UI analysis results
344
+ OpenCover/
345
+
346
+ # Azure Stream Analytics local run output
347
+ ASALocalRun/
348
+
349
+ # MSBuild Binary and Structured Log
350
+ *.binlog
351
+
352
+ # NVidia Nsight GPU debugger configuration file
353
+ *.nvuser
354
+
355
+ # MFractors (Xamarin productivity tool) working folder
356
+ .mfractor/
357
+
358
+ # Local History for Visual Studio
359
+ .localhistory/
360
+
361
+ # Visual Studio History (VSHistory) files
362
+ .vshistory/
363
+
364
+ # BeatPulse healthcheck temp database
365
+ healthchecksdb
366
+
367
+ # Backup folder for Package Reference Convert tool in Visual Studio 2017
368
+ MigrationBackup/
369
+
370
+ # Ionide (cross platform F# VS Code tools) working folder
371
+ .ionide/
372
+
373
+ # Fody - auto-generated XML schema
374
+ FodyWeavers.xsd
375
+
376
+ # VS Code files for those working on multiple tools
377
+ .vscode/*
378
+ !.vscode/settings.json
379
+ !.vscode/tasks.json
380
+ !.vscode/launch.json
381
+ !.vscode/extensions.json
382
+ *.code-workspace
383
+
384
+ # Local History for Visual Studio Code
385
+ .history/
386
+
387
+ # Windows Installer files from build outputs
388
+ *.cab
389
+ *.msi
390
+ *.msix
391
+ *.msm
392
+ *.msp
393
+
394
+ # JetBrains Rider
395
+ *.sln.iml