Skip to content

Commit

Permalink
Merge pull request #49 from lenianiva/bug/wheel
Browse files Browse the repository at this point in the history
fix: Force poetry to include executable in wheel
  • Loading branch information
lenianiva authored Dec 11, 2024
2 parents 605fbd0 + 1aacbfa commit 3099756
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ Install `poetry`. Then, run
```sh
poetry build
```
This builds a wheel of Pantograph which can then be installed.

This builds a wheel of Pantograph in `dist` which can then be installed. For
example, a downstream project could have this line in its `pyproject.toml`

```toml
pantograph = { file = "path/to/wheel/dist/pantograph-0.2.19-cp312-cp312-manylinux_2_40_x86_64.whl" }
```

To run the examples and experiments, setup a poetry shell:
```sh
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ authors = ["Leni Aniva <[email protected]>"]
license = "GPL-3"
readme = "README.md"

include = [
{ path = "pantograph/pantograph-repl", format = ["sdist", "wheel"] },
{ path = "pantograph/lean-toolchain", format = ["sdist", "wheel"] },
]

[tool.poetry.dependencies]
pexpect = "^4.9.0"
python = "^3.10"
Expand Down

0 comments on commit 3099756

Please sign in to comment.