Date: Mon, 10 Oct 2022 16:10:46 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266944] devel/py-black cannot configure, project.license is in invalid format OFFENDING RULE: 'oneOf' Message-ID: <bug-266944-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266944 Bug ID: 266944 Summary: devel/py-black cannot configure, project.license is in invalid format OFFENDING RULE: 'oneOf' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: alt2600@icloud.com Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org trying to update this, and it is throwing this error about the license being not in the right format. I tried reinstalling my py-setuptools, py-toml, and py-tomli packages just to make sure they somehow were out of date. amd64 13= .1p2 =3D=3D=3D> Cleaning for py39-black-22.10.0 =3D=3D=3D> License MIT accepted by the user =3D=3D=3D> py39-black-22.10.0 depends on file: /usr/local/sbin/pkg - found =3D=3D=3D> Fetching all distfiles required by py39-black-22.10.0 for buildi= ng =3D=3D=3D> Extracting for py39-black-22.10.0 =3D> SHA256 Checksum OK for black-22.10.0.tar.gz. =3D=3D=3D> Patching for py39-black-22.10.0 =3D=3D=3D> py39-black-22.10.0 depends on package: py39-setuptools_scm>=3D= 6.3.1 - found =3D=3D=3D> py39-black-22.10.0 depends on package: py39-setuptools>=3D63.1= .0 - found =3D=3D=3D> py39-black-22.10.0 depends on file: /usr/local/bin/python3.9 -= found =3D=3D=3D> Configuring for py39-black-22.10.0 configuration error: `project.license` must be valid exactly by one definit= ion (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] DESCRIPTION: `Project license <https://www.python.org/dev/peps/pep-0621/#license>`_. GIVEN VALUE: "MIT" OFFENDING RULE: 'oneOf' DEFINITION: { "oneOf": [ { "properties": { "file": { "type": "string", "$$description": [ "Relative path to the file (UTF-8) which contai= ns the license for the", "project." ] } }, "required": [ "file" ] }, { "properties": { "text": { "type": "string", "$$description": [ "The license of the project whose meaning is th= at of the", "`License field from the core metadata", =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 "<https://packaging.python.org/specifications/core-metadata/#license>`_." ] } }, "required": [ "text" ] } ] } Traceback (most recent call last): File "<string>", line 1, in <module> File "setup.py", line 4, in <module> setup( File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.p= y", line 151, in setup dist.parse_config_files() File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 86= 8, in parse_config_files pyprojecttoml.apply_configuration(self, filename, ignore_option_errors) File "/usr/local/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 58, in apply_configuration config =3D read_configuration(filepath, True, ignore_option_errors, dis= t) File "/usr/local/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 122, in read_configuration validate(subset, filepath) File "/usr/local/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 47, in validate raise error from None ValueError: invalid pyproject.toml config: `project.license` *** Error code 1 Stop. make: stopped in /usr/ports/devel/py-black --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266944-7788>