Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
385f4a4
commit ee68fd5
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
PYTHON = python | ||
ARGS = | ||
|
||
# In not in a virtualenv, add --user options for install commands. | ||
INSTALL_OPTS = `$(PYTHON) -c "import sys; print('' if hasattr(sys, 'real_prefix') else '--user')"` | ||
|
||
install: ## Install this package as current user in "edit" mode. | ||
$(PYTHON) setup.py develop $(INSTALL_OPTS) | ||
|
||
test: ## Run tests. | ||
$(PYTHON) tests.py | ||
|
||
upload: ## Upload source tarball on PYPI. Requires a .pypirc file in the home dir. | ||
$(PYTHON) setup.py sdist upload | ||
|
||
clean: ## Remove all build files. | ||
rm -rf `find . -type d -name __pycache__ \ | ||
-o -type f -name \*.bak \ | ||
-o -type f -name \*.orig \ | ||
-o -type f -name \*.pyc \ | ||
-o -type f -name \*.pyd \ | ||
-o -type f -name \*.pyo \ | ||
-o -type f -name \*.rej \ | ||
-o -type f -name \*.so \ | ||
-o -type f -name \*.~ \ | ||
-o -type f -name \*\$testfn` | ||
rm -rf \ | ||
*.core \ | ||
*.egg-info \ | ||
*\$testfn* \ | ||
.coverage \ | ||
.tox \ | ||
build/ \ | ||
dist/ \ | ||
docs/_build/ \ | ||
htmlcov/ \ | ||
venv \ | ||
2013-11-18_1026* \ | ||
tmp/ | ||
|
||
help: ## Display callable targets. | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' |