On Thu, Feb 06, 2025 at 02:29:32PM +0100, Matthias Klose wrote: > 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
I haven't been able to reproduce this so far no matter what I try. Are you building in a clean environment (e.g. sbuild)? > 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 If there's a real problem with the classifier, the best fix would be to patch pyproject.toml rather than removing it. But https://validate-pyproject.readthedocs.io/en/latest/api/validate_pyproject.formats.html refers to https://pypi.org/classifiers/, and "License :: OSI Approved :: CMU License (MIT-CMU)" is listed there, so I don't see what the problem would be ... it feels more like a bug in your installed setuptools version. -- Colin Watson (he/him) [cjwat...@debian.org]