forked from splintered-reality/py_trees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
73 lines (60 loc) · 1.71 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#############################################################################################
# Build Documentation
#############################################################################################
NAME=`./setup.py --name`
VERSION=`./setup.py --version`
help:
@echo "Local Build"
@echo " build : build the python package"
@echo " tests : run all of the nosetests"
@echo " clean : clean build/dist directories"
@echo "Packages"
@echo " pypi : upload the package to PyPI"
@echo " source_deb: source packaging (for ppas)"
@echo " deb : build the deb"
@echo "Documentation"
@echo " docs : buidl sphinx documentation"
docs:
PY_TREES_DISABLE_COLORS=1 sphinx-build -E -b html doc doc/html
build:
python setup.py build
clean:
-rm -f MANIFEST
-rm -rf build dist
-rm -rf deb_dist
-rm -rf debian
-rm -rf ../*.build
-rm -rf *.tar.gz
-rm -rf *.egg-info
source_package:
python setup.py sdist
source_deb:
rm -rf dist deb_dist
python setup.py --command-packages=stdeb.command sdist_dsc
deb:
rm -rf dist deb_dist
python setup.py --command-packages=stdeb.command bdist_deb
# Pypi Packaging Tutorial: https://packaging.python.org/tutorials/packaging-projects/
#
# Use with a ~/.pypirc file:
#
# [distutils]
# index-servers =
# pypi
#
# [pypi]
# repository = https://upload.pypi.org/legacy/
# username:<username>
# password:<password>
#
# Note, you probably need to register the first time.
# You can also send it to testpypi first if you wish (see tutorial).
pypi:
python setup.py sdist bdist_wheel
twine upload dist/*
pypi_test:
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
tests:
python setup.py test
.PHONY: tests clean