Modify ↓
Opened 2 months ago
#13915 assigned defect
Warnings from setuptools.setup()
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.2 |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
$ /venv/py310/bin/python setup.py --help
/src/trac/__init__.py:14: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import DistributionNotFound, get_distribution
/venv/py310/lib/python3.10/site-packages/setuptools/dist.py:765: 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.
********************************************************************************
!!
self._finalize_license_expression()
/venv/py310/lib/python3.10/site-packages/setuptools/__init__.py:92: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
Common commands: (see '--help-commands' for more)
...
Fixing the issues is to remove license in the classifiers and setup_requires in setup.cfg.
-
setup.cfg
diff --git a/setup.cfg b/setup.cfg index f1c66f167..87a42c430 100644
a b classifiers = 15 15 Environment :: Web Environment 16 16 Framework :: Trac 17 17 Intended Audience :: Developers 18 License :: OSI Approved :: BSD License19 18 Operating System :: OS Independent 20 19 Programming Language :: Python 21 20 Programming Language :: Python :: 3 … … classifiers = 36 35 zip_safe = True 37 36 python_requires = >= 3.5 38 37 packages = find: 39 setup_requires =40 jinja2>=2.9.341 38 install_requires = 42 39 setuptools>=30.3,<81 43 40 jinja2>=2.9.3
Attachments (0)
Note:
See TracTickets
for help on using tickets.


