You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$(error PYTHON must be set for local package targets (examples: venv: PYTHON=.venv/bin/python3.13 make install-local; global: PYTHON=python3.13 make install-local))
24
+
endif
25
+
endif
26
+
27
+
.PHONY: help py-env install build install-local uninstall-local clean dev-fmt all check fmt lint clippy mypy test security update-spec e2e coverage
From the repository root, build and install the same wheel artifact that will later be published and installed with `pip install gts`. `install-local` requires an explicit `PYTHON` environment variable so you choose the target interpreter:
57
+
58
+
```bash
59
+
PYTHON=.venv/bin/python make install-local
60
+
```
61
+
62
+
This creates the `.venv` virtual environment when needed, writes source and wheel distributions to `dist/`, and installs the wheel into the interpreter specified by `PYTHON`. Activate it to use the locally installed library and CLI:
63
+
49
64
```bash
50
-
# install in editable mode
51
-
pip install -e ./gts
65
+
source .venv/bin/activate
66
+
python -c "import gts; print(gts.__file__)"
67
+
gts --help
68
+
```
69
+
70
+
Use `make build` when you only need the distributable artifacts. Remove the locally installed package with `PYTHON=.venv/bin/python make uninstall-local`. For an editable installation while changing source files, use `make install`.
52
71
53
-
# install from PyPI, not supported yet
54
-
# pip install gts
72
+
### Published package
73
+
74
+
After `gts` is published to PyPI, install it with:
0 commit comments