Skip to content

Commit

Permalink
Add __init__.py in attila module
Browse files Browse the repository at this point in the history
  • Loading branch information
arulrajnet committed Sep 8, 2024
1 parent d6c5068 commit 671dbc5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import logging
from pathlib import Path

logger = logging.getLogger("attila")

ATTILA_ROOT: Path = Path(__file__).resolve().parent


def get_path() -> str:
"""Returns installation path of the theme.
Used in ``pelicanconf.py`` to dynamiccaly fetch theme location on the system.
"""
return str(ATTILA_ROOT)
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ dependencies = [
[tool.setuptools]
include-package-data = true

[tool.setuptools.package-dir]
"attila" = "."

[tool.setuptools.packages.find]
include = ["static", "templates"]
exclude = ["tests", "dist", "output", "attila.egg-info"]

[tool.setuptools.package-data]
"*" = ["**"]

0 comments on commit 671dbc5

Please sign in to comment.