-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
42 lines (33 loc) · 1.09 KB
/
Makefile
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
all: build
install:
poetry install --all-extras
build: install
poetry build
clean:
rm -rf $$(poetry env info --path)
rm -rf .nox
rm -rf .pytest_cache
rm -rf dist
find . -type d -name __pycache__ | xargs rm -r
publish: build
poetry publish -u __token__ -p ${PYPI_TOKEN} --skip-existing
lint: install
poetry run nox -s lint
format: install
poetry run nox -s format
test: install
poetry run nox -s test $(if $(PYTHON),--python=$(PYTHON),)
benchmark: install
python -m benchmark.benchmark_merge_chunks
help:
@echo '===================='
@echo 'build - build the library'
@echo 'clean - clean virtual env and build artifacts'
@echo 'publish - publish the library to Pypi'
@echo '-- LINTING --'
@echo 'format - run code formatters'
@echo 'lint - run linters'
@echo '-- TESTS --'
@echo 'test - run unit tests'
@echo 'test PYTHON=<python_version> - run unit tests with the specific python version'
@echo 'benchmark - run benchmarks'