-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
37 lines (25 loc) · 840 Bytes
/
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
ROOT_DIR := .
DOCS_DIR := $(ROOT_DIR)/docs
DOCS_BUILD_DIR := $(DOCS_DIR)/_build
default: install
.PHONY: test-without-lint test-pylint test-without-build
test: test-without-build
test-without-build: test-without-lint test-pylint
test-without-lint:
py.test tests
test-pylint:
py.test --pylint -m pylint sbds
clean: clean-build clean-pyc
clean-build:
rm -fr build/ dist/ *.egg-info .eggs/ .tox/ __pycache__/ .cache/ .coverage htmlcov src
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
install: clean
pip install -e .
pypi:
python -c "import pypandoc;pypandoc.convert(source='README.md', format='markdown_github', to='rst', outputfile='README.rst')"
python setup.py bdist_wheel --universal
python setup.py sdist bdist_wheel upload
rm README.rst