36 lines
767 B
Python
36 lines
767 B
Python
from setuptools import setup
|
|
from pathlib import Path
|
|
|
|
# Read templates
|
|
templates = [str(p.relative_to(".")) for p in Path("templates").glob("*.j2")]
|
|
|
|
setup(
|
|
name="create-host",
|
|
version="0.1.0",
|
|
description="NixOS host configuration generator for homelab infrastructure",
|
|
py_modules=[
|
|
"create_host",
|
|
"models",
|
|
"validators",
|
|
"generators",
|
|
"manipulators",
|
|
"vault_helper",
|
|
],
|
|
include_package_data=True,
|
|
data_files=[
|
|
("templates", templates),
|
|
],
|
|
install_requires=[
|
|
"typer",
|
|
"jinja2",
|
|
"rich",
|
|
"hvac",
|
|
],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"create-host=create_host:app",
|
|
],
|
|
},
|
|
python_requires=">=3.9",
|
|
)
|