File tree 3 files changed +6
-5
lines changed 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
from fastapi import FastAPI
14
14
from fastapi .middleware .cors import CORSMiddleware
15
15
16
+ __VERSION__ = "0.1.2"
17
+
16
18
17
19
def collect_routers (app : FastAPI ) -> None :
18
20
from .app .api import router_default
Original file line number Diff line number Diff line change 23
23
from pydantic import Field
24
24
from pydantic import root_validator
25
25
26
+ import fractal_server
27
+
26
28
27
29
def fail_getenv (key ):
28
30
value = getenv (key , None )
@@ -45,9 +47,6 @@ class OAuthClient(BaseModel):
45
47
REVOKE_TOKEN_ENDPOINT : Optional [str ]
46
48
47
49
48
- __VERSION__ = "0.1.2"
49
-
50
-
51
50
class DeploymentType (str , Enum ):
52
51
PRODUCTION = "production"
53
52
STAGING = "staging"
@@ -57,7 +56,7 @@ class DeploymentType(str, Enum):
57
56
58
57
class Settings (BaseSettings ):
59
58
PROJECT_NAME : str = "Fractal Server"
60
- PROJECT_VERSION : str = __VERSION__
59
+ PROJECT_VERSION : str = fractal_server . __VERSION__
61
60
DEPLOYMENT_TYPE : DeploymentType = DeploymentType (
62
61
fail_getenv ("DEPLOYMENT_TYPE" )
63
62
)
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ push = true
66
66
"pyproject.toml" = [
67
67
' version = "{version}"' ,
68
68
]
69
- "fractal_server/config .py" = [
69
+ "fractal_server/__init__ .py" = [
70
70
' __VERSION__ = "{version}"'
71
71
]
72
72
You can’t perform that action at this time.
0 commit comments