Skip to content

Commit 58d15c2

Browse files
authored
tiktoken (#971)
* tiktoken * Update recipe.yaml * Update recipe.yaml * lic
1 parent 34939bb commit 58d15c2

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
3+
4+
export MATURIN_PYTHON_SYSCONFIGDATA_DIR=${PREFIX}/etc/conda/_sysconfigdata__emscripten_wasm32-emscripten.py
5+
${PYTHON} -m pip install . -vvv
6+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
context:
2+
name: tiktoken
3+
version: 0.6.0
4+
5+
package:
6+
name: ${{name}}
7+
version: ${{ version }}
8+
9+
source:
10+
- url: https://pypi.io/packages/source/t/${{ name }}/tiktoken-${{ version }}.tar.gz
11+
sha256: ace62a4ede83c75b0374a2ddfa4b76903cf483e9cb06247f566be3bf14e6beed
12+
13+
build:
14+
number: 0
15+
16+
requirements:
17+
build:
18+
- cross-python_${{target_platform}}
19+
- setuptools-rust
20+
- rust
21+
- cargo-bundle-licenses
22+
host:
23+
- python
24+
run:
25+
- regex
26+
27+
28+
tests:
29+
- script: pytester
30+
requirements:
31+
build:
32+
- pytester
33+
run:
34+
- pytester-run
35+
files:
36+
recipe:
37+
- test_tiktoken.py
38+
39+
40+
about:
41+
license_family: MIT
42+
license_file:
43+
- LICENSE
44+
- THIRDPARTY.yml
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
def test_import():
3+
import tiktoken
4+

0 commit comments

Comments
 (0)