Commit 8eb857e8 authored by Michal Horejsek's avatar Michal Horejsek

Release

parent 93ff92eb
......@@ -9,7 +9,7 @@ build
dist
*.deb
*.rpm
*.tar
*.tar*
haas.log
haas.pid
.PHONY: all prepare-dev test lint run-py2 run-py3 build clean
.PHONY: all prepare-dev test lint run-py2 run-py3 release build clean
SHELL=/bin/bash
# Normally it would be just twistd but it runs always with Python 2 in this moment.
TWISTD_CMD=-m haas_proxy
......@@ -42,6 +43,12 @@ run-py2:
run-py3:
sudo python3 ${TWISTD_CMD} ${TWISTD_RUN_ARGS}
release: build
rm -rf release
mkdir release
mv *deb *rpm *tar.gz release
cd release; for f in `ls`; do md5sum "$${f}" > "$${f}.checksum"; done
build:
# Debian packages
${FPM_CMD_PY2} -t deb setup.py
......@@ -52,7 +59,7 @@ build:
${FPM_CMD_PY3} -t rpm setup.py
# Just archive, no deps
${FPM_CMD} -t tar setup.py
python setup.py sdist --formats=gztar --dist-dir .
clean:
python setup.py clean
......
5a4dd101689dda349e82837a8c0435d9 haas-proxy-1.0.tar.gz
05fe0d6f19d4aca65ced8b88874c966d python-haas-proxy-1.0-1.noarch.rpm
4f499d820b1d6006b8fa7d4a80fd30eb python-haas-proxy_1.0_all.deb
d4996c01656a8405f58fb306763e13a1 python3-haas-proxy-1.0-1.noarch.rpm
177880863be816c7d89083e1e9dd79d1 python3-haas-proxy_1.0_all.deb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment