-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 918 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
38
39
40
41
42
PACKAGE = strudel.ghutils
.PHONY: test
test:
python -m unittest test
.PHONY: build
build:
$(MAKE) clean
$(MAKE) test
python setup.py sdist bdist_wheel
.PHONY: publish
publish:
test $$(git config user.name) || git config user.name "semantic-release (via TravisCI)"
test $$(git config user.email) || git config user.email "semantic-release@travis"
semantic-release publish
# old way: create ~/.pypirc, then
# $(MAKE) build
# twine upload dist/* # handled by semantic-release in this package
.PHONY: clean
clean:
rm -rf $(PACKAGE).egg-info dist build docs/build
find -name "*.pyo" -delete
find -name "*.pyc" -delete
find -name __pycache__ -delete
.PHONY: html
html:
sphinx-build -M html "docs" "docs/build"
.PHONY: install
install:
pip install -r requirements.txt
.PHONY: install_dev
install_dev:
$(MAKE) install
pip install sphinx sphinx-autobuild
pip install python-semantic-release==3.11.2