Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@
This repository contains Poetry's official installation script, installer source and
related hosting configuration.

The script is hosted on [Vercel](https://vercel.com/) and made available at
The script is hosted on [Cloudflare Pages](https://pages.cloudflare.com/) and made available at
https://install.python-poetry.org/.

### Hosting

The Cloudflare Pages project is connected to this repository and configured with:

- **Build command:** `mkdir -p dist && cp install-poetry.py _headers _redirects dist/`
- **Build output directory:** `dist` (set in `wrangler.toml`)

`_redirects` serves `install-poetry.py` at `/`, and `_headers` makes sure it is
served as `text/plain`.

## Usage

Poetry provides a custom installer that will install `poetry` isolated
Expand Down
5 changes: 5 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/
Content-Type: text/plain; charset=utf-8

/install-poetry.py
Content-Type: text/plain; charset=utf-8
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ /install-poetry.py 200
28 changes: 0 additions & 28 deletions vercel.json

This file was deleted.

5 changes: 5 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cloudflare Pages configuration.
# Build command (set in the Cloudflare dashboard): see README.md#hosting
name = "install-python-poetry-org"
compatibility_date = "2026-11-01"
pages_build_output_dir = "dist"