diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..6b518df --- /dev/null +++ b/build.sh @@ -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 \ No newline at end of file diff --git a/init_build.sh b/init_build.sh new file mode 100755 index 0000000..1cedad2 --- /dev/null +++ b/init_build.sh @@ -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 diff --git a/setup.py b/setup.py index 9c59e91..db3c254 100644 --- a/setup.py +++ b/setup.py @@ -34,5 +34,5 @@ setuptools.setup( setup_requires=[ "smbus", "requests" - ], + ] )