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
|
/printers.yaml
|
||||||
/__pypackages__/
|
/__pypackages__/
|
||||||
/.pdm.toml
|
/.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 octorest import OctoRest
|
||||||
from ruamel.yaml import YAML
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
from google_calendar import CalendarService
|
from .google_calendar import CalendarService
|
||||||
|
|
||||||
|
|
||||||
def get_printer_job(calendar, printer):
|
def get_printer_job(calendar, printer):
|
@ -1,5 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "Octoprint Reservations"
|
name = "octoprint_reservations"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = [{ name = "Adam Goldsmith", email = "adam@adamgoldsmith.name" }]
|
authors = [{ name = "Adam Goldsmith", email = "adam@adamgoldsmith.name" }]
|
||||||
@ -12,6 +12,9 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
octoreservations = "octoprint_reservations.main:main"
|
||||||
|
|
||||||
[tool.pdm]
|
[tool.pdm]
|
||||||
[[tool.pdm.source]]
|
[[tool.pdm.source]]
|
||||||
url = "https://pypi.org/simple"
|
url = "https://pypi.org/simple"
|
||||||
|
Loading…
Reference in New Issue
Block a user