Skip to content

Commit

Permalink
Sync codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Dec 3, 2023
1 parent 39f29ce commit 6267f91
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
# cibuildwheel builds linux wheels inside a manylinux container
# it also takes care of procuring the correct python version for us
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [38, 39, 310, 311]
python-version: [38, 39, 310, 311, 312]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pypa/cibuildwheel@v2.11.3
- uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BUILD: "cp${{ matrix.python-version}}-*"

Expand All @@ -37,18 +37,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [38, 39, 310, 311]
python-version: [38, 39, 310, 311, 312]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build wheels
uses: pypa/cibuildwheel@v2.11.3
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
CIBW_ARCHS: aarch64
Expand All @@ -64,7 +64,7 @@ jobs:
name: sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
name: Install Python
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This is the changelog for the open source version of tiktoken.

## [v0.5.2]
- Build wheels for Python 3.12
- Update version of PyO3 to allow multiple imports

## [v0.5.1]
- Add `encoding_name_for_model`, undo some renames to variables that are implementation details

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tiktoken"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
rust-version = "1.57.0"

Expand All @@ -9,7 +9,7 @@ name = "_tiktoken"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.19.0", features = ["extension-module"] }
pyo3 = { version = "0.20.0", features = ["extension-module"] }

# tiktoken dependencies
fancy-regex = "0.11.0"
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tiktoken"
version = "0.5.1"
version = "0.5.2"
description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down Expand Up @@ -42,3 +42,4 @@ test-command = "pytest {project}/tests --import-mode=append"
[[tool.cibuildwheel.overrides]]
select = "*linux_aarch64"
test-command = """python -c 'import tiktoken; enc = tiktoken.get_encoding("gpt2"); assert enc.encode("hello world") == [31373, 995]'"""

0 comments on commit 6267f91

Please sign in to comment.