Page MenuHomePhabricator

Creating the nightly package or a new package gives a bulk of warnings
Closed, ResolvedPublicBUG REPORT

Description

nightly.err

/data/project/pywikibot/.kube_venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
/data/project/pywikibot/.kube_venv/lib/python3.11/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 :: MIT License

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

!!
  self._finalize_license_expression()
/data/project/pywikibot/.kube_venv/lib/python3.11/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

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

!!
  self._finalize_license_expression()
ModuleNotFoundError while trying to load entry-point bdist_wheel: No module named 'setuptools.command.bdist_wheel'
/data/project/pywikibot/.kube_venv/lib/python3.11/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 :: MIT License

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

!!
  self._finalize_license_expression()
/data/project/pywikibot/.kube_venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
/data/project/pywikibot/.kube_venv/lib/python3.11/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 :: MIT License

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

!!
  self._finalize_license_expression()
/data/project/pywikibot/.kube_venv/lib/python3.11/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

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

!!
  self._finalize_license_expression()
ModuleNotFoundError while trying to load entry-point bdist_wheel: No module named 'setuptools.command.bdist_wheel'
/data/project/pywikibot/.kube_venv/lib/python3.11/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 :: MIT License

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

!!
  self._finalize_license_expression()

Event Timeline

Xqt changed the task status from Open to Stalled.Jun 9 2025, 2:54 PM
Xqt triaged this task as Low priority.
Xqt changed the subtype of this task from "Task" to "Bug Report".

setuptools 77.0.3 is required to use SPDX license incormation (PEP639) but Python 3.8 is only supported until 75.3.0.

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

The same if creating a new Pywikibot distribution for pypi.

Xqt renamed this task from Creating the nightly package gives a bulk of warnings to Creating the nightly package or a new package gives a bulk of warnings.Jun 16 2025, 7:59 AM
Xqt changed the task status from Stalled to Open.Aug 3 2025, 3:09 PM

Here the warnings during creating a dist:

* Getting build dependencies for sdist...
C:\Users\kseiler\AppData\Local\Temp\build-env-vurn7woz\Lib\site-packages\setuptools\_distutils\dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
C:\Users\kseiler\AppData\Local\Temp\build-env-vurn7woz\Lib\site-packages\setuptools\_distutils\dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
C:\Users\kseiler\AppData\Local\Temp\build-env-vurn7woz\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

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

!!
  corresp(dist, value, root_dir)
C:\Users\kseiler\AppData\Local\Temp\build-env-vurn7woz\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: MIT License

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

!!
  dist._finalize_license_expression()
C:\Users\kseiler\AppData\Local\Temp\build-env-vurn7woz\Lib\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 :: MIT License

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

!!
  self._finalize_license_expression()

Change #1175255 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Cleanup: Update setup.py and pyproject.toml

https://gerrit.wikimedia.org/r/1175255

Change #1175255 merged by jenkins-bot:

[pywikibot/core@master] Cleanup: Update setup.py

https://gerrit.wikimedia.org/r/1175255

Change #1212663 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] fix: update license declaration to SPDX string due to PEP639

https://gerrit.wikimedia.org/r/1212663

Xqt claimed this task.

Change #1212663 merged by jenkins-bot:

[pywikibot/core@master] fix: update license declaration to SPDX string due to PEP639

https://gerrit.wikimedia.org/r/1212663

Change #1252171 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] fix: update scripts license declaration to SPDX string due to PEP639

https://gerrit.wikimedia.org/r/1252171

Change #1252171 merged by Xqt:

[pywikibot/core@master] fix: update scripts license declaration to SPDX string due to PEP639

https://gerrit.wikimedia.org/r/1252171