Skip to content

tiktoken #971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes/recipes_emscripten/tiktoken/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

export MATURIN_PYTHON_SYSCONFIGDATA_DIR=${PREFIX}/etc/conda/_sysconfigdata__emscripten_wasm32-emscripten.py
${PYTHON} -m pip install . -vvv

44 changes: 44 additions & 0 deletions recipes/recipes_emscripten/tiktoken/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
context:
name: tiktoken
version: 0.6.0

package:
name: ${{name}}
version: ${{ version }}

source:
- url: https://pypi.io/packages/source/t/${{ name }}/tiktoken-${{ version }}.tar.gz
sha256: ace62a4ede83c75b0374a2ddfa4b76903cf483e9cb06247f566be3bf14e6beed

build:
number: 0

requirements:
build:
- cross-python_${{target_platform}}
- setuptools-rust
- rust
- cargo-bundle-licenses
host:
- python
run:
- regex


tests:
- script: pytester
requirements:
build:
- pytester
run:
- pytester-run
files:
recipe:
- test_tiktoken.py


about:
license_family: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
4 changes: 4 additions & 0 deletions recipes/recipes_emscripten/tiktoken/test_tiktoken.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

def test_import():
import tiktoken