Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OscartGiles opened this issue Feb 16, 2023 · 3 comments
Labels
good first issue A good first issue to get started with hacktoberfest Hacktoberfest eligible

Comments

@OscartGiles
Copy link

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].

@robdimsdale
Copy link
Member

I think this would be a great addition. I think it would belong in here: https://github.com/paketo-buildpacks/python-start - rather than a separate buildpack

@robdimsdale
Copy link
Member

If you're willing and able to contribute this that would be great! I'm happy to help provide direction/context so let us know if there's anything you need to get started.

@robdimsdale robdimsdale added the good first issue A good first issue to get started with label Mar 15, 2023
@codecakes
Copy link

Does

[tool.poetry.scripts]
start = "module:entry_app"

not work currently as given in packeto builder docs ?

@sophiewigmore sophiewigmore added the hacktoberfest Hacktoberfest eligible label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A good first issue to get started with hacktoberfest Hacktoberfest eligible
Projects
None yet
Development

No branches or pull requests

4 participants