qsim
qsim copied to clipboard
Fix #839 and move most `setup.py` metadata and config into `pyproject.toml`
This addresses deprecation warnings originating from the use of outdated setuptools functions. I took this opportunity to modernize the package definition in accordance with current Python packaging standards (PEP 621).
Key changes include:
- All declarative package metadata (e.g., name, version, dependencies, author, classifiers) has been moved from
setup.pytopyproject.toml. - The
setup.pyfile has been simplified to only contain the logic necessary for building the C++ extensions. - The deprecated
self.distribution.get_version()method has been replaced with a direct use of the__version__variable. - The
py.typedmarker file is now correctly included in the package via the[tool.setuptools.package-data]configuration inpyproject.toml.
This should fix #839 and also set the stage for using pyproject.toml to add more metadata and project configuration settings.
(I used Jules to help with this.)