-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate from setup.cfg to pyproject.toml #48
Conversation
Define project metadata in pyproject.toml! Required dependencies are now listed under the [project] section instead of in requirements.txt. Versioneer config has also been moved from setup.cfg to [tool.versioneer].
Package name is cupy_xarray, not cupy-xarray.
Remove requirements_test.txt file, moving the test dependencies to pyproject.toml instead. Also updated MANIFEST.in to remove the requirements.txt entry.
Still need these two lines so that the sdist won't have a 0.0.0 version. Xref https://github.com/python-versioneer/python-versioneer/blob/0.29/INSTALL.md#common-steps
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we still need a setup.py file with these versioneer.get_version()
and versioneer.get_cmdclass()
calls, otherwise the built sdist and wheel will have an invalid 0.0.0 version 😞 See python-versioneer/python-versioneer#381.
If we really want to remove the setup.py file, we can discuss about replacing versioneer with setuptools-scm, and do it in a follow-up PR.
Not needed after #49
Define project metadata in pyproject.toml!
TODO:
setup.py
setup.cfg
requirements.txt
requirements_test.txt
References:
Fixes #47