added build scripts for deb package
This commit is contained in:
parent
0b4611b93e
commit
728e7ff4d0
3 changed files with 33 additions and 1 deletions
7
build.sh
Normal file
7
build.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
python3 setup.py sdist
|
||||
cd dist || exit
|
||||
tar -xzmf *.tar.gz
|
||||
cd complib-0.0.1 || exit
|
||||
debmake -b":python3"
|
||||
gbp buildpackage --git-sign-tags --git-keyid=97B61E4D515353C0A498D2AB22680B5AAC0C4FCE --git-ignore-new # git ignore while developing
|
25
init_build.sh
Executable file
25
init_build.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# DO NOT RUN UNLESS YOUR REALLY KNOW WHAT YOU ARE DOING
|
||||
|
||||
DEBEMAIL="joel.klimont@gmail.com"
|
||||
DEBFULLNAME="Joel Klimont"
|
||||
export DEBEMAIL DEBFULLNAME
|
||||
python3 setup.py sdist
|
||||
cd dist || exit
|
||||
tar -xzmf *.tar.gz
|
||||
cd complib-0.0.1 || exit
|
||||
git init
|
||||
git remote add origin https://github.com/F-WuTS/complib-DEB.git
|
||||
git fetch origin
|
||||
git checkout -b master --track origin/master
|
||||
gbp import-orig -u 0.0.1 --pristine-tar --sign-tags --no-interactive ../complib-0.0.1.tar.gz
|
||||
mv setup.py setup.py.old
|
||||
echo "#!/usr/bin/env python3" >> setup.py
|
||||
cat setup.py.old >> setup.py
|
||||
debmake -b":python3"
|
||||
mv setup.py.old setup.py
|
||||
git add debian/
|
||||
git commit -m "init"
|
||||
gbp buildpackage --git-pristine-tar --git-sign-tags --git-keyid=97B61E4D515353C0A498D2AB22680B5AAC0C4FCE
|
||||
git push --set-upstream origin master
|
2
setup.py
2
setup.py
|
@ -34,5 +34,5 @@ setuptools.setup(
|
|||
setup_requires=[
|
||||
"smbus",
|
||||
"requests"
|
||||
],
|
||||
]
|
||||
)
|
||||
|
|
Reference in a new issue