[project] name = "tiktoken" version = "0.2.0" dependencies = ["blobfile>=2", "regex>=2022.1.18", "requests>=2.26.0"] requires-python = ">=3.8" [build-system] build-backend = "setuptools.build_meta" requires = ["setuptools>=62.4", "wheel", "setuptools-rust>=1.5.2"] [tool.cibuildwheel] build-frontend = "build" build-verbosity = 1 linux.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" linux.environment = { PATH = "$PATH:$HOME/.cargo/bin" } macos.before-all = "rustup target add aarch64-apple-darwin" skip = [ "*-manylinux_i686", "*-musllinux_i686", "*-win32", ] macos.archs = ["x86_64", "arm64"] # When cross-compiling on Intel, it is not possible to test arm64 wheels. # Warnings will be silenced with following CIBW_TEST_SKIP test-skip = "*-macosx_arm64" before-test = "pip install pytest" test-command = "pytest {project}/tests"