-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
40 lines (28 loc) · 908 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
#MODULESDIR=/usr/lib/($PYTHONVERSION)/site-packages
.PHONY: apidocs install
apidocs:
epydoc -q -o doc/apidocs xmpp/
install:
# Add here commands to install the package into debian/python-xmpp
[ -d $(MODULESDIR)/xmpp ] || mkdir $(MODULESDIR)/xmpp
install -m 0644 xmpp/*py $(MODULESDIR)/xmpp
#release: bumpversion push sdist pypi-upload
release: push sdist pypi-upload
# ===============
# Utility targets
# ===============
bumpversion: install-releasetools check-bump-options
$(bumpversion) $(bump)
push:
git push && git push --tags
sdist:
python setup.py sdist
pypi-upload:
twine upload --skip-existing --verbose dist/*.tar.gz
install-releasetools: setup-virtualenv2
@$(pip) install --quiet --requirement requirements-release.txt --upgrade
check-bump-options:
@if test "$(bump)" = ""; then \
echo "ERROR: 'bump' not set, try 'make release bump={patch,minor,major}'"; \
exit 1; \
fi