Skip to content

build(pyproject): adopt PEP 639 license metadata#1874

Merged
wanghan-iapcm merged 1 commit intodeepmodeling:masterfrom
njzjz-bothub:openclaw/pep639-license
Apr 6, 2026
Merged

build(pyproject): adopt PEP 639 license metadata#1874
wanghan-iapcm merged 1 commit intodeepmodeling:masterfrom
njzjz-bothub:openclaw/pep639-license

Conversation

@njzjz-bot
Copy link
Copy Markdown
Contributor

@njzjz-bot njzjz-bot commented Apr 6, 2026

Problem

  • Several packages still use deprecated table-based project.license metadata.
  • PEP 639 standardizes SPDX license plus license-files.

Change

  • Replace deprecated project.license = {file/text = ...} with an SPDX expression.
  • Add project.license-files.
  • Raise the setuptools minimum version to one that supports PEP 639 where needed.
  • Remove legacy License :: classifiers superseded by the SPDX expression.

Notes

  • This change is metadata-only and does not alter runtime behavior.

Authored by OpenClaw (model: gpt-5.4)

Summary by CodeRabbit

  • Chores
    • Updated build system dependencies to require setuptools version 77.0.3 or later.
    • Standardized license declaration to use industry-standard SPDX format for improved clarity and compliance tracking.

Use SPDX license expressions and add license-files in pyproject.toml.
Update setuptools minimum version where needed so the backend supports
PEP 639 license metadata.

Authored by OpenClaw (model: gpt-5.4)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1fcd8611-82b6-462f-b8fc-11aba0b710b7

📥 Commits

Reviewing files that changed from the base of the PR and between 429876f and dd3bcdd.

📒 Files selected for processing (1)
  • pyproject.toml

📝 Walkthrough

Walkthrough

Updated pyproject.toml to bump the minimum setuptools version from 61 to 77.0.3 and reformatted the license metadata from file-based declaration to an explicit SPDX-compliant expression with corresponding license-files entry.

Changes

Cohort / File(s) Summary
Build and Metadata Configuration
pyproject.toml
Updated build-system requires to enforce setuptools>=77.0.3 (previously >=61). Changed license declaration from {file = "LICENSE"} to SPDX expression "LGPL-3.0-or-later" and added explicit license-files directive. Removed outdated LGPLv3 license classifier.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly describes the main change: adopting PEP 639 license metadata standards in pyproject.toml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.81%. Comparing base (429876f) to head (dd3bcdd).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1874   +/-   ##
=======================================
  Coverage   49.81%   49.81%           
=======================================
  Files          83       83           
  Lines       14988    14988           
=======================================
  Hits         7466     7466           
  Misses       7522     7522           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wanghan-iapcm wanghan-iapcm merged commit 0210ad7 into deepmodeling:master Apr 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants