openai/tiktoken

Public

mirrored from https://github.com/openai/tiktokenAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
subquad2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

pyproject.toml

42lines · modecode

1[project]
2name = "tiktoken"
3version = "0.9.0"
4description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models"
5readme = "README.md"
6license = { file = "LICENSE" }
7authors = [{ name = "Shantanu Jain" }, { email = "shantanu@openai.com" }]
8dependencies = ["regex>=2022.1.18", "requests>=2.26.0"]
9optional-dependencies = { blobfile = ["blobfile>=2"] }
10requires-python = ">=3.9"
11
12[project.urls]
13homepage = "https://github.com/openai/tiktoken"
14repository = "https://github.com/openai/tiktoken"
15changelog = "https://github.com/openai/tiktoken/blob/main/CHANGELOG.md"
16
17[build-system]
18build-backend = "setuptools.build_meta"
19requires = ["setuptools>=62.4", "wheel", "setuptools-rust>=1.5.2"]
20
21[tool.cibuildwheel]
22build-frontend = "build"
23build-verbosity = 1
24
25linux.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
26linux.environment = { PATH = "$PATH:$HOME/.cargo/bin" }
27macos.before-all = "rustup target add aarch64-apple-darwin x86_64-apple-darwin"
28macos.environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" }
29
30skip = [
31 "*-manylinux_i686",
32 "*-musllinux_i686",
33 "*-win32",
34 "*-musllinux_aarch64",
35]
36macos.archs = ["x86_64", "arm64"]
37# When cross-compiling on Intel, it is not possible to test arm64 wheels.
38# Warnings will be silenced with following CIBW_TEST_SKIP
39test-skip = "*-macosx_arm64"
40
41before-test = "pip install pytest hypothesis"
42test-command = "pytest {project}/tests --import-mode=append"
43