Improve pyproject.toml
This commit is contained in:
parent
2cf210bce6
commit
4f76ad144f
@ -59,7 +59,7 @@ def run_kodi_server():
|
|||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
logger.info("Shutting down server")
|
logger.info("Shutting down server")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--config", "-c", type=Path, help="Location of the config file")
|
parser.add_argument("--config", "-c", type=Path, help="Location of the config file")
|
||||||
parser.add_argument("--debug", action="store_true", default=False)
|
parser.add_argument("--debug", action="store_true", default=False)
|
||||||
@ -97,4 +97,7 @@ if __name__ == "__main__":
|
|||||||
engine.rootObjects()[0].setProperty("bridge", bridge)
|
engine.rootObjects()[0].setProperty("bridge", bridge)
|
||||||
exit_code = app.exec()
|
exit_code = app.exec()
|
||||||
del engine
|
del engine
|
||||||
sys.exit(exit_code)
|
sys.exit(exit_code)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
@ -4,9 +4,22 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"pyside6",
|
"pyside6",
|
||||||
"requests",
|
"requests",
|
||||||
"yt-dlp",
|
|
||||||
"cec"
|
"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]
|
[tool.setuptools.packages.find]
|
||||||
exclude = ["contrib"]
|
exclude = ["contrib"]
|
Loading…
Reference in New Issue
Block a user