Skip to content

Commit

Permalink
add commit hash to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Sep 6, 2018
1 parent f0544c7 commit e9adb86
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
29 changes: 16 additions & 13 deletions Makefile
@@ -1,4 +1,6 @@
CUR_DIR = $(shell pwd)
EPOCH = $(shell date +%s)
ITERATION = $(shell git rev-parse --short=6 HEAD)

all: rpm_centos7 deb_debian8 deb_xenial deb_bionic

Expand All @@ -18,7 +20,8 @@ rpm_centos7: images sdist
cysystemd:centos7 \
fpm --license "Apache 2" -d systemd-libs -d python -d python-enum34 \
--rpm-dist centos7 \
--epoch $(shell date +%s) \
--epoch $(EPOCH) \
--iteration $(ITERATION) \
-f -s python -t rpm /app

deb_debian8: images sdist
Expand All @@ -31,8 +34,8 @@ deb_debian8: images sdist
-d libsystemd0 \
-d python-enum34 \
-d python-minimal \
--iteration debian8 \
--epoch $(shell date +%s) \
--iteration debian8_$(ITERATION) \
--epoch $(EPOCH) \
--python-install-lib /usr/lib/python2.7/dist-packages/ \
-f -s python -t deb /app

Expand All @@ -44,8 +47,8 @@ deb_debian8: images sdist
-d libsystemd0 \
-d libpython3.4 \
-d 'python3-minimal (>=3.4)' \
--iteration debian8 \
--epoch $(shell date +%s) \
--iteration debian8_$(ITERATION) \
--epoch $(EPOCH) \
--python-bin python3 --python-package-name-prefix python3 \
--python-install-lib /usr/lib/python3.4/dist-packages/ \
-f -s python -t deb /app
Expand All @@ -61,8 +64,8 @@ deb_xenial: images sdist
-d python-enum34 \
-d libpython2.7 \
--python-install-lib /usr/lib/python2.7/dist-packages/ \
--iteration xenial \
--epoch $(shell date +%s) \
--iteration xenial_$(ITERATION) \
--epoch $(EPOCH) \
-f -s python -t deb /app

docker run -i --rm \
Expand All @@ -75,8 +78,8 @@ deb_xenial: images sdist
-d libpython3.4 \
--python-install-lib /usr/lib/python3.4/dist-packages/ \
--python-bin python3 --python-package-name-prefix python3 \
--iteration xenial \
--epoch $(shell date +%s) \
--iteration xenial_$(ITERATION) \
--epoch $(EPOCH) \
-f -s python -t deb /app

deb_bionic: images sdist
Expand All @@ -90,8 +93,8 @@ deb_bionic: images sdist
-d python-minimal \
-d python-enum34 \
--python-install-lib /usr/lib/python2.7/dist-packages/ \
--iteration bionic \
--epoch $(shell date +%s) \
--iteration bionic_$(ITERATION) \
--epoch $(EPOCH) \
-f -s python -t deb /app

docker run -i --rm \
Expand All @@ -103,8 +106,8 @@ deb_bionic: images sdist
-d 'python3-minimal (>=3.6)' \
-d libpython3.6 \
--python-bin python3 --python-package-name-prefix python3 \
--iteration bionic \
--epoch $(shell date +%s) \
--iteration bionic_$(ITERATION) \
--epoch $(EPOCH) \
--python-install-lib /usr/lib/python3.6/dist-packages/ \
-f -s python -t deb /app

2 changes: 1 addition & 1 deletion cysystemd/__init__.py
@@ -1,5 +1,5 @@
package_info = "SystemD wrapper on Cython"
version_info = (0, 17, 0)
version_info = (0, 17, 1)


author_info = (
Expand Down

0 comments on commit e9adb86

Please sign in to comment.