-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
43 lines (32 loc) · 936 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
43
.PHONY: docs
clean: clean-build clean-pyc clean-test
clean-build: check-package
rm -fr $(PACKAGE)/build/
rm -fr $(PACKAGE)/dist/
rm -fr $(PACKAGE)/.eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
# find . -name '*~' -exec rm -f {} +
clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
build: clean check-package
cd $(PACKAGE) && python setup.py sdist bdist_wheel
ls -l $(PACKAGE)/dist
twine check $(PACKAGE)/dist/*
upload:
twine upload --repository-url https://test.pypi.org/legacy/ $(PACKAGE)/dist/*
upload-production:
twine upload $(PACKAGE)/dist/*
check-package:
ifndef PACKAGE
$(error PACKAGE is undefined)
endif
docs:
sphinx-apidoc -o docs/source catanatron_core/catanatron
sphinx-build -b html docs/source/ docs/build/html