Changes between Initial Version and Version 1 of ReleaseTestNewVersion


Ignore:
Timestamp:
Mar 18, 2025, 12:07:08 PM (4 weeks ago)
Author:
Natalia Bidart
Comment:

Initial version of test new version script (credits to Tim Graham).

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified ReleaseTestNewVersion

    v1 v1  
     1This bash script can be used to test new versions for a Django release. Provides a minimal sanity check on the tarball and wheel artifacts.
     2{{{#!bash
     3#! /bin/bash
     4
     5set -xue
     6
     7cd /tmp
     8
     9RELEASE_VERSION="${RELEASE_VERSION}"
     10if [[ -z "$RELEASE_VERSION" ]]; then
     11    echo "Please set RELEASE_VERSION as env var"
     12    exit 1
     13fi
     14
     15MAJOR_VERSION=`echo $RELEASE_VERSION| cut -c 1-3`
     16PKG_TAR="https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION.tar.gz"
     17PKG_WHL="https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION-py3-none-any.whl"
     18
     19python3 -m venv django-pip
     20. django-pip/bin/activate
     21python -m pip install $PKG_TAR
     22django-admin startproject test_one
     23cd test_one
     24./manage.py --help  # Ensure executable bits
     25python manage.py migrate
     26python manage.py runserver
     27
     28deactivate
     29cd ..
     30rm -rf test_one
     31rm -rf django-pip
     32
     33
     34python3 -m venv django-pip-wheel
     35. django-pip-wheel/bin/activate
     36python -m pip install $PKG_WHL
     37django-admin startproject test_one
     38cd test_one
     39./manage.py --help  # Ensure executable bits
     40python manage.py migrate
     41python manage.py runserver
     42
     43deactivate
     44cd ..
     45rm -rf test_one
     46rm -rf django-pip-wheel
     47}}}
Back to Top