Add pyproject.toml for modern Python packaging

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
build-system

Research direction

Start by reading setup.py and the existing packaging configuration, then review the PEP 517/518 requirements for pyproject.toml. Define the build system, project metadata, version-ranged dependencies, and optional development dependencies while preserving the CUDA extension build logic. Verify that pip install -e . works cleanly and that the requested dependency and metadata behavior is represented.

Written by the indexing model from the issue text.

Description

Problem

The project uses a legacy setup.py as the sole packaging configuration. Modern Python packaging uses pyproject.toml (PEP 517/518).

Also, setup.py hardcodes nvidia-cutlass-dsl==4.4.2 as the only dependency — no version range flexibility.

Recommendation

Add a pyproject.toml with:

  • Build system declaration (setuptools + CUDA extension)
  • Project metadata (name, version, description, license, Python version)
  • Dependencies with version ranges (e.g., nvidia-cutlass-dsl>=4.4,<4.5)
  • Optional dev dependencies (pytest, mypy, ruff)

Keep setup.py only for the CUDA extension build logic, or migrate fully to pyproject.toml + a build script.

Impact

Modernization. Enables pip install -e . to work cleanly, makes dependency resolution smarter, and follows current Python packaging standards.

Dominant language
Python
Stars
1.1k
Forks
134
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MoonshotAI/MoonEP

All issues in MoonshotAI/MoonEP

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.