File tree 2 files changed +10
-5
lines changed
src/simcore_service_api_server/core 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 223
223
" files"
224
224
],
225
225
"summary" : " List Files" ,
226
- "description" : " Lists all files stored in the system\n\n SEE get_files_page for a paginated version of this function" ,
226
+ "description" : " Lists all files stored in the system\n\n SEE ` get_files_page` for a paginated version of this function" ,
227
227
"operationId" : " list_files" ,
228
228
"responses" : {
229
229
"200" : {
1875
1875
" solvers"
1876
1876
],
1877
1877
"summary" : " List Jobs" ,
1878
- "description" : " List of jobs in a specific released solver (limited to 20 jobs)\n\n SEE get_jobs_page for paginated version of this function" ,
1878
+ "description" : " List of jobs in a specific released solver (limited to 20 jobs)\n\n SEE ` get_jobs_page` for paginated version of this function" ,
1879
1879
"operationId" : " list_jobs" ,
1880
1880
"parameters" : [
1881
1881
{
Original file line number Diff line number Diff line change 3
3
from fastapi import FastAPI
4
4
from fastapi_pagination import add_pagination
5
5
from models_library .basic_types import BootModeEnum
6
+ from packaging .version import Version
6
7
from servicelib .fastapi .profiler_middleware import ProfilerMiddleware
7
8
from servicelib .logging_utils import config_all_loggers
8
9
23
24
def _label_title_and_version (settings : ApplicationSettings , title : str , version : str ):
24
25
labels = []
25
26
if settings .API_SERVER_DEV_FEATURES_ENABLED :
26
- labels .append ("dev" )
27
+ # builds public version identifier with pre
28
+ v = Version (version )
29
+ # SEE https://packaging.python.org/en/latest/specifications/version-specifiers/#public-version-identifiers
30
+ # `[N!]N(.N)*[{a|b|rc}N][.postN][.devN]`
31
+ version = f"{ v .base_version } .post0.dev"
27
32
28
33
if settings .debug :
29
34
labels .append ("debug" )
30
35
31
- if local_version_label := ". " .join (labels ):
32
- # Appends local version identifier <public version identifier>[+<local version label>]
36
+ if local_version_label := "- " .join (labels ):
37
+ # Appends local version identifier ` <public version identifier>[+<local version label>]`
33
38
# SEE https://packaging.python.org/en/latest/specifications/version-specifiers/#local-version-identifiers
34
39
title += f" ({ local_version_label } )"
35
40
version += f"+{ local_version_label } "
You can’t perform that action at this time.
0 commit comments