From 8bdd57cada9bded65660962693a98494becf3db8 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 29 Apr 2012 21:43:21 +0200 Subject: [PATCH] Prepare 1.2-beta1 release. --- README.txt | 2 +- openslides/__init__.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index 208271b93..53efafdc6 100644 --- a/README.txt +++ b/README.txt @@ -1,7 +1,7 @@ English README file for OpenSlides ================================== -This is OpenSlides, version 1.2. +This is OpenSlides, version 1.2-beta1. What is OpenSlides? diff --git a/openslides/__init__.py b/openslides/__init__.py index ff470788e..6f239889f 100644 --- a/openslides/__init__.py +++ b/openslides/__init__.py @@ -5,7 +5,7 @@ :license: GNU GPL, see LICENSE for more details. """ -VERSION = (1, 2, 0, 'alpha', 0) +VERSION = (1, 2, 0, 'beta', 1) def get_version(version=None): """Derives a PEP386-compliant version number from VERSION.""" @@ -31,8 +31,7 @@ def get_version(version=None): sub = '.dev' elif version[3] != 'final': - mapping = {'alpha': 'a', 'beta': 'b', 'rc': 'c'} - sub = mapping[version[3]] + str(version[4]) + sub = "-" + version[3] + str(version[4]) return main + sub