Debian Codegraph @

Makefile

raw
1 clean: ## Clean intermediate build files
2 find . -name '__pycache__' | xargs rm -rf
3 find . -name '*.pyc' | xargs rm -rf
4 rm -rf dist/
5 .PHONY: clean
6
7 build: clean dev ## Build the package (source distribution)
8 python setup.py sdist
9 .PHONY: build
10
11 dev: clean ## Setup development environment
12 pip install .[dev]
13 .PHONY: dev
14
15 test: dev ## Run tests
16 .tools/ci.sh
17 .PHONY: test
18
19 release: build ## Release to PyPi
20 twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
21 .PHONY: release