Edgewall Software
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 =  
    1515    Environment :: Web Environment
    1616    Framework :: Trac
    1717    Intended Audience :: Developers
    18     License :: OSI Approved :: BSD License
    1918    Operating System :: OS Independent
    2019    Programming Language :: Python
    2120    Programming Language :: Python :: 3
    classifiers =  
    3635zip_safe = True
    3736python_requires = >= 3.5
    3837packages = find:
    39 setup_requires =
    40     jinja2>=2.9.3
    4138install_requires =
    4239    setuptools>=30.3,<81
    4340    jinja2>=2.9.3

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Jun Omae.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.