boabem 0.1.0__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.
- boabem-0.1.0/.github/dependabot.yml +15 -0
- boabem-0.1.0/.github/workflows/release.yml +133 -0
- boabem-0.1.0/.github/workflows/test.yml +43 -0
- boabem-0.1.0/.gitignore +231 -0
- boabem-0.1.0/.pre-commit-config.yaml +35 -0
- boabem-0.1.0/Cargo.lock +2136 -0
- boabem-0.1.0/Cargo.toml +37 -0
- boabem-0.1.0/LICENSE-APACHE +201 -0
- boabem-0.1.0/LICENSE-MIT +21 -0
- boabem-0.1.0/PKG-INFO +101 -0
- boabem-0.1.0/README.md +82 -0
- boabem-0.1.0/noxfile.py +7 -0
- boabem-0.1.0/pyproject.toml +71 -0
- boabem-0.1.0/python/boabem/__init__.py +3 -0
- boabem-0.1.0/python/boabem/boabem.pyi +12 -0
- boabem-0.1.0/src/hebi.rs +107 -0
- boabem-0.1.0/src/lib.rs +10 -0
- boabem-0.1.0/tests/__init__.py +0 -0
- boabem-0.1.0/tests/intl_test.py +55 -0
- boabem-0.1.0/tests/main_test.py +417 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "github-actions" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
|
12
|
+
groups:
|
|
13
|
+
default:
|
|
14
|
+
patterns:
|
|
15
|
+
- "*"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
wheel:
|
|
14
|
+
name: Build Wheel
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
include:
|
|
20
|
+
- os: ubuntu-latest
|
|
21
|
+
manylinux: auto
|
|
22
|
+
target: x86_64-unknown-linux-gnu
|
|
23
|
+
args: --out dist
|
|
24
|
+
- os: ubuntu-24.04-arm
|
|
25
|
+
manylinux: auto
|
|
26
|
+
target: aarch64-unknown-linux-gnu
|
|
27
|
+
args: --out dist
|
|
28
|
+
- os: ubuntu-latest
|
|
29
|
+
manylinux: auto
|
|
30
|
+
target: riscv64gc-unknown-linux-gnu
|
|
31
|
+
args: --out dist
|
|
32
|
+
- os: ubuntu-latest
|
|
33
|
+
manylinux: musllinux_1_2
|
|
34
|
+
target: x86_64-unknown-linux-musl
|
|
35
|
+
args: --out dist
|
|
36
|
+
- os: ubuntu-24.04-arm
|
|
37
|
+
manylinux: musllinux_1_2
|
|
38
|
+
target: aarch64-unknown-linux-musl
|
|
39
|
+
args: --out dist
|
|
40
|
+
- os: ubuntu-latest
|
|
41
|
+
manylinux: musllinux_1_2
|
|
42
|
+
target: riscv64gc-unknown-linux-musl
|
|
43
|
+
args: --out dist --zig
|
|
44
|
+
- os: macos-latest
|
|
45
|
+
manylinux: auto
|
|
46
|
+
target: x86_64-apple-darwin
|
|
47
|
+
args: --out dist
|
|
48
|
+
- os: macos-latest
|
|
49
|
+
manylinux: auto
|
|
50
|
+
target: aarch64-apple-darwin
|
|
51
|
+
args: --out dist
|
|
52
|
+
- os: windows-latest
|
|
53
|
+
manylinux: auto
|
|
54
|
+
target: x86_64-pc-windows-msvc
|
|
55
|
+
args: --out dist
|
|
56
|
+
- os: windows-11-arm
|
|
57
|
+
manylinux: auto
|
|
58
|
+
target: aarch64-pc-windows-msvc
|
|
59
|
+
args: --out dist
|
|
60
|
+
|
|
61
|
+
defaults:
|
|
62
|
+
run:
|
|
63
|
+
shell: nu {0}
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- uses: hustcer/setup-nu@v3
|
|
67
|
+
- uses: actions/checkout@v5
|
|
68
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
69
|
+
with:
|
|
70
|
+
target: ${{ matrix.target }}
|
|
71
|
+
|
|
72
|
+
- name: Build wheel
|
|
73
|
+
uses: PyO3/maturin-action@v1
|
|
74
|
+
with:
|
|
75
|
+
manylinux: ${{ matrix.manylinux }}
|
|
76
|
+
target: ${{ matrix.target }}
|
|
77
|
+
args: ${{ matrix.args }}
|
|
78
|
+
|
|
79
|
+
- run: ls dist
|
|
80
|
+
|
|
81
|
+
- uses: actions/upload-artifact@v4
|
|
82
|
+
with:
|
|
83
|
+
name: wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
|
84
|
+
path: ./dist/*.whl
|
|
85
|
+
if-no-files-found: error
|
|
86
|
+
|
|
87
|
+
sdist:
|
|
88
|
+
runs-on: ubuntu-latest
|
|
89
|
+
defaults:
|
|
90
|
+
run:
|
|
91
|
+
shell: nu {0}
|
|
92
|
+
steps:
|
|
93
|
+
- uses: hustcer/setup-nu@v3
|
|
94
|
+
- uses: actions/checkout@v5
|
|
95
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
96
|
+
- uses: astral-sh/setup-uv@v6
|
|
97
|
+
|
|
98
|
+
- name: Build sdist
|
|
99
|
+
run: uv build --sdist
|
|
100
|
+
|
|
101
|
+
- run: ls dist
|
|
102
|
+
|
|
103
|
+
- uses: actions/upload-artifact@v4
|
|
104
|
+
with:
|
|
105
|
+
name: sdist
|
|
106
|
+
path: ./dist/*.tar.gz
|
|
107
|
+
if-no-files-found: error
|
|
108
|
+
|
|
109
|
+
publish:
|
|
110
|
+
name: Publish
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
needs: [wheel, sdist]
|
|
113
|
+
environment: publish
|
|
114
|
+
permissions:
|
|
115
|
+
id-token: write
|
|
116
|
+
attestations: write
|
|
117
|
+
|
|
118
|
+
steps:
|
|
119
|
+
- uses: actions/download-artifact@v5
|
|
120
|
+
with:
|
|
121
|
+
path: dist
|
|
122
|
+
merge-multiple: true
|
|
123
|
+
|
|
124
|
+
- run: ls dist
|
|
125
|
+
|
|
126
|
+
- name: Generate artifact attestation
|
|
127
|
+
uses: actions/attest-build-provenance@v2
|
|
128
|
+
with:
|
|
129
|
+
subject-path: "dist/*"
|
|
130
|
+
|
|
131
|
+
- name: Publish to PyPI
|
|
132
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
133
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
paths:
|
|
8
|
+
- "**/*.py"
|
|
9
|
+
- "**/*.rs"
|
|
10
|
+
pull_request:
|
|
11
|
+
branches:
|
|
12
|
+
- main
|
|
13
|
+
paths:
|
|
14
|
+
- "**/*.py"
|
|
15
|
+
- "**/*.rs"
|
|
16
|
+
schedule:
|
|
17
|
+
- cron: "0 0 * * 0"
|
|
18
|
+
workflow_dispatch:
|
|
19
|
+
workflow_call:
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
test:
|
|
23
|
+
name: pytest
|
|
24
|
+
runs-on: ${{ matrix.os }}
|
|
25
|
+
strategy:
|
|
26
|
+
fail-fast: false
|
|
27
|
+
matrix:
|
|
28
|
+
os:
|
|
29
|
+
- ubuntu-latest
|
|
30
|
+
- ubuntu-24.04-arm
|
|
31
|
+
- macos-latest
|
|
32
|
+
- windows-latest
|
|
33
|
+
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v5
|
|
36
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
37
|
+
- uses: astral-sh/setup-uv@v6
|
|
38
|
+
- uses: mozilla-actions/sccache-action@v0.0.9
|
|
39
|
+
- name: Run tests
|
|
40
|
+
run: uvx nox -s test
|
|
41
|
+
env:
|
|
42
|
+
SCCACHE_GHA_ENABLED: "true"
|
|
43
|
+
RUSTC_WRAPPER: "sccache"
|
boabem-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Generated by Cargo
|
|
210
|
+
# will have compiled files and executables
|
|
211
|
+
debug
|
|
212
|
+
target
|
|
213
|
+
|
|
214
|
+
# These are backup files generated by rustfmt
|
|
215
|
+
**/*.rs.bk
|
|
216
|
+
|
|
217
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
218
|
+
*.pdb
|
|
219
|
+
|
|
220
|
+
# Generated by cargo mutants
|
|
221
|
+
# Contains mutation testing data
|
|
222
|
+
**/mutants.out*/
|
|
223
|
+
|
|
224
|
+
# RustRover
|
|
225
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
226
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
227
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
228
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
229
|
+
#.idea/
|
|
230
|
+
|
|
231
|
+
*.lock
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-ast
|
|
6
|
+
- id: check-case-conflict
|
|
7
|
+
- id: check-json
|
|
8
|
+
- id: check-merge-conflict
|
|
9
|
+
- id: check-toml
|
|
10
|
+
- id: check-yaml
|
|
11
|
+
- id: trailing-whitespace
|
|
12
|
+
args: [--markdown-linebreak-ext=md]
|
|
13
|
+
- id: end-of-file-fixer
|
|
14
|
+
- id: mixed-line-ending
|
|
15
|
+
|
|
16
|
+
- repo: https://github.com/rbubley/mirrors-prettier
|
|
17
|
+
rev: v3.6.2
|
|
18
|
+
hooks:
|
|
19
|
+
- id: prettier
|
|
20
|
+
|
|
21
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
22
|
+
rev: v0.12.10
|
|
23
|
+
hooks:
|
|
24
|
+
- id: ruff-check
|
|
25
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
26
|
+
- id: ruff-format
|
|
27
|
+
|
|
28
|
+
- repo: https://github.com/AndrejOrsula/pre-commit-cargo
|
|
29
|
+
rev: 0.4.0
|
|
30
|
+
hooks:
|
|
31
|
+
- id: cargo-check
|
|
32
|
+
- id: cargo-fmt
|
|
33
|
+
- id: cargo-clippy
|
|
34
|
+
args: ["--all-targets", "--all-features"]
|
|
35
|
+
- id: cargo-fix
|