Skip to content

Commit

Permalink
update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Sep 13, 2024
1 parent c7a5948 commit 27f90dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion caimira/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 0 additions & 2 deletions caimira/src/caimira/calculator/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
Documentation for the CAiMIRA package
"""

__version__ = "1.0.0"
2 changes: 1 addition & 1 deletion cern_caimira/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
15 changes: 3 additions & 12 deletions cern_caimira/src/cern_caimira/apps/calculator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
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
Expand All @@ -25,6 +24,7 @@
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
Expand All @@ -38,15 +38,6 @@
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")


Expand Down Expand Up @@ -310,7 +301,7 @@ def get(self):
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(),
)
Expand Down

0 comments on commit 27f90dd

Please sign in to comment.