update versions

This commit is contained in:
Nicola Tarocco 2024-09-13 16:57:46 +02:00
parent c7a5948cd2
commit 27f90dd9c6
No known key found for this signature in database
GPG key ID: A08DEF00BA54E806
4 changed files with 5 additions and 16 deletions

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "caimira"
version = "2.0.0"
version = "4.17.0a1"
description = "CAiMIRA - CERN Airborne Model for Indoor Risk Assessment"
license = { text = "Apache-2.0" }
authors = [

View file

@ -4,5 +4,3 @@
Documentation for the CAiMIRA package
"""
__version__ = "1.0.0"

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "cern-caimira"
version = "2.0.0"
version = "4.17.0a1"
description = "CAiMIRA - CERN Airborne Model for Indoor Risk Assessment"
license = { text = "Apache-2.0" }
authors = [

View file

@ -10,9 +10,8 @@ import base64
import functools
import html
import json
import pandas as pd
import importlib.metadata
from pprint import pformat
from io import StringIO
import os
from pathlib import Path
import traceback
@ -25,6 +24,7 @@ import loky
from tornado.web import Application, RequestHandler, StaticFileHandler
from tornado.httpclient import AsyncHTTPClient, HTTPRequest
import tornado.log
from caimira import __version__ as calculator_version
from caimira.calculator.models.profiler import CaimiraProfiler, Profilers
from caimira.calculator.store.data_registry import DataRegistry
from caimira.calculator.store.data_service import DataService
@ -38,15 +38,6 @@ from .report.virus_report import VirusReportGenerator
from ..calculator.report.co2_report import CO2ReportGenerator
from .user import AuthenticatedUser, AnonymousUser
# The calculator version is based on a combination of the model version and the
# semantic version of the calculator itself. The version uses the terms
# "{MAJOR}.{MINOR}.{PATCH}" to describe the 3 distinct numbers constituting a version.
# Effectively, if the model increases its MAJOR version then so too should this
# calculator version. If the calculator needs to make breaking changes (e.g. change
# form attributes) then it can also increase its MAJOR version without needing to
# increase the overall CAiMIRA version (found at ``caimira.__version__``).
__version__ = "4.17.0"
LOG = logging.getLogger("Calculator")
@ -310,7 +301,7 @@ class CalculatorForm(BaseRequestHandler):
xsrf_form_html=self.xsrf_form_html(),
get_url = template.globals['get_url'],
get_calculator_url = template.globals["get_calculator_url"],
calculator_version=__version__,
calculator_version=calculator_version,
text_blocks=template_environment.globals["common_text"],
data_registry=data_registry.to_dict(),
)