Skip to content

Conversation

utsab345
Copy link

Fix deprecation warnings from setuptools by migrating project metadata to pyproject.toml and updating contributor docs.

What I changed

  • Added pyproject.toml (PEP 518/621) and declared build backend setuptools.build_meta with setuptools>=61 and wheel.
  • Replaced setup.py contents with a minimal compatibility wrapper that defers to pyproject metadata (removes test and develop logic).
  • Updated Makefile target install to use python -m pip install -e ..
  • Updated README/CONTRIBUTING instructions to use pip + pytest instead of setup.py develop/test.

Why
The project was using setup.py commands (notably develop and test) that setuptools has deprecated and that print warnings. Moving to pyproject.toml and PEP 660-compatible editable installs avoids deprecation warnings and is the modern packaging recommended approach.

Notes for maintainers

  • Please review pyproject.toml to ensure dependencies exactly mirror install_requires from the previous setup.py.
  • If you prefer a non-setuptools backend (flit/poetry), we can provide a variant. I chose setuptools.build_meta for minimal-impact migration.

Closes: #647

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.

setuptools deprecated
1 participant