Skip to content

Commit

Permalink
Move main.py into package
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiefl committed Jul 26, 2024
1 parent f976881 commit 4bc962d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/publish_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://
If test PyPi is timing out, you can instead consider testing the installation with

```bash
pip install dist/pooltool-billiards-${RELEASE_VERSION}.tar.gz --force-reinstall --extra-index-url https://archive.panda3d.org/
pip install dist/pooltool_billiards-${RELEASE_VERSION}.tar.gz --force-reinstall --extra-index-url https://archive.panda3d.org/
```

- Test it out. Make sure `which run-pooltool` leads to the asdf environment: `/Users/evan/anaconda3/envs/asdf/bin/run_pooltool`. Then see if the interactive interface can be loaded: `run-pooltool`. Additionally, check the path of `cd ~; python -c "import pooltool; print(pooltool.__file__)"; cd -`. It should be in site-packages of asdf environment.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exclude = [
]

[tool.poetry.scripts]
run-pooltool = "main:run"
run-pooltool = "pooltool.main:run"

[[tool.poetry.source]]
name = "pypi"
Expand Down

0 comments on commit 4bc962d

Please sign in to comment.