Improve pyproject.toml
This commit is contained in:
parent
2cf210bce6
commit
4f76ad144f
@ -59,7 +59,7 @@ def run_kodi_server():
|
||||
httpd.serve_forever()
|
||||
logger.info("Shutting down server")
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--config", "-c", type=Path, help="Location of the config file")
|
||||
parser.add_argument("--debug", action="store_true", default=False)
|
||||
@ -98,3 +98,6 @@ if __name__ == "__main__":
|
||||
exit_code = app.exec()
|
||||
del engine
|
||||
sys.exit(exit_code)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -4,9 +4,22 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"pyside6",
|
||||
"requests",
|
||||
"yt-dlp",
|
||||
"cec"
|
||||
]
|
||||
requires-python = ">= 3.11"
|
||||
|
||||
[project.optional-dependencies]
|
||||
youtube = [
|
||||
"yt-dlp"
|
||||
]
|
||||
dev = [
|
||||
"mypy",
|
||||
"black",
|
||||
"ruff"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
microkodi = "microkodi.main:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
exclude = ["contrib"]
|
Loading…
Reference in New Issue
Block a user