mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-19 20:11:14 -05:00
feat: migrate setup configuration to pyproject.toml and simplify setup.py
This commit is contained in:
23
pyproject.toml
Normal file
23
pyproject.toml
Normal 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"]
|
||||
23
setup.py
23
setup.py
@@ -1,22 +1,3 @@
|
||||
from setuptools import setup, find_packages
|
||||
from pathlib import Path
|
||||
from setuptools import 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",
|
||||
],
|
||||
)
|
||||
setup()
|
||||
Reference in New Issue
Block a user