Skip to content

Heroku buildpack that makes it possible to use Poetry with the official Python buildpack

Notifications You must be signed in to change notification settings

welcomehomey/python-poetry-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Python Poetry Buildpack

A Heroku Buildpack for Poetry users.

How to use

The Python Poetry Buildpack prepares the build to be processed by a Python buildpack such as heroku/python by generating requirements.txt and runtime.txt from poetry.lock.

To set up the use of several buildpacks from the Heroku CLI use buildpacks:add:

heroku buildpacks:clear
heroku buildpacks:add https://github.com/moneymeets/python-poetry-buildpack.git
heroku buildpacks:add heroku/python

Generation of the runtime.txt can be skipped by setting DISABLE_POETRY_CREATE_RUNTIME_FILE to 1:

heroku config:set DISABLE_POETRY_CREATE_RUNTIME_FILE=1

The Poetry version can be specified by setting POETRY_VERSION in Heroku config vars. Otherwise it will default to a hard coded version.

heroku config:set POETRY_VERSION=1.1.0

About

Heroku buildpack that makes it possible to use Poetry with the official Python buildpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 100.0%