Migrate from Poetry and pyenv to uv
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# `src/constants.py`
|
||||
|
||||
Application-level constants for Curator (build/runtime metadata).
|
||||
|
||||
This module derives the app version and debug flag. The version is loaded from
|
||||
`pyproject.toml` (preferred) with a generated `src/_version.py` fallback for
|
||||
frozen/PyInstaller builds. Debug mode is controlled via `.env` (`ENV_DEBUG`).
|
||||
|
||||
It is the single source of truth for app metadata used across the GUI and build
|
||||
tooling (`APP_NAME`, `APP_VERSION`/`VERSION`, `APP_TITLE`, `APP_VIEWPORT`).
|
||||
|
||||
Source: [`src/constants.py`](../../src/constants.py)
|
||||
|
||||
## Functions
|
||||
|
||||
### `get_version`
|
||||
|
||||
*function · line 26*
|
||||
|
||||
```python
|
||||
get_version() -> str
|
||||
```
|
||||
|
||||
Return the project version (pyproject → _version.py → unknown).
|
||||
|
||||
### `get_debug_mode`
|
||||
|
||||
*function · line 55*
|
||||
|
||||
```python
|
||||
get_debug_mode() -> bool
|
||||
```
|
||||
|
||||
Return True when ENV_DEBUG is set to a truthy value in the environment.
|
||||
Reference in New Issue
Block a user