File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11[tool .setuptools_scm ]
2- root = " .."
2+ write_to = " src/app/_version.py"
3+ search_parent_directories = " true"
34
45[tool .black ]
56line-length = 88
Original file line number Diff line number Diff line change 11import os
22
33from pydantic_settings import BaseSettings
4- from setuptools_scm import get_version
54from starlette .config import Config
65
6+ from .._version import version as __version__
7+
78from ..utils .cdktf_utils import create_cdktf_dir
89
910current_file_dir = os .path .dirname (os .path .realpath (__file__ ))
@@ -19,7 +20,7 @@ class AppSettings(BaseSettings):
1920 "APP_DESCRIPTION" , default = "OpenLabs backend API."
2021 )
2122 APP_VERSION : str | None = config (
22- "APP_VERSION" , default = get_version ()
23+ "APP_VERSION" , default = __version__
2324 ) # Latest tagged release
2425 LICENSE_NAME : str | None = config ("LICENSE" , default = "GPLv3" )
2526 LICENSE_URL : str | None = config (
You can’t perform that action at this time.
0 commit comments