Closed
Description
Expected Behaviour
Build succeeds
Current Behaviour
Build fails.
Code snippet
python -m pip install . -vv
Possible Solution
As described in python-poetry/poetry#4983 it can be fixed by adding poetry-core>=1.1.0a6
to the build requirements.
Additionally, it might make sense to switch to poetry-core
: https://github.com/python-poetry/poetry-core
Steps to Reproduce
Build package
PR: conda-forge/aws-lambda-powertools-feedstock#53
AWS Lambda Powertools for Python version
latest
Packaging format used
PyPi
Debugging logs
Processing $SRC_DIR
Added file://$SRC_DIR to build tracker '/tmp/pip-build-tracker-vc54bee8'
Created temporary directory: /tmp/pip-modern-metadata-o32viuml
Preparing metadata (pyproject.toml): started
Running command Preparing metadata (pyproject.toml)
Traceback (most recent call last):
File "/home/conda/feedstock_root/build_artifacts/aws-lambda-powertools_1666621594121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/home/conda/feedstock_root/build_artifacts/aws-lambda-powertools_1666621594121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/conda/feedstock_root/build_artifacts/aws-lambda-powertools_1666621594121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/home/conda/feedstock_root/build_artifacts/aws-lambda-powertools_1666621594121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
File "/home/conda/feedstock_root/build_artifacts/aws-lambda-powertools_1666621594121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/poetry/core/factory.py", line 43, in create_poetry
raise RuntimeError("The Poetry configuration is invalid:\n" + message)
RuntimeError: The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)