Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file was auto-generated
from setuptools import setup

setup()
Comment on lines +1 to +4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting build system with existing pyproject.toml

This PR adds a new setup.py that imports from setuptools, but the project already defines its build system in pyproject.toml using hatchling:

[build-system]
requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

Having a setup.py with from setuptools import setup alongside a pyproject.toml that uses hatchling as the build backend creates ambiguity. Some tools may pick up the setup.py and attempt to use setuptools instead of hatchling, which could cause build failures or unexpected behavior (e.g., different package metadata, missing hatch-fancy-pypi-readme processing, different include/exclude rules).

If the intent is only to add an auto-generated comment, this file shouldn't be needed at all — the project builds correctly without it. If there's a specific reason for adding setup.py, it should at minimum use the same build backend or be documented as to why it's needed alongside the existing pyproject.toml configuration.

Prompt To Fix With AI
This is a comment left during a code review.
Path: setup.py
Line: 1-4

Comment:
**Conflicting build system with existing `pyproject.toml`**

This PR adds a new `setup.py` that imports from `setuptools`, but the project already defines its build system in `pyproject.toml` using `hatchling`:

```toml
[build-system]
requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
```

Having a `setup.py` with `from setuptools import setup` alongside a `pyproject.toml` that uses `hatchling` as the build backend creates ambiguity. Some tools may pick up the `setup.py` and attempt to use `setuptools` instead of `hatchling`, which could cause build failures or unexpected behavior (e.g., different package metadata, missing `hatch-fancy-pypi-readme` processing, different `include`/`exclude` rules).

If the intent is only to add an auto-generated comment, this file shouldn't be needed at all — the project builds correctly without it. If there's a specific reason for adding `setup.py`, it should at minimum use the same build backend or be documented as to why it's needed alongside the existing `pyproject.toml` configuration.

How can I resolve this? If you propose a fix, please make it concise.