Move into module and define entry point script

This commit is contained in:
Adam Goldsmith 2022-03-29 14:48:03 -04:00
parent 0840a210be
commit 4d5268cac1
5 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/printers.yaml
/__pypackages__/
/.pdm.toml
__pycache__/

View File

View File

@ -5,7 +5,7 @@ from datetime import datetime, timedelta
from octorest import OctoRest
from ruamel.yaml import YAML
from google_calendar import CalendarService
from .google_calendar import CalendarService
def get_printer_job(calendar, printer):

View File

@ -1,5 +1,5 @@
[project]
name = "Octoprint Reservations"
name = "octoprint_reservations"
version = "0.1.0"
description = ""
authors = [{ name = "Adam Goldsmith", email = "adam@adamgoldsmith.name" }]
@ -12,6 +12,9 @@ dependencies = [
]
requires-python = ">=3.9"
[project.scripts]
octoreservations = "octoprint_reservations.main:main"
[tool.pdm]
[[tool.pdm.source]]
url = "https://pypi.org/simple"