-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
37 lines (24 loc) · 638 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
.PHONY: build install test docs clean clean-pyc clean-dist build-dist publish-test publish
build:
python setup.py build_ext --inplace
install:
pip install -e .
test:
pytest
docs:
cd docs && make html
clean-pyc:
find . -name '*.pyc' -exec rm --force {} +
find . -name '*.pyo' -exec rm --force {} +
find . -name '*~' -exec rm --force {} +
clean-dist:
rm -rf build/
rm -rf dist/
clean: clean-pyc clean-dist
build-dist: clean-dist
python setup.py sdist
# python setup.py bdist_wheel
publish-test: build-dist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
publish: build-dist
twine upload dist/*