Skip to content

Bug: poetry-core changed build behaviour  #2012

Closed
@sthulb

Description

@sthulb

Expected Behaviour

When we run poetry build a setup.py file should be generated

Current Behaviour

Because of a behaviour change in poetry-core (python-poetry/poetry-core#318), PT no longer generates a setup.py file and this breaks for downstream users.

Code snippet

N/A

Possible Solution

add:

[tool.poetry.build]
generate-setup-file = true

to the pyproject.toml

Steps to Reproduce

  1. poetry build
  2. inspect dist for setup.py

AWS Lambda Powertools for Python version

latest

AWS Lambda function runtime

3.6

Packaging format used

PyPi

Debugging logs

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternalMaintenance changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions