Skip to content

Commit 9488eac

Browse files
committed
[main]: move assets inside src
1 parent 6169630 commit 9488eac

8 files changed

Lines changed: 12 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ All notable changes to this repository will be documented in this file.
1313
- Restructure folder structure
1414
- Configure `--port` command to run on custom port
1515
- Added Technical FAQs
16+
17+
## [1.4.0] Mar 08, 2026
18+
19+
- Move assets inside src

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "rz-sample"
3-
version = "1.3.1"
3+
version = "1.4.0"
44
description = "A python boilerplate for fastapi and streamlit projects."
55
authors = ["recursivezero <recursivezero@outlook.com>"]
66
license = "MIT"
@@ -25,7 +25,7 @@ packages = [{ include = "sample", from = "src" }]
2525

2626
# Assets and extra files
2727
include = [
28-
{ path = "src/assets/images/logo.png", format = [
28+
{ path = "src/sample/assets/images/logo.png", format = [
2929
"sdist",
3030
"wheel",
3131
] },

src/sample/utils/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
def get_version() -> str:
1111
try:
12-
return version("sample") # must match pyproject.toml [project].name
12+
return version("rz-sample") # must match pyproject.toml [project].name
1313
except PackageNotFoundError:
1414
return "0.0.0"

src/sample/utils/constants.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
APP_TITLE = ":blue[Greeting Feature]"
99
DEFAULT_GREETING = "Hello"
1010
FAQ_TITLE = "FAQs"
11+
1112
logging.basicConfig(
1213
level=logging.INFO, # or DEBUG
1314
format="%(asctime)s - %(levelname)s - %(message)s",
1415
)
1516

1617
# --- Asset paths ---
17-
PROJECT_ROOT = Path(__file__).parents[2]
18+
PROJECT_ROOT = Path(__file__).parent.parent.resolve()
19+
20+
print(f"Project root: {PROJECT_ROOT}") # Debugging statement to verify path resolution
1821
ASSETS_DIR = PROJECT_ROOT / "assets" / "images"
1922
COMPANY_LOGO = ASSETS_DIR / "logo.png"
2023

0 commit comments

Comments
 (0)