Skip to content

Fix some build warnings and mistakes in pyproject.toml #477

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

Merged
merged 4 commits into from
May 12, 2025

Conversation

rgommers
Copy link
Collaborator

This PR fixes some build warnings that were visible in CI logs, as well as two mistakes in pyproject.toml. In addition it would be good to start using the [project] section of pyproject.toml (because setuptools is discouraging/deprecation/removing alternatives, see here), but that's more involved so left for another PR.

The warnings were:

      warning: no files found matching 'tox.ini'
    
      Running command Preparing metadata (pyproject.toml)
      /tmp/pip-build-env-ua_ysm8p/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
    
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
    
              License :: OSI Approved :: BSD License
    
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

pyproject.toml changes:

  • Remove wheel as a build dependency. This hasn't been necessary in a long time. setuptools takes care of building a wheel, and whatever dependency it may need for that.
  • Fix missing build-backend key. This is a clear bug, setuptools only accepts having a build-requires section but no build-backend key either accidentally or for historical reasons, and will stop doing so at some point.

rgommers added 3 commits May 11, 2025 20:16
The warnings were:
```
  warning: no files found matching 'tox.ini'

  Running command Preparing metadata (pyproject.toml)
  /tmp/pip-build-env-ua_ysm8p/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: BSD License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************
```
This hasn't been necessary in a long time. `setuptools` takes
care of building a wheel, and whatever dependency it may need
for that.
This is a clear bug, `setuptools` only accepts having a `build-requires`
section but no `build-backend` key either accidentally or for historical
reasons, and will stop doing so at some point.
@rgommers rgommers added the packaging Issues related to installing or building bottleneck label May 11, 2025
@rgommers rgommers changed the title Fix some build warnings and mistakes in `pyproject.toml Fix some build warnings and mistakes in pyproject.toml May 11, 2025
@rdbisme
Copy link
Collaborator

rdbisme commented May 11, 2025

Ok for me!

@rdbisme rdbisme merged commit bf18fd5 into pydata:master May 12, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging Issues related to installing or building bottleneck
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants