Bug: Build fails if `poetry-core>=1.1.0a6` is not specified
See original GitHub issueExpected Behaviour
Build succeeds
Current Behaviour
Build fails.
Code snippet
python -m pip install . -vv
Possible Solution
As described in https://github.com/python-poetry/poetry/issues/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: https://github.com/conda-forge/aws-lambda-powertools-feedstock/pull/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)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@heitorlessa It worked like a charm, thank you! 😃
Awesome!!!