Skip to content

Commit 57d10d3

Browse files
authored
build(python): Add target for installing package locally (#67)
1 parent 86d58ff commit 57d10d3

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

python/Makefile

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/README.md

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/python/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ test: check-dev
2020
build:
2121
python setup.py sdist bdist_wheel
2222

23+
install-package:
24+
pip install -e .
25+
2326
push-test:
2427
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
2528

templates/python/README.mustache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ or directly from Github:
3434
pip install git+https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}.git
3535
```
3636

37+
or install from source:
38+
39+
```sh
40+
make install-package
41+
```
42+
3743
Then import the package:
3844
```python
3945
import {{{packageName}}}

0 commit comments

Comments
 (0)