-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (40 loc) · 1.17 KB
/
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
43
44
45
46
47
# Format source code using black formatter
.PHONY: black
black:
@echo Formatting with black ...
@black blenderline
# Format source code using isort formatter
.PHONY: isort
isort:
@echo Formatting with isort ...
@isort blenderline
# Run both formatters
.PHONY: format
format: black isort
# Lint source code using flake8 linter
.PHONY: lint
lint:
@echo Linting with flake8 ...
@flake8 blenderline
# Build BlenderLine using setuptools
.PHONY: build
build:
@echo Building with setuptools ...
@python setup.py bdist_wheel sdist
# Publish BlenderLine to PyPI using twine (make sure to bump version beforehand)
.PHONY: publish
publish:
@echo Checking package with twine ...
@twine check dist/*
@echo Uploading package with twine ...
@twine upload dist/*
# Build BlenderLine documentation
.PHONY: docs
docs:
@echo Building documentation with sphinx ...
@sphinx-build -b html -a -E -j=auto docs/source docs/build/html
# Build BlenderLine documentation with live test-server for development
.PHONY: livedocs
livedocs:
@echo Starting development documentation server with sphinx-autobuild ...
@sphinx-autobuild -b html -a -E -j=auto --watch blenderline docs/source docs/build/html