version 8.0.0

This commit is contained in:
Emmanuel Viennet 2021-07-25 12:19:01 +03:00
parent 8cf0ac0ea1
commit 2f78c80dfa
4 changed files with 39 additions and 26 deletions

View File

@ -1,14 +1,14 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "8.01a" SCOVERSION = "8.0.0"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"
SCONEWS = """ SCONEWS = """
<h4>Année 2021</h4> <h4>Année 2021</h4>
<ul> <ul>
<li>Réécriture du système de publication, basé sur <a href="https://flask.palletsprojects.com/en/2.0.x/">Flask</a>. <li>Passage à Python 3 et amélioration des performances</li>
<li>Version mobile (en test)</li> <li>Version mobile (en test)</li>
<li>Évaluations de type "deuxième session"</li> <li>Évaluations de type "deuxième session"</li>
<li>Gestion du genre neutre (pas d'affichage de la civilité)</li> <li>Gestion du genre neutre (pas d'affichage de la civilité)</li>

View File

@ -154,7 +154,7 @@ def about(context, REQUEST):
% (scu.get_scodoc_version()) % (scu.get_scodoc_version())
] ]
H.append( H.append(
'<p>Logiciel libre écrit en <a href="http://www.python.org">Python</a>.</p><p>Utilise <a href="http://www.reportlab.org/">ReportLab</a> pour générer les documents PDF, et <a href="http://sourceforge.net/projects/pyexcelerator">pyExcelerator</a> pour le traitement des documents Excel.</p>' '<p>Logiciel libre écrit en <a href="http://www.python.org">Python</a>.</p>'
) )
H.append("<h2>Dernières évolutions</h2>" + VERSION.SCONEWS) H.append("<h2>Dernières évolutions</h2>" + VERSION.SCONEWS)
H.append( H.append(

View File

@ -50,6 +50,6 @@ export PSQL
export POSTGRES_PORT=5432 export POSTGRES_PORT=5432
# --- # ---
echo "SCODOC_USER=$SCODOC_USER" #echo "SCODOC_USER=$SCODOC_USER"
echo "SCODOC_DIR=$SCODOC_DIR" #echo "SCODOC_DIR=$SCODOC_DIR"
echo "SCODOC_VAR_DIR=$SCODOC_VAR_DIR" #echo "SCODOC_VAR_DIR=$SCODOC_VAR_DIR"

View File

@ -1,17 +1,25 @@
#!/bin/bash #!/bin/bash
# Get version information # Get version information
# Use VERSION.py, last commit, diff, and last upstream commit date # Use VERSION.py, VERSION, last commit, diff, and last upstream commit date
# Le répertoire de ce script:
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source config.sh source "$SCRIPT_DIR/config.sh"
source utils.sh source "$SCRIPT_DIR/utils.sh"
# Source code version: # Source code version:
x=$(grep SCOVERSION ../app/scodoc/VERSION.py) || terminate "can't access VERSION.py" 1 x=$(grep SCOVERSION "$SCODOC_DIR/app/scodoc/VERSION.py") || terminate "can't access VERSION.py" 1
x=${x#*\"} x=${x#*\"}
src_version=${x%\"*} src_version=${x%\"*}
release_version=$(cat "$SCODOC_DIR/VERSION")
git status >& /dev/null
if [ $? = 0 ]
then
# development install: use git
# last commit # last commit
git_last_commit_hash=$(git log -1 --format=%h) git_last_commit_hash=$(git log -1 --format=%h)
git_last_commit_date=$(git log -1 --format=%ci) git_last_commit_date=$(git log -1 --format=%ci)
@ -27,13 +35,18 @@ then
else else
has_local_changes="no" has_local_changes="no"
fi fi
git_info=" ($git_up_commit_hash) $git_up_commit_date"
# Synthetic one-line version:
sco_version="$src_version ($git_up_commit_hash) $git_up_commit_date"
if [ "$has_local_changes" = "yes" ] if [ "$has_local_changes" = "yes" ]
then then
sco_version="$sco_version (modified)" git_info="$git_info (modified)"
fi fi
else
git_info=""
fi
# Synthetic one-line version:
sco_version="$release_version ($src_version)$git_info"
# #
if [ "$1" = "-s" ] if [ "$1" = "-s" ]