17 lines
408 B
Makefile
17 lines
408 B
Makefile
build:
|
|
# Build Python package
|
|
test -d build/ && rm -rf build/ || true
|
|
test -d dist/ && rm -rf dist/ || true
|
|
test -d *.egg-info/ && rm -rf *.egg-info/ || true
|
|
# python setup.py sdist bdist_wheel
|
|
python -m build
|
|
|
|
install:
|
|
# Install package from built tarball
|
|
pip install dist/*.tar.gz
|
|
|
|
dist:
|
|
# Copy package to site downloads dir
|
|
mkdir -p docs/static/downloads
|
|
cp dist/*.tar.gz docs/static/downloads/
|