Skip to content

Commit 6267f91

Browse files
committed
Sync codebase
1 parent 39f29ce commit 6267f91

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/build_wheels.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
# cibuildwheel builds linux wheels inside a manylinux container
1717
# it also takes care of procuring the correct python version for us
1818
os: [ubuntu-latest, windows-latest, macos-latest]
19-
python-version: [38, 39, 310, 311]
19+
python-version: [38, 39, 310, 311, 312]
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

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

@@ -37,18 +37,18 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
os: [ubuntu-latest]
40-
python-version: [38, 39, 310, 311]
40+
python-version: [38, 39, 310, 311, 312]
4141

4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4444

4545
- name: Setup up QEMU
46-
uses: docker/setup-qemu-action@v2
46+
uses: docker/setup-qemu-action@v3
4747
with:
4848
platforms: arm64
4949

5050
- name: Build wheels
51-
uses: pypa/cibuildwheel@v2.11.3
51+
uses: pypa/cibuildwheel@v2.16.2
5252
env:
5353
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
5454
CIBW_ARCHS: aarch64
@@ -64,7 +64,7 @@ jobs:
6464
name: sdist
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- uses: actions/setup-python@v4
6969
name: Install Python
7070
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## [v0.5.2]
6+
- Build wheels for Python 3.12
7+
- Update version of PyO3 to allow multiple imports
8+
59
## [v0.5.1]
610
- Add `encoding_name_for_model`, undo some renames to variables that are implementation details
711

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tiktoken"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
edition = "2021"
55
rust-version = "1.57.0"
66

@@ -9,7 +9,7 @@ name = "_tiktoken"
99
crate-type = ["cdylib"]
1010

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

1414
# tiktoken dependencies
1515
fancy-regex = "0.11.0"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tiktoken"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models"
55
readme = "README.md"
66
license = {file = "LICENSE"}
@@ -42,3 +42,4 @@ test-command = "pytest {project}/tests --import-mode=append"
4242
[[tool.cibuildwheel.overrides]]
4343
select = "*linux_aarch64"
4444
test-command = """python -c 'import tiktoken; enc = tiktoken.get_encoding("gpt2"); assert enc.encode("hello world") == [31373, 995]'"""
45+

0 commit comments

Comments
 (0)