Package building fixes (#887)
* Fix a couple of errors in make scripts * Fix snapshot versioning for launchpad
This commit is contained in:
committed by
GitHub
parent
cbb527c464
commit
3263ce5669
@@ -507,7 +507,7 @@ def makeDebianPackage(signKey=None, sourceBuild=False, distName="unstable", buil
|
|||||||
print("")
|
print("")
|
||||||
|
|
||||||
if buildName:
|
if buildName:
|
||||||
pkgVers = f"{pkgVers}~{buildName}"
|
pkgVers = f"{pkgVers}{buildName}"
|
||||||
|
|
||||||
# Set Up Folder
|
# Set Up Folder
|
||||||
# =============
|
# =============
|
||||||
@@ -705,9 +705,9 @@ def makeForLaunchpad(doSign=False, isFirst=False, isSnapshot=False):
|
|||||||
dputCmd = []
|
dputCmd = []
|
||||||
for distNum, codeName in distLoop:
|
for distNum, codeName in distLoop:
|
||||||
if isSnapshot:
|
if isSnapshot:
|
||||||
buildName = f"SNAPSHOT~{tStamp}~ubuntu{distNum}.0"
|
buildName = f"+SNAPSHOT~{tStamp}~ubuntu{distNum}.0"
|
||||||
else:
|
else:
|
||||||
buildName = f"ubuntu{distNum}.{bldNum}"
|
buildName = f"~ubuntu{distNum}.{bldNum}"
|
||||||
|
|
||||||
dCmd = makeDebianPackage(
|
dCmd = makeDebianPackage(
|
||||||
signKey=signKey,
|
signKey=signKey,
|
||||||
|
|||||||
+2
-1
@@ -6,4 +6,5 @@ if [ ! -f setup.py ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python3 setup.py clean
|
rm -rfv dist_upload
|
||||||
|
python3 setup.py build-clean
|
||||||
|
|||||||
+1
-1
@@ -25,5 +25,5 @@ echo " Done!"
|
|||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
echo ""
|
echo ""
|
||||||
echo " To upload packages to PyPi, run:"
|
echo " To upload packages to PyPi, run:"
|
||||||
echo " twine upload Source/dist/*"
|
echo " twine upload dist/*"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user