Skip to content

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Apr 9, 2025

When running tox -e pep8 in the GitHub runner, a warning is displayed noting that the license classifier is deprecated.

× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [258 lines of output]

/home/runner/work/bandit/bandit/.tox/pep8/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

********************************************************************************

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

License :: OSI Approved :: Apache Software License

https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

When running `tox -e pep8` in the GitHub runner, a warning is displayed noting that the license classifier is deprecated.

```
× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [258 lines of output]

/home/runner/work/bandit/bandit/.tox/pep8/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

********************************************************************************

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

License :: OSI Approved :: Apache Software License
```

Also according to the Python Packaging doc, the license property should be the SPDX identifier.

https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
@sigmavirus24 sigmavirus24 merged commit c931679 into main Apr 9, 2025
27 checks passed
@sigmavirus24 sigmavirus24 deleted the ericwb-patch-1 branch April 9, 2025 12:23
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.

2 participants