豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Add pyproject.toml for PEP 518 build system compliance#271

Open
yurekami wants to merge 1 commit intodeepseek-ai:mainfrom
yurekami:feature/add-pyproject-toml
Open

Add pyproject.toml for PEP 518 build system compliance#271
yurekami wants to merge 1 commit intodeepseek-ai:mainfrom
yurekami:feature/add-pyproject-toml

Conversation

@yurekami
Copy link
Copy Markdown
Contributor

Summary

This PR adds a pyproject.toml file to address #207 (Missing build requirements documentation).

Changes:

  • Added pyproject.toml specifying build-system requirements per PEP 518
  • Build dependencies: setuptools>=61.0, wheel, torch>=2.0.0, packaging
  • Project metadata including description, authors, Python version requirements, and classifiers
  • Dynamic version reading from deep_gemm.__version__
  • Package data configuration for include files

Benefits

  1. PEP 518 Compliance: Modern packaging tools (pip, build, poetry) expect pyproject.toml for build isolation
  2. Build Reproducibility: Explicit build requirements ensure consistent builds across environments
  3. Better Discovery: Enhanced metadata improves package discoverability on PyPI
  4. Future-proof: setup.py is being phased out in favor of declarative pyproject.toml

Test Plan

  • Verify pip install . works correctly with build isolation
  • Verify python -m build produces correct wheel
  • Verify existing setup.py functionality remains intact

Fixes #207

🤖 Generated with Claude Code

This adds a pyproject.toml file to specify build-system requirements,
addressing the issue of missing build requirements documentation.

The pyproject.toml specifies:
- Build dependencies: setuptools, wheel, torch, packaging
- Project metadata including description, authors, classifiers
- Dynamic version reading from deep_gemm.__version__
- Package data configuration for include files

This enables proper isolation of build dependencies and makes the
package compatible with modern Python packaging tools (pip, build, etc.)
that expect PEP 518 compliance.

Fixes deepseek-ai#207

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

Missing build requirements for 2.1.0 release package

1 participant