On 05.02.25 17:03, Colin Watson wrote:
> This seems to have happened because of a strange addition of "rm -f> pyproject.toml" in debian/rules. If I remove that, nothing seems to go
wrong, the package has sensible metadata again, and pystray builds.

diff -Nru pillow-11.1.0/debian/rules pillow-11.1.0/debian/rules
--- pillow-11.1.0/debian/rules  2025-01-23 10:30:44.000000000 +0000
+++ pillow-11.1.0/debian/rules  2025-02-05 15:53:51.000000000 +0000
@@ -34,7 +34,6 @@
  build-stamp: $(PY3VERS:%=build-stamp-python%) $(PY3VERS:%=check-stamp-python%)
        touch $@
  build-stamp-python%:
-       rm -f pyproject.toml
  #     tar xvf debian/lcms-images.tar.gz
        $(SET_CROSS_ENV) python$* setup.py build
        touch $@

yes, I added that, because without the removal I get:

 debian/rules build
py3versions: no X-Python3-Version in control file, using supported versions
<string>:1: SyntaxWarning: invalid escape sequence '\d'
python3.12 setup.py build
configuration error: `project.classifiers[1]` must be trove-classifier
DESCRIPTION:
    `PyPI classifier <https://pypi.org/classifiers/>`_.

GIVEN VALUE:
    "License :: OSI Approved :: CMU License (MIT-CMU)"

OFFENDING RULE: 'format'

DEFINITION:
    {
        "type": "string",
        "format": "trove-classifier"
    }

For more details about `format` see
https://validate-pyproject.readthedocs.io/en/latest/api/validate_pyproject.formats.html

Traceback (most recent call last):
File "/home/packages/pillow/pillow-11.1.0/setup.py", line 1035, in <module>
    setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 157, in setup
    dist.parse_config_files()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 648, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/usr/lib/python3/dist-packages/setuptools/config/pyprojecttoml.py", line 72, in apply_configuration
    config = read_configuration(filepath, True, ignore_option_errors, dist)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/config/pyprojecttoml.py", line 140, in read_configuration
    validate(subset, filepath)
File "/usr/lib/python3/dist-packages/setuptools/config/pyprojecttoml.py", line 61, in validate
    raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.classifiers[1]`.
configuration error: `project.classifiers[1]` must be trove-classifier
make: *** [debian/rules:38: build-stamp-python3.12] Error 1

Reply via email to