diff --git a/pyproject.toml b/pyproject.toml index b78b32d..f55492e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,3 +10,5 @@ dependencies = [ "playwright>=1.51.0", "questionary>=2.1.0", ] +[project.scripts] +uulm = "uulm_utils.main:cli" \ No newline at end of file diff --git a/main.py b/src/uulm_utils/main.py similarity index 98% rename from main.py rename to src/uulm_utils/main.py index 597196d..ec05842 100644 --- a/main.py +++ b/src/uulm_utils/main.py @@ -38,7 +38,7 @@ async def cli(ctx, username, password, headful): ctx.obj['PASSWORD'] = password or await questionary.password('Enter your kiz password:').ask_async() ctx.obj['HEADLESS'] = not headful -@cli.command(help='Interact with the Module Tree in Campusonline') +@cli.command(help='Interact with the module tree in Campusonline') @click.pass_context async def campusonline(ctx): async for page, browser, context in run_playwright(ctx.obj['HEADLESS']): diff --git a/uv.lock b/uv.lock index 2d96035..39bb68e 100644 --- a/uv.lock +++ b/uv.lock @@ -30,25 +30,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/92/c4/ae9e9d25522c6dc96ff167903880a0fe94d7bd31ed999198ee5017d977ed/asyncclick-8.1.8.0-py3-none-any.whl", hash = "sha256:be146a2d8075d4fe372ff4e877f23c8b5af269d16705c1948123b9415f6fd678", size = 99115 }, ] -[[package]] -name = "campus-search" -version = "0.1.0" -source = { virtual = "." } -dependencies = [ - { name = "asyncclick" }, - { name = "click" }, - { name = "playwright" }, - { name = "questionary" }, -] - -[package.metadata] -requires-dist = [ - { name = "asyncclick", specifier = ">=8.1.8" }, - { name = "click", specifier = ">=8.1.8" }, - { name = "playwright", specifier = ">=1.51.0" }, - { name = "questionary", specifier = ">=2.1.0" }, -] - [[package]] name = "click" version = "8.1.8" @@ -184,6 +165,25 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 }, ] +[[package]] +name = "uulm-utils" +version = "0.1.0" +source = { virtual = "." } +dependencies = [ + { name = "asyncclick" }, + { name = "click" }, + { name = "playwright" }, + { name = "questionary" }, +] + +[package.metadata] +requires-dist = [ + { name = "asyncclick", specifier = ">=8.1.8" }, + { name = "click", specifier = ">=8.1.8" }, + { name = "playwright", specifier = ">=1.51.0" }, + { name = "questionary", specifier = ">=2.1.0" }, +] + [[package]] name = "wcwidth" version = "0.2.13"