fix: update license format to use license-files#1503
Conversation
Replace deprecated license table format with modern license-files array
in both main package and codeflash-benchmark subpackage. This resolves
the setuptools deprecation warning about TOML table license format.
Changes:
- Use license-files = ["LICENSE"] instead of license = {text = "BSL-1.1"}
- Add LICENSE file to root directory
- Add LICENSE and README.md to codeflash-benchmark/
| authors = [{ name = "CodeFlash Inc.", email = "contact@codeflash.ai" }] | ||
| requires-python = ">=3.9" | ||
| readme = "README.md" | ||
| license-files = ["LICENSE"] |
There was a problem hiding this comment.
Issue: CRLF line endings introduced
All files in this PR have been converted from LF to CRLF line endings. The pyproject.toml on main uses LF (Unix) line endings, but this PR changes it to CRLF (Windows). This causes the entire file to show as changed in the diff rather than just the license → license-files line.
Please re-save these files with LF line endings to keep the diff minimal and consistent with the rest of the repo. In most editors you can change this in the status bar (e.g., VS Code: click "CRLF" → "LF").
|
|
||
| 3. To specify a Change Date. | ||
|
|
||
| 4. Not to modify this License in any other way. No newline at end of file |
There was a problem hiding this comment.
Minor: Missing trailing newline
This file is missing a trailing newline at the end. POSIX convention expects text files to end with a newline character. Consider adding one.
PR Review SummaryPrek ChecksPassed — No Python files changed in this PR, so ruff check/format were skipped (no files to check). Code ReviewChanges reviewed: The only functional change is replacing the deprecated Issues found:
No critical bugs, security vulnerabilities, or breaking API changes found. The license format update is correct and addresses the setuptools deprecation warning. Test CoverageNo Python source files were changed in this PR — only Optimization PRsChecked 4 open codeflash-ai[bot] PRs targeting
None are safe to merge — all have failing CI checks. Last updated: 2026-02-17 |
Summary
Replace deprecated license table format with modern license-files array in both main package and codeflash-benchmark subpackage.
Changes
license-files = ["LICENSE"]instead oflicense = {text = "BSL-1.1"}Resolves
Fixes the setuptools deprecation warning about TOML table license format that will become unsupported by 2027-Feb-18.