Skip to content

build: convert setup.py to pyproject#312

Open
RecRanger wants to merge 1 commit intoPolymarket:mainfrom
RecRanger:setup-to-pyproject
Open

build: convert setup.py to pyproject#312
RecRanger wants to merge 1 commit intoPolymarket:mainfrom
RecRanger:setup-to-pyproject

Conversation

@RecRanger
Copy link
Copy Markdown

@RecRanger RecRanger commented Mar 26, 2026

Overview

This PR converts the old, legacy setup.py build configuration to a modern pyproject.toml file.

It also converts the build system from setuptools to hatchling (the secure, simpler, modern alternative).

It brings all other settings over, exactly as they are.

Types of changes

  • Refactor/enhancement
  • Bug fix/behavior correction
  • New feature
  • Breaking change
  • Other, additional

Notes

Simple change.

Status

  • Prefix PR title with [WIP] if necessary (changes not yet made).
  • Add tests to cover changes as needed.
  • Update documentation/changelog as needed.
  • Verify all tests run correctly in CI and pass.
  • Ready for review/merge.

Note

Medium Risk
Low functional risk to runtime code, but it changes the packaging/build backend from setuptools to hatchling, which can impact how wheels/sdists are built and published.

Overview
Migrates project packaging from legacy setup.py to a PEP 621 pyproject.toml, switching the build backend to hatchling.

Carries over the existing project metadata and runtime dependencies, adds a dev dependency group, and configures wheel builds to include the py_clob_client package.

Written by Cursor Bugbot for commit 461e17c. This will update automatically on new commits. Configure here.

@RecRanger RecRanger requested a review from a team as a code owner March 26, 2026 21:19
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.

1 participant