Context Navigation


This bash script can be used to test new versions for a Django release. Provides a minimal sanity check on the tarball and wheel artifacts.

#! /bin/bash
set-xue
cd/tmp
RELEASE_VERSION="${RELEASE_VERSION}"
if[[-z"$RELEASE_VERSION"]];then
echo"Please set RELEASE_VERSION as env var"
exit1
fi
PKG_TAR=$(curl-Ls-o/dev/null-w'%{url_effective}'https://www.djangoproject.com/download/$RELEASE_VERSION/tarball/)
PKG_WHL=$(curl-Ls-o/dev/null-w'%{url_effective}'https://www.djangoproject.com/download/$RELEASE_VERSION/wheel/)
python3-mvenvdjango-pip
.django-pip/bin/activate
python-mpipinstall--no-cache-dir$PKG_TAR
django-adminstartprojecttest_one
cdtest_one
./manage.py--help# Ensure executable bits
pythonmanage.pymigrate
pythonmanage.pyrunserver
deactivate
cd..
rm-rftest_one
rm-rfdjango-pip
python3-mvenvdjango-pip-wheel
.django-pip-wheel/bin/activate
python-mpipinstall--no-cache-dir$PKG_WHL
django-adminstartprojecttest_one
cdtest_one
./manage.py--help# Ensure executable bits
pythonmanage.pymigrate
pythonmanage.pyrunserver
deactivate
cd..
rm-rftest_one
rm-rfdjango-pip-wheel
Last modified 7 months ago Last modified on Mar 18, 2025, 7:59:59 PM
Note: See TracWiki for help on using the wiki.
Back to Top