Repository navigation
Closed
Labels
bugSomething isn't working
Description
Expected Behaviour
Build succeeds
Current Behaviour
Build fails.
Code snippet
python -m pip install . -vvPossible 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)Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
heitorlessa commentedon Oct 24, 2022
Hey @BastianZim good see you around again - let us investigate tomorrow and come back to you.
I wonder whether having poetry installed might have contributed to not hitting this in E2E and release pipeline, since pip install against PyPi already has the artefact built and isolated VS dev install.
BastianZim commentedon Oct 24, 2022
Hey @heitorlessa long time no talk 😄
Hmm, yes, that could be. To be honest, this is probably something that should be restricted upstream in the long run but I just wanted to mention it here as short-term fixes are probably faster implemented here.
github-actions commentedon Oct 25, 2022
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Oct 31, 2022
This is now released under 2.1.0 version!
heitorlessa commentedon Oct 31, 2022
@BastianZim - let us know if this didn't fix it for some reason! and thank you again!
BastianZim commentedon Nov 2, 2022
@heitorlessa It worked like a charm, thank you! :)
heitorlessa commentedon Nov 2, 2022
Awesome!!!