All Projects → moneymeets → Python Poetry Buildpack

moneymeets / Python Poetry Buildpack

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

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to Python Poetry Buildpack

Up
Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.
Stars: ✭ 8,439 (+9489.77%)
Mutual labels:  heroku
Generator Django Rest
Yeoman generator for a Django REST/GraphQL API, an optional React SPA & lots more!
Stars: ✭ 77 (-12.5%)
Mutual labels:  heroku
Heroku Pinger
😴 Keep your free Heroku dynos awake
Stars: ✭ 84 (-4.55%)
Mutual labels:  heroku
Jonsnow
App Store/Google Play review watcher, deliver new reviews to slack channel
Stars: ✭ 65 (-26.14%)
Mutual labels:  heroku
Fun
Wall messages app with authentication built with Node JS, Backbone and MongoDb. Ready to be deployed to Heroku
Stars: ✭ 71 (-19.32%)
Mutual labels:  heroku
Lunik Torrent
Web torrent downloader and cloud storage.
Stars: ✭ 79 (-10.23%)
Mutual labels:  heroku
Ezpaas Cli
A miniature Heroku clone for easy in-house deployments, powered by Docker. A work in progress.
Stars: ✭ 56 (-36.36%)
Mutual labels:  heroku
Placeline Nextjs
HyperTrack Placeline web application sample using NextJS, Ant-Design, Styled-Components, and Heroku
Stars: ✭ 88 (+0%)
Mutual labels:  heroku
Django Rest React Pycon
🐍 Demo repo for Pycon X talk "Decoupling Django with Django REST (and a sprinkle of React)"
Stars: ✭ 72 (-18.18%)
Mutual labels:  heroku
Circleci Orbs
The source code for some of the orbs published by CircleCI
Stars: ✭ 82 (-6.82%)
Mutual labels:  heroku
E2e Ml App Pytorch
🚀 An end-to-end ML applications using PyTorch, W&B, FastAPI, Docker, Streamlit and Heroku → https://e2e-ml-app-pytorch.herokuapp.com/ (may take few minutes to spin up occasionally).
Stars: ✭ 68 (-22.73%)
Mutual labels:  heroku
Flask Heroku Sample
Flask Heroku Sample Application
Stars: ✭ 68 (-22.73%)
Mutual labels:  heroku
Heroku Buildpack Hugo
Heroku buildpack for Hugo, the static site generator - https://github.com/spf13/hugo
Stars: ✭ 79 (-10.23%)
Mutual labels:  heroku
Letsencrypt heroku
Automated letsencrypt setup for heroku
Stars: ✭ 58 (-34.09%)
Mutual labels:  heroku
Haikunatorpy
Generate Heroku-like random names to use in your python applications
Stars: ✭ 84 (-4.55%)
Mutual labels:  heroku
Heroku Logger
A dead simple logger, designed to be perfect for Heroku apps.
Stars: ✭ 57 (-35.23%)
Mutual labels:  heroku
Aspnetcoredemoapp
ASP.NET Core demo app with webpack bundle
Stars: ✭ 78 (-11.36%)
Mutual labels:  heroku
Carbon Api
Unofficial API for generating beautiful images of your source code using Carbon.
Stars: ✭ 89 (+1.14%)
Mutual labels:  heroku
Whatsapp Node Api
A Simple NodeJS API Wrapper for WhatsApp
Stars: ✭ 81 (-7.95%)
Mutual labels:  heroku
Deploying Flask To Heroku
Deploying a Flask App To Heroku Tutorial
Stars: ✭ 81 (-7.95%)
Mutual labels:  heroku

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

Configuration

Python

Python version can be forced by setting the PYTHON_RUNTIME_VERSION variable:

heroku config:set PYTHON_RUNTIME_VERSION=3.9.1

Poetry

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

Generally all variables starting with POETRY_ are passed on to Poetry by this buildpack; see the corresponding Poetry documentation section for possible uses.

Exporting of development dependencies (e.g. to run tests in CI pipelines) can be optionally enabled by setting POETRY_EXPORT_DEV_REQUIREMENTS to 1:

heroku config:set POETRY_EXPORT_DEV_REQUIREMENTS=1

runtime.txt

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

If DISABLE_POETRY_CREATE_RUNTIME_FILE is set, the required Python version can be specified in runtime.txt. Otherwise, if runtime.txt is present in the repository, the buildpack will prevent the app from being deployed in order to avoid possible ambiguities.

Contributing

To test your changes locally run the (TAP-compatible) test suite:

bash run_tests.sh
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].