Skip to content

Migrate from setup.cfg to pyproject.toml#48

Merged
weiji14 merged 8 commits intomainfrom
migrate_to_pyproject_toml
Jun 28, 2024
Merged

Migrate from setup.cfg to pyproject.toml#48
weiji14 merged 8 commits intomainfrom
migrate_to_pyproject_toml

Conversation

@weiji14
Copy link
Member

@weiji14 weiji14 commented Jun 25, 2024

Define project metadata in pyproject.toml!

TODO:

  • Migrate project metadata from setup.py
  • Migrate versioneer config from setup.cfg
  • Migrate required dependencies from requirements.txt
  • Migrate optional dependencies from requirements_test.txt

References:

Fixes #47

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].
@weiji14 weiji14 self-assigned this Jun 25, 2024
weiji14 added 2 commits June 25, 2024 12:43
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.
@weiji14 weiji14 changed the title Migrate from setup.py to pyproject.toml Migrate from setup.cfg to pyproject.toml Jun 25, 2024
Comment on lines +7 to +8
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
Copy link
Member Author

@weiji14 weiji14 Jun 25, 2024

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.

@weiji14 weiji14 marked this pull request as ready for review June 25, 2024 03:05
Not needed after #49
@weiji14 weiji14 merged commit 167945e into main Jun 28, 2024
@weiji14 weiji14 deleted the migrate_to_pyproject_toml branch June 28, 2024 22:41
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.

Migrate from setup.py to pyproject.toml?

2 participants

Comments