asr-data 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.
@@ -0,0 +1,194 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag:
9
+ description: "Existing release tag to publish, for example v0.1.0"
10
+ required: true
11
+ type: string
12
+ publish_pypi:
13
+ description: "Publish wheels to PyPI"
14
+ required: true
15
+ default: true
16
+ type: boolean
17
+ publish_crates:
18
+ description: "Publish Rust crate to crates.io"
19
+ required: true
20
+ default: true
21
+ type: boolean
22
+
23
+ permissions:
24
+ contents: write
25
+
26
+ jobs:
27
+ prepare:
28
+ name: Prepare
29
+ runs-on: ubuntu-latest
30
+ outputs:
31
+ tag: ${{ steps.meta.outputs.tag }}
32
+ version: ${{ steps.meta.outputs.version }}
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ with:
36
+ fetch-depth: 0
37
+ fetch-tags: true
38
+
39
+ - name: Resolve tag and verify versions
40
+ id: meta
41
+ shell: bash
42
+ run: |
43
+ set -euo pipefail
44
+
45
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
46
+ tag="${{ inputs.tag }}"
47
+ else
48
+ tag="${{ github.event.release.tag_name }}"
49
+ fi
50
+
51
+ if [[ ! "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([.-].+)?$ ]]; then
52
+ echo "Tag must look like v0.1.0, got: $tag" >&2
53
+ exit 1
54
+ fi
55
+
56
+ version="${tag#v}"
57
+ cargo_version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)"
58
+ py_version="$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml | head -n 1)"
59
+
60
+ if [[ "$cargo_version" != "$version" || "$py_version" != "$version" ]]; then
61
+ echo "Version mismatch: tag=$version Cargo.toml=$cargo_version pyproject.toml=$py_version" >&2
62
+ exit 1
63
+ fi
64
+
65
+ if ! git rev-parse "$tag" >/dev/null 2>&1; then
66
+ echo "Tag not found: $tag" >&2
67
+ exit 1
68
+ fi
69
+
70
+ echo "tag=$tag" >> "$GITHUB_OUTPUT"
71
+ echo "version=$version" >> "$GITHUB_OUTPUT"
72
+
73
+ build-wheels:
74
+ name: Wheels (${{ matrix.os }})
75
+ needs: prepare
76
+ runs-on: ${{ matrix.os }}
77
+ strategy:
78
+ fail-fast: false
79
+ matrix:
80
+ include:
81
+ - os: ubuntu-latest
82
+ manylinux: "auto"
83
+ - os: macos-latest
84
+ manylinux: ""
85
+ - os: windows-latest
86
+ manylinux: ""
87
+ steps:
88
+ - uses: actions/checkout@v4
89
+ with:
90
+ ref: ${{ needs.prepare.outputs.tag }}
91
+
92
+ - uses: actions/setup-python@v5
93
+ with:
94
+ python-version: "3.10"
95
+
96
+ - uses: dtolnay/rust-toolchain@stable
97
+
98
+ - uses: PyO3/maturin-action@v1
99
+ with:
100
+ command: build
101
+ args: --release --out dist --find-interpreter
102
+ manylinux: ${{ matrix.manylinux }}
103
+ sccache: true
104
+
105
+ - uses: actions/upload-artifact@v4
106
+ with:
107
+ name: wheels-${{ matrix.os }}
108
+ path: dist/*
109
+
110
+ build-sdist:
111
+ name: Source Distribution
112
+ needs: prepare
113
+ runs-on: ubuntu-latest
114
+ steps:
115
+ - uses: actions/checkout@v4
116
+ with:
117
+ ref: ${{ needs.prepare.outputs.tag }}
118
+
119
+ - uses: PyO3/maturin-action@v1
120
+ with:
121
+ command: sdist
122
+ args: --out dist
123
+
124
+ - uses: actions/upload-artifact@v4
125
+ with:
126
+ name: sdist
127
+ path: dist/*
128
+
129
+ upload-release-assets:
130
+ name: Upload Release Assets
131
+ needs: [prepare, build-wheels, build-sdist]
132
+ runs-on: ubuntu-latest
133
+ steps:
134
+ - uses: actions/download-artifact@v4
135
+ with:
136
+ pattern: "*"
137
+ merge-multiple: true
138
+ path: dist
139
+
140
+ - name: Upload artifacts with GitHub CLI
141
+ env:
142
+ GH_TOKEN: ${{ github.token }}
143
+ TAG: ${{ needs.prepare.outputs.tag }}
144
+ shell: bash
145
+ run: |
146
+ set -euo pipefail
147
+ shopt -s nullglob
148
+ files=(dist/*)
149
+ if [[ "${#files[@]}" -eq 0 ]]; then
150
+ echo "No artifacts to upload" >&2
151
+ exit 1
152
+ fi
153
+ gh release upload "$TAG" "${files[@]}" --clobber --repo "${{ github.repository }}"
154
+
155
+ publish-pypi:
156
+ name: Publish PyPI
157
+ if: github.event_name == 'release' || inputs.publish_pypi
158
+ needs: [prepare, upload-release-assets]
159
+ runs-on: ubuntu-latest
160
+ environment: pypi
161
+ permissions:
162
+ contents: read
163
+ steps:
164
+ - uses: actions/download-artifact@v4
165
+ with:
166
+ pattern: "*"
167
+ merge-multiple: true
168
+ path: dist
169
+
170
+ - uses: pypa/gh-action-pypi-publish@release/v1
171
+ with:
172
+ packages-dir: dist
173
+ skip-existing: true
174
+ password: ${{ secrets.PYPI_API_TOKEN }}
175
+
176
+ publish-crates:
177
+ name: Publish crates.io
178
+ if: github.event_name == 'release' || inputs.publish_crates
179
+ needs: [prepare, upload-release-assets]
180
+ runs-on: ubuntu-latest
181
+ environment: crates-io
182
+ permissions:
183
+ contents: read
184
+ steps:
185
+ - uses: actions/checkout@v4
186
+ with:
187
+ ref: ${{ needs.prepare.outputs.tag }}
188
+
189
+ - uses: dtolnay/rust-toolchain@stable
190
+
191
+ - name: Publish asr-data
192
+ run: cargo publish -p asr-data --locked
193
+ env:
194
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -0,0 +1,220 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ .DS_Store
3
+ __pycache__/
4
+ *.py[codz]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py.cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+ *.crswap
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ # Pipfile.lock
98
+
99
+ # UV
100
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # uv.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ # poetry.lock
111
+ # poetry.toml
112
+
113
+ # pdm
114
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
116
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
117
+ # pdm.lock
118
+ # pdm.toml
119
+ .pdm-python
120
+ .pdm-build/
121
+
122
+ # pixi
123
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
124
+ # pixi.lock
125
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
126
+ # in the .venv directory. It is recommended not to include this directory in version control.
127
+ .pixi
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
201
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
203
+ # you could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml