Move into module and define entry point script
This commit is contained in:
parent
0840a210be
commit
4d5268cac1
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/printers.yaml
|
||||
/__pypackages__/
|
||||
/.pdm.toml
|
||||
__pycache__/
|
||||
|
0
octoprint_reservations/__init__.py
Normal file
0
octoprint_reservations/__init__.py
Normal 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):
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user