forked from postgrespro/mamonsu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 745 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
WORKDIR ?= $(CURDIR)
BUILDDIR = $(WORKDIR)/build/mamonsu-$(VERSION)
VERSION = $(shell python -c 'import mamonsu; print(mamonsu.__version__)')
all:
pip install --upgrade --editable .
publish: clean test
grep ^Version ./packaging/rpm/SPECS/mamonsu.spec | grep $(VERSION)
grep ^mamonsu ./packaging/debian/changelog | grep $(VERSION)
python setup.py register -r pypi
python setup.py sdist upload -r pypi
git push
git tag $(VERSION)
git push --tags
clean: python_clean
rm -rf build
rm -rf dist
rm -f rpm-tmp*
rm -rf mamonsu.egg-info
rm -rf *.deb *.rpm yum-root-*
python_clean:
rm -rf *.egg dist build .coverage
find . -name '__pycache__' -delete -print -o -name '*.pyc' -delete -print
include Makefile.pkg
include Makefile.tests