From 18f225de394a7ae6e6a60dea6e159cd3978d846c Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Fri, 1 Aug 2025 20:43:30 +0000 Subject: [PATCH 1/2] Update license field to use proper SPDX identifier This changes the license field to be a valid [SPDX identifier](https://spdx.org/licenses) aligning with [PEP 639](https://peps.python.org/pep-0639/#project-source-metadata). This populates the `license_expression` field in the PyPI API and is used by downstream tools including deps.dev This PR was generated by Claude after reviewing the license and manifest files in your repository, but opened and reviewed by me. Please let me know if the analysis is incorrect and thanks for being an OSS maintainer. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b2056d9..af2948e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "tiktoken" version = "0.9.0" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" readme = "README.md" -license = { file = "LICENSE" } +license = "MIT" authors = [{ name = "Shantanu Jain" }, { email = "shantanu@openai.com" }] dependencies = ["regex>=2022.1.18", "requests>=2.26.0"] optional-dependencies = { blobfile = ["blobfile>=2"] } From ee025fb3b426f43b47c3d215635bda069c28f9e8 Mon Sep 17 00:00:00 2001 From: Leif Date: Fri, 1 Aug 2025 16:55:20 -0400 Subject: [PATCH 2/2] Update pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index af2948e..11ab948 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ version = "0.9.0" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" readme = "README.md" license = "MIT" +license-files = ["LICENSE"] authors = [{ name = "Shantanu Jain" }, { email = "shantanu@openai.com" }] dependencies = ["regex>=2022.1.18", "requests>=2.26.0"] optional-dependencies = { blobfile = ["blobfile>=2"] }