feat: migrate setup configuration to pyproject.toml and simplify setup.py

This commit is contained in:
pacnpal
2025-01-28 21:41:00 -05:00
parent a24da9082d
commit b25fe5cb2b
2 changed files with 25 additions and 21 deletions

23
pyproject.toml Normal file
View File

@@ -0,0 +1,23 @@
[build-system]
requires = ["setuptools>=64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "simpleguardhome"
version = "0.1.0"
requires-python = ">=3.7"
dependencies = [
"fastapi",
"uvicorn",
"python-dotenv",
"httpx",
"pydantic",
"jinja2",
]
[tool.setuptools]
package-dir = {"" = "src"}
packages = {find = {where = ["src"]}}
[tool.setuptools.package-data]
simpleguardhome = ["templates/*", "favicon.ico"]

View File

@@ -1,22 +1,3 @@
from setuptools import setup, find_packages from setuptools import setup
from pathlib import Path
setup( setup()
name="simpleguardhome",
version="0.1.0",
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
package_data={
"simpleguardhome": ["templates/*", "favicon.ico"]
},
python_requires=">=3.7",
install_requires=[
"fastapi",
"uvicorn",
"python-dotenv",
"httpx",
"pydantic",
"jinja2",
],
)