-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 662 Bytes
/
Makefile
File metadata and controls
45 lines (32 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.ONESHELL:
SHELL := /bin/bash
SRC = $(wildcard nbs/*.ipynb)
PYTHON_VENV ?= venv
# nbdev commands
all: understatdb docs
understatdb: $(SRC)
nbdev_build_lib
touch understatdb
sync:
nbdev_update_lib
docs_serve: docs
cd docs && bundle exec jekyll serve
docs: $(SRC)
nbdev_build_docs
touch docs
test:
nbdev_test_nbs
release: pypi conda_release
nbdev_bump_version
conda_release:
fastrelease_conda_package
pypi: dist
twine upload --repository pypi dist/*
dist: clean
python setup.py sdist bdist_wheel
clean:
rm -rf dist
env:
python -m venv $(PYTHON_VENV)
$(PYTHON_VENV)/bin/pip install --upgrade pip
$(PYTHON_VENV)/bin/pip install -e .[dev]