added building pipeline for complib package
This commit is contained in:
parent
03daabaa37
commit
16c8f18c06
7 changed files with 91 additions and 7 deletions
|
@ -1,6 +1,15 @@
|
|||
##!/usr/bin/zsh
|
||||
#!/usr/bin/bash
|
||||
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export VERSION="1.0.0-2"
|
||||
|
||||
# set to 1 for debugging
|
||||
export EXTRACT_PKG="0"
|
||||
|
||||
if [[ -z $VERSION ]]; then
|
||||
echo "Warning, setting VERSION env var to default value v1.0.0-1"
|
||||
export VERSION="v1.0.0-0"
|
||||
fi
|
||||
echo "Building Package version: $VERSION"
|
||||
|
||||
# BE CAREFUL TO NOT BUILD IN A PYTHON VENV!
|
||||
|
||||
|
@ -20,10 +29,16 @@ fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefi
|
|||
-d "compsrv" \
|
||||
-v $VERSION -t deb setup.py
|
||||
|
||||
mkdir build_extract
|
||||
mv python3-complib_"$VERSION"_all.deb build_extract
|
||||
cd build_extract
|
||||
ar -xv python3-complib_"$VERSION"_all.deb
|
||||
if [ "$EXTRACT_PKG" == "1" ]; then
|
||||
echo "Exracting deb package"
|
||||
mkdir build_extract
|
||||
mv python3-complib_"$VERSION"_all.deb build_extract
|
||||
cd build_extract
|
||||
ar -xv python3-complib_"$VERSION"_all.deb
|
||||
fi
|
||||
|
||||
export DEB=python3-complib_"$VERSION"_all.deb
|
||||
echo "Created: $DEB"
|
||||
|
||||
# --deb-changelog changelog \
|
||||
# --deb-upstream-changelog changelog \
|
||||
|
|
Reference in a new issue