File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ ca86d61d3349ed2d94a6b164d4648cff9701199b5e32378c3f40fca0f517b128 extra/shutils/
1561563893c13c6264dd71842a3d2b3509dd8335484f825b43ed2f14f8161905d1b214 extra/shutils/pycodestyle.sh
1571570525e3f6004eb340b8a1361072a281f920206626f0c8f6d25e67c8cef7aee78a extra/shutils/pydiatra.sh
158158763240f767c3d025cefb70dede0598c134ea9a520690944ae16a734e80fd98a0 extra/shutils/pyflakes.sh
159- 71ace4be78edbd8a0d237a7cb342a9d14ebd6011845644c4b360de375d23f8d7 extra/shutils/pypi.sh
159+ d12fd5916e97b2034ba7fbfa8da48f590dc10807119b97a9d27347500c610c2d extra/shutils/pypi.sh
160160df768bcb9838dc6c46dab9b4a877056cb4742bd6cfaaf438c4a3712c5cc0d264 extra/shutils/recloak.sh
1611611972990a67caf2d0231eacf60e211acf545d9d0beeb3c145a49ba33d5d491b3f extra/shutils/strip.sh
1621621966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 extra/vulnserver/__init__.py
@@ -189,7 +189,7 @@ a033f92d136c707a25927c2383125ddb004d4283db62c004dcd67c3fc242bb1c lib/core/dump.
18918948797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
1901903574639db4942d16a2dc0a2f04bb7c0913c40c3862b54d34c44075a760e0c194 lib/core/revision.py
191191888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192- c19a9f3ab766c577222e535923b643b41ea1f5b3da61c07846fdd996701d1c7c lib/core/settings.py
192+ eb77c4418725e937c506951794ff86a3bc77f31b39521d9d2d122d4af76e485f lib/core/settings.py
193193cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
194194bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
195195d35650179816193164a5f177102f18379dfbe6bb6d40fbb67b78d907b41c8038 lib/core/target.py
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -euo pipefail
3+ IFS=$' \n\t '
24
35if [ ! -f ~ /.pypirc ]; then
46 echo " File ~/.pypirc is missing"
@@ -9,10 +11,11 @@ declare -x SCRIPTPATH="${0}"
911SETTINGS=" ${SCRIPTPATH%/* } /../../lib/core/settings.py"
1012VERSION=$( cat $SETTINGS | grep -E " ^VERSION =" | cut -d ' "' -f 2 | cut -d ' .' -f 1-3)
1113TYPE=pip
12- TMP_DIR=/tmp/pypi
13- mkdir $TMP_DIR
14- cd $TMP_DIR
15- cat > $TMP_DIR /setup.py << EOF
14+ TMP_DIR=" $( mktemp -d -t pypi.XXXXXXXX) "
15+ cleanup () { rm -rf -- " ${TMP_DIR:? } " ; }
16+ trap cleanup EXIT
17+ cd " $TMP_DIR "
18+ cat > " $TMP_DIR /setup.py" << EOF
1619#!/usr/bin/env python
1720
1821"""
@@ -176,8 +179,14 @@ Links
176179EOF
177180sed -i " s/^VERSION =.*/VERSION = \" $VERSION \" /g" sqlmap/lib/core/settings.py
178181sed -i " s/^TYPE =.*/TYPE = \" $TYPE \" /g" sqlmap/lib/core/settings.py
179- for file in $( find sqlmap -type f | grep -v -E " \.(git|yml)" ) ; do echo include $file >> MANIFEST.in; done
182+ : > MANIFEST.in
183+ while IFS= read -r -d ' ' file; do
184+ case " $file " in
185+ * .git|* .yml) continue ;;
186+ esac
187+ echo " include $file " >> MANIFEST.in
188+ done < <( find sqlmap -type f -print0)
180189python setup.py sdist bdist_wheel
181190twine check dist/*
182191twine upload --config-file=~ /.pypirc dist/*
183- rm -rf $TMP_DIR
192+ rm -rf " $TMP_DIR "
Original file line number Diff line number Diff line change 1919from thirdparty import six
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.10.1.55 "
22+ VERSION = "1.10.1.56 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments