Preparing isolated env for PEP 517 build... Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting setuptools>=45 Using cached setuptools-62.3.4-py3-none-any.whl (1.2 MB) Installing collected packages: wheel, setuptools WARNING: The script wheel.exe is installed in '%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pyembree 0.2.11 requires setuptools<61.0.0,>=60.9.3, but you have setuptools 62.3.4 which is incompatible. Successfully installed setuptools-62.3.4 wheel-0.37.1 WARNING: You are using pip version 21.1.1; however, version 22.1.2 is available. You should consider upgrading via the '%USERPROFILE%\Code\myproj\.venv\Scripts\python.exe -m pip install --upgrade pip' command. %LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\config\pyprojecttoml.py:102: _ExperimentalProjectMetadata: Support for project metadata in `pyproject.toml` is still experimental and may be removed (or change) in future releases. warnings.warn(msg, _ExperimentalProjectMetadata) configuration error: `project` must not contain {'license-expression'} properties DESCRIPTION: Data structure for the **project** table inside ``pyproject.toml`` (as initially defined in :pep:`621`) GIVEN VALUE: { "name": "myproj", "version": "0.0.0", "description": "My project.", "authors": [ { "name": "Adam Hendry", "email": "adam.grant.hendry@gmail.com" } ], "license-expression": "Apache-2.0", "requires-python": ">=3.8,<3.9", "dependencies": [ "appdirs>=1.4.4", "h5py>=3.6.0", "hypothesis>=6.46.2", "ipython>=8.3.0", "matplotlib>=3.5.2", "merry>=0.3.0", "meshio>=5.3.4", "ninja>=1.10.2", "numpy>=1.22.3", "opencv-python>=4.5.5.64", "pydantic>=1.9.1", "pyembree>=0.2.11", "pykdtree>=1.3.4", "pymeshfix>=0.15.0", "pyqtgraph>=0.12.4", "PySide6>=6.3.0", "pyvista>=0.34.1", "pyvistaqt>=0.9.0", "QtPy>=2.1.0", "Rtree>=1.0.0", "trimesh>=3.11.2", "vtk>=9.1.0" ], "readme": "README.md", } OFFENDING RULE: 'additionalProperties' DEFINITION: { "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://packaging.python.org/en/latest/specifications/declaring-project-metadata/", "title": "Package metadata stored in the ``project`` table", "type": "object", "properties": { "name": { "type": "string", "description": "The name (primary identifier) of the project. MUST be statically defined.", "format": "pep508-identifier" }, "version": { "type": "string", "description": "The version of the project as supported by :pep:`440`.", "format": "pep440" }, "description": { "type": "string", "$$description": [ "The `summary description of the project", "`_" ] }, "readme": { "$$description": [ "`Full/detailed description of the project in the form of a README", "`_", "with meaning similar to the one defined in `core metadata's Description", "`_" ], "oneOf": [ { "type": "string", "$$description": [ "Relative path to a text file (UTF-8) containing the full description", "of the project. If the file path ends in case-insensitive ``.md`` or", "``.rst`` suffixes, then the content-type is respectively", "``text/markdown`` or ``text/x-rst``" ] }, { "type": "object", "allOf": [ { "anyOf": [ { "properties": { "file": { "type": "string", "$$description": [ "Relative path to a text file containing the full description", "of the project." ] } }, "required": [ "file" ] }, { "properties": { "text": { "type": "string", "description": "Full text describing the project." } }, "required": [ "text" ] } ] }, { "properties": { "content-type": { "type": "string", "$$description": [ "Content-type (:rfc:`1341`) of the full description", "(e.g. ``text/markdown``). The ``charset`` parameter is assumed", "UTF-8 when not present." ], "$comment": "TODO: add regex pattern or format?" } }, "required": [ "content-type" ] } ] } ] }, "requires-python": { "type": "string", "format": "pep508-versionspec", "$$description": [ "`The Python version requirements of the project", "`_." ] }, "license": { "description": "`Project license `_.", "oneOf": [ { "properties": { "file": { "type": "string", "$$description": [ "Relative path to the file (UTF-8) which contains the license for the", "project." ] } }, "required": [ "file" ] }, { "properties": { "text": { "type": "string", "$$description": [ "The license of the project whose meaning is that of the", "`License field from the core metadata", "`_." ] } }, "required": [ "text" ] } ] }, "authors": { "type": "array", "items": { "$id": "#/definitions/author", "title": "Author or Maintainer", "$comment": "https://www.python.org/dev/peps/pep-0621/#authors-maintainers", "type": "object", "properties": { "name": { "type": "string", "$$description": [ "MUST be a valid email name, i.e. whatever can be put as a name, before an", "email, in :rfc:`822`." ] }, "email": { "type": "string", "format": "idn-email", "description": "MUST be a valid email address" } } }, "$$description": [ "The people or organizations considered to be the 'authors' of the project.", "The exact meaning is open to interpretation (e.g. original or primary authors,", "current maintainers, or owners of the package)." ] }, "maintainers": { "type": "array", "items": { "$id": "#/definitions/author", "title": "Author or Maintainer", "$comment": "https://www.python.org/dev/peps/pep-0621/#authors-maintainers", "type": "object", "properties": { "name": { "type": "string", "$$description": [ "MUST be a valid email name, i.e. whatever can be put as a name, before an", "email, in :rfc:`822`." ] }, "email": { "type": "string", "format": "idn-email", "description": "MUST be a valid email address" } } }, "$$description": [ "The people or organizations considered to be the 'maintainers' of the project.", "Similarly to ``authors``, the exact meaning is open to interpretation." ] }, "keywords": { "type": "array", "items": { "type": "string" }, "description": "List of keywords to assist searching for the distribution in a larger catalog." }, "classifiers": { "type": "array", "items": { "type": "string", "format": "trove-classifier", "description": "`PyPI classifier `_." }, "$$description": [ "`Trove classifiers `_", "which apply to the project." ] }, "urls": { "type": "object", "description": "URLs associated with the project in the form ``label => value``.", "additionalProperties": false, "patternProperties": { "^.+$": { "type": "string", "format": "url" } } }, "scripts": { "$id": "#/definitions/entry-point-group", "title": "Entry-points", "type": "object", "$$description": [ "Entry-points are grouped together to indicate what sort of capabilities they", "provide.", "See the `packaging guides", "`_", "and `setuptools docs", "`_", "for more information." ], "propertyNames": { "format": "python-entrypoint-name" }, "additionalProperties": false, "patternProperties": { "^.+$": { "type": "string", "$$description": [ "Reference to a Python object. It is either in the form", "``importable.module``, or ``importable.module:object.attr``." ], "format": "python-entrypoint-reference", "$comment": "https://packaging.python.org/specifications/entry-points/" } } }, "gui-scripts": { "$id": "#/definitions/entry-point-group", "title": "Entry-points", "type": "object", "$$description": [ "Entry-points are grouped together to indicate what sort of capabilities they", "provide.", "See the `packaging guides", "`_", "and `setuptools docs", "`_", "for more information." ], "propertyNames": { "format": "python-entrypoint-name" }, "additionalProperties": false, "patternProperties": { "^.+$": { "type": "string", "$$description": [ "Reference to a Python object. It is either in the form", "``importable.module``, or ``importable.module:object.attr``." ], "format": "python-entrypoint-reference", "$comment": "https://packaging.python.org/specifications/entry-points/" } } }, "entry-points": { "$$description": [ "Instruct the installer to expose the given modules/functions via", "``entry-point`` discovery mechanism (useful for plugins).", "More information available in the `Python packaging guide", "`_." ], "propertyNames": { "format": "python-entrypoint-group" }, "additionalProperties": false, "patternProperties": { "^.+$": { "$id": "#/definitions/entry-point-group", "title": "Entry-points", "type": "object", "$$description": [ "Entry-points are grouped together to indicate what sort of capabilities they", "provide.", "See the `packaging guides", "`_", "and `setuptools docs", "`_", "for more information." ], "propertyNames": { "format": "python-entrypoint-name" }, "additionalProperties": false, "patternProperties": { "^.+$": { "type": "string", "$$description": [ "Reference to a Python object. It is either in the form", "``importable.module``, or ``importable.module:object.attr``." ], "format": "python-entrypoint-reference", "$comment": "https://packaging.python.org/specifications/entry-points/" } } } } }, "dependencies": { "type": "array", "description": "Project (mandatory) dependencies.", "items": { "$id": "#/definitions/dependency", "title": "Dependency", "type": "string", "description": "Project dependency specification according to PEP 508", "format": "pep508" } }, "optional-dependencies": { "type": "object", "description": "Optional dependency for the project", "propertyNames": { "format": "pep508-identifier" }, "additionalProperties": false, "patternProperties": { "^.+$": { "type": "array", "items": { "$id": "#/definitions/dependency", "title": "Dependency", "type": "string", "description": "Project dependency specification according to PEP 508", "format": "pep508" } } } }, "dynamic": { "type": "array", "$$description": [ "Specifies which fields are intentionally unspecified and expected to be", "dynamically provided by build tools" ], "items": { "enum": [ "version", "description", "readme", "requires-python", "license", "authors", "maintainers", "keywords", "classifiers", "urls", "scripts", "gui-scripts", "entry-points", "dependencies", "optional-dependencies" ] } } }, "required": [ "name" ], "additionalProperties": false, "if": { "not": { "required": [ "dynamic" ], "properties": { "dynamic": { "contains": { "const": "version" }, "$$description": [ "version is listed in ``dynamic``" ] } } }, "$$comment": [ "According to :pep:`621`:", " If the core metadata specification lists a field as \"Required\", then", " the metadata MUST specify the field statically or list it in dynamic", "In turn, `core metadata`_ defines:", " The required fields are: Metadata-Version, Name, Version.", " All the other fields are optional.", "Since ``Metadata-Version`` is defined by the build back-end, ``name`` and", "``version`` are the only mandatory information in ``pyproject.toml``.", ".. _core metadata: https://packaging.python.org/specifications/core-metadata/" ] }, "then": { "required": [ "version" ], "$$description": [ "version should be statically defined in the ``version`` field" ] }, "definitions": { "author": { "$id": "#/definitions/author", "title": "Author or Maintainer", "$comment": "https://www.python.org/dev/peps/pep-0621/#authors-maintainers", "type": "object", "properties": { "name": { "type": "string", "$$description": [ "MUST be a valid email name, i.e. whatever can be put as a name, before an", "email, in :rfc:`822`." ] }, "email": { "type": "string", "format": "idn-email", "description": "MUST be a valid email address" } } }, "entry-point-group": { "$id": "#/definitions/entry-point-group", "title": "Entry-points", "type": "object", "$$description": [ "Entry-points are grouped together to indicate what sort of capabilities they", "provide.", "See the `packaging guides", "`_", "and `setuptools docs", "`_", "for more information." ], "propertyNames": { "format": "python-entrypoint-name" }, "additionalProperties": false, "patternProperties": { "^.+$": { "type": "string", "$$description": [ "Reference to a Python object. It is either in the form", "``importable.module``, or ``importable.module:object.attr``." ], "format": "python-entrypoint-reference", "$comment": "https://packaging.python.org/specifications/entry-points/" } } }, "dependency": { "$id": "#/definitions/dependency", "title": "Dependency", "type": "string", "description": "Project dependency specification according to PEP 508", "format": "pep508" } } } Traceback (most recent call last): File "%APPDATA%\pdm\venv\lib\site-packages\pep517\in_process\_in_process.py", line 363, in main() File "%APPDATA%\pdm\venv\lib\site-packages\pep517\in_process\_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "%APPDATA%\pdm\venv\lib\site-packages\pep517\in_process\_in_process.py", line 297, in get_requires_for_build_sdist return hook(config_settings) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\build_meta.py", line 181, in get_requires_for_build_sdist return self._get_build_requires(config_settings, requirements=[]) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires self.run_setup() File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 65, in setup(**setup_kwargs) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\_distutils\core.py", line 122, in setup dist.parse_config_files() File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\dist.py", line 869, in parse_config_files pyprojecttoml.apply_configuration(self, filename, ignore_option_errors) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\config\pyprojecttoml.py", line 54, in apply_configuration config = read_configuration(filepath, True, ignore_option_errors, dist) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\config\pyprojecttoml.py", line 120, in read_configuration validate(subset, filepath) File "%LOCALAPPDATA%\Temp\pdm-build-env-9r5oqtew-shared\Lib\site-packages\setuptools\config\pyprojecttoml.py", line 43, in validate raise error from None ValueError: invalid pyproject.toml config: `project` Error occurs Traceback (most recent call last): File "%APPDATA%\pdm\venv\lib\site-packages\pdm\termui.py", line 200, in logging yield logger File "%APPDATA%\pdm\venv\lib\site-packages\pdm\cli\actions.py", line 502, in do_build loc = SdistBuilder(project.root, project.environment).build( File "%APPDATA%\pdm\venv\lib\site-packages\pdm\builders\sdist.py", line 17, in build requires = self._hook.get_requires_for_build_sdist(config_settings) File "%APPDATA%\pdm\venv\lib\site-packages\pep517\wrappers.py", line 278, in get_requires_for_build_sdist return self._call_hook('get_requires_for_build_sdist', { File "%APPDATA%\pdm\venv\lib\site-packages\pep517\wrappers.py", line 322, in _call_hook self._subprocess_runner( File "%APPDATA%\pdm\venv\lib\site-packages\pdm\builders\base.py", line 246, in subprocess_runner return log_subprocessor(cmd, cwd, extra_environ=env) File "%APPDATA%\pdm\venv\lib\site-packages\pdm\builders\base.py", line 87, in log_subprocessor raise BuildError( pdm.exceptions.BuildError: Call command ['%USERPROFILE%/Code/myproj/.venv/Scripts/python.exe', '%APPDATA%\\pdm\\venv\\lib\\site-packages\\pep517\\in_process\\_in_process.py', 'get_requires_for_build_sdist', '%LOCALAPPDATA%\\Temp\\tmpujj93prb'] return non-zero status(1).