Skip to content

Add a buildpack to set the start command from pyproject.toml using [project.scripts] #580

Description

@OscartGiles

Describe the Enhancement

The paketo-buildpacks/poetry-run sets the start command for a poetry application. It expects a single entry in pyproject.toml under scripts:

[tool.poetry.scripts]
some-script = "some.module:some_method"

pyproject.toml has support for this outside of poetry using [project.scripts] (see PEP621).

It would be great to support adding a start command for python packages with pyproject.toml files.

Possible Solution

A new buildpack could be added, very similar to paketo-buildpacks/poetry-run but for pyproject.toml containing [project.scripts].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good first issue to get started withhacktoberfestHacktoberfest eligible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions