- update to version 0.9.0 * fix applying patch files under Python 3 * add --sign-results to sdist_dsc and bdist_deb command * add --debian-version to CLI program options * support zip files in pypi-install * remove deprecated dh_desktop call - Reapplied patches OBS-URL: https://build.opensuse.org/request/show/788588 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stdeb?expand=0&rev=11
59 lines
1.7 KiB
Diff
59 lines
1.7 KiB
Diff
Index: stdeb-0.9.0/test.sh
|
|
===================================================================
|
|
--- stdeb-0.9.0.orig/test.sh
|
|
+++ stdeb-0.9.0/test.sh
|
|
@@ -9,7 +9,7 @@ rm -rf deb_dist
|
|
# setup paths
|
|
|
|
if [ "${PYEXE}" == "" ]; then
|
|
- PYEXE=`which python`;
|
|
+ PYEXE=`which python3`;
|
|
fi
|
|
|
|
echo "using Python at ${PYEXE}"
|
|
@@ -39,10 +39,10 @@ ${PYPI_INSTALL} --help > /dev/null
|
|
# applying any patches here so this should be pretty small.
|
|
MAX_DEB_SPECIFIC_SIZE=5000
|
|
|
|
-for i in `seq 1 3`; do
|
|
+for i in `seq 1`; do
|
|
if [ $i -eq "1" ]; then
|
|
-SOURCE_PACKAGE=requests
|
|
-SOURCE_RELEASE=2.6.0
|
|
+SOURCE_PACKAGE=tablib
|
|
+SOURCE_RELEASE=0.13.0
|
|
SOURCE_TARBALL_DIR=${SOURCE_PACKAGE}-${SOURCE_RELEASE}
|
|
SOURCE_TARBALL=${SOURCE_TARBALL_DIR}.tar.gz
|
|
DEBSOURCE=${SOURCE_TARBALL_DIR}
|
|
@@ -67,7 +67,7 @@ export DEB_BUILD_OPTIONS=nocheck # psyco
|
|
|
|
# get a file to work with
|
|
# ==============================================================
|
|
-${PYPI_DOWNLOAD} ${SOURCE_PACKAGE} --release ${SOURCE_RELEASE}
|
|
+# Tarball provided from rpm SOURCES
|
|
|
|
# case 1: build from pre-existing source tarball with py2dsc
|
|
# ==============================================================
|
|
@@ -95,9 +95,8 @@ rm -rf deb_dist
|
|
# ==============================================================
|
|
tar xzf $SOURCE_TARBALL
|
|
cd $SOURCE_TARBALL_DIR
|
|
-which python
|
|
-python -c "import sys; print('sys.version',sys.version)"
|
|
-python setup.py --command-packages=stdeb.command sdist_dsc
|
|
+$PYEXE -c "import sys; print('sys.version',sys.version)"
|
|
+$PYEXE setup.py --command-packages=stdeb.command sdist_dsc
|
|
cd deb_dist/$DEBSOURCE
|
|
dpkg-buildpackage -rfakeroot -uc -us
|
|
cd ../..
|
|
@@ -139,8 +138,7 @@ fi
|
|
rm -rf deb_dist
|
|
|
|
|
|
-#cleanup original tarball
|
|
-rm -rf $SOURCE_TARBALL
|
|
+#keep original tarball for next invocation
|
|
|
|
done
|
|
|