{"id":19540766,"url":"https://github.com/moneymeets/python-poetry-buildpack","last_synced_at":"2025-02-26T15:04:32.564Z","repository":{"id":43801110,"uuid":"232318672","full_name":"moneymeets/python-poetry-buildpack","owner":"moneymeets","description":"Heroku buildpack that makes it possible to use Poetry with the official Python buildpack","archived":true,"fork":false,"pushed_at":"2025-02-12T09:51:10.000Z","size":92,"stargazers_count":208,"open_issues_count":1,"forks_count":85,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-26T15:02:29.488Z","etag":null,"topics":["buildpack","heroku","poetry","python"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moneymeets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-07T12:20:26.000Z","updated_at":"2025-02-12T09:52:07.000Z","dependencies_parsed_at":"2023-11-20T10:41:01.272Z","dependency_job_id":"e5b67f07-7681-42ec-b434-966531f6ada8","html_url":"https://github.com/moneymeets/python-poetry-buildpack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneymeets%2Fpython-poetry-buildpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneymeets%2Fpython-poetry-buildpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneymeets%2Fpython-poetry-buildpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneymeets%2Fpython-poetry-buildpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moneymeets","download_url":"https://codeload.github.com/moneymeets/python-poetry-buildpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240876857,"owners_count":19871903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buildpack","heroku","poetry","python"],"created_at":"2024-11-11T03:06:39.599Z","updated_at":"2025-02-26T15:04:32.530Z","avatar_url":"https://github.com/moneymeets.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Poetry Buildpack\n\nA [Heroku](https://devcenter.heroku.com/) Buildpack for [Poetry](https://github.com/python-poetry/poetry) users.\n\n\u003e [!WARNING]\n\u003e The Heroku Python buildpack [now supports Poetry itself](https://github.com/heroku/heroku-buildpack-python/pull/1682), and so an additional Poetry\n\u003e buildpack is no longer required to deploy an app that uses Poetry to Heroku.\n\u003e\n\u003e As such, this buildpack is deprecated and you should no longer use it.\n\n## How to use\n\nThe 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`. With that said, your repo cannot have a `requirements.txt`, it will be exported from Poetry (for `runtime.txt` see below).\n\nTo set up the use of several buildpacks from the Heroku CLI use `buildpacks:add`:\n\n```\nheroku buildpacks:clear\nheroku buildpacks:add https://github.com/moneymeets/python-poetry-buildpack.git\nheroku buildpacks:add heroku/python\n```\n\n**Note:** this buildpack is _only_ for generating `requirements.txt` and `runtime.txt` for subsequent use by the official `heroku/python` buildpack. Do not depend on the installed Poetry's location, or its virtual environment remaining functional at app runtime. If you need Poetry for other purposes (for example CI checks), make your own separate Poetry installation accordingly.\n\n## Configuration\n\n### Python\n\nPython version can be forced by setting the `PYTHON_RUNTIME_VERSION` variable. Otherwise, it will be read from `poetry.lock`; for using Heroku default see below.\n\n```\nheroku config:set PYTHON_RUNTIME_VERSION=3.9.1\n```\n\n### `runtime.txt`\n\nGeneration of the `runtime.txt` can be skipped by setting `DISABLE_POETRY_CREATE_RUNTIME_FILE` to `1`:\n\n```\nheroku config:set DISABLE_POETRY_CREATE_RUNTIME_FILE=1\n```\n\nIf `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.\n\n### Poetry\n\nPoetry version can be specified by setting `POETRY_VERSION` in Heroku config vars. Otherwise, it will attempt to be inferred from `poetry.lock` or default to the latest version.\n\n```\nheroku config:set POETRY_VERSION=1.1.13\n```\n\nGenerally all variables starting with `POETRY_` are passed on to Poetry by this buildpack; see the corresponding [Poetry documentation](https://python-poetry.org/docs/configuration/#using-environment-variables) section for possible uses.\n\n### `requirements.txt`\n\nExporting of development dependencies (e.g. to run tests in CI pipelines) can be optionally enabled by setting `POETRY_EXPORT_DEV_REQUIREMENTS` to `1`:\n\n```\nheroku config:set POETRY_EXPORT_DEV_REQUIREMENTS=1\n```\n\nIf you want to override the default export parameters (`--without-hashes --with-credentials`), you can set the `POETRY_EXPORT_PARAMS` config var. For example, you can use `--with-hashes` for added security, if you don't need git dependencies. This option is compatible with `POETRY_EXPORT_DEV_REQUIREMENTS` config var documented above.\n\n```\nheroku config:set POETRY_EXPORT_PARAMS=--with-hashes\n```\n\n## Contributing\n\nTo test your changes locally run the (TAP-compatible) test suite:\n\n```\nbash run_tests.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneymeets%2Fpython-poetry-buildpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoneymeets%2Fpython-poetry-buildpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneymeets%2Fpython-poetry-buildpack/lists"}