Skip to content

Commit

Permalink
remove deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Aug 30, 2024
1 parent 4761a9e commit 3037705
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions universql/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pathlib import Path

import click
import pkg_resources
import psutil
import requests
import uvicorn
Expand All @@ -26,14 +25,13 @@


@click.group()
@click.version_option(version=pkg_resources.get_distribution('universql').version)
@click.version_option(version="0.1")
def cli():
pass


LOCALHOSTCOMPUTING_COM = "localhostcomputing.com"


@cli.command(
epilog='[BETA] Check out docs at https://github.com/buremba/universql and let me know if you have any cool use-case on Github!')
@click.option('--account',
Expand Down Expand Up @@ -85,8 +83,8 @@ def snowflake(host, port, ssl_keyfile, ssl_certfile, account, catalog, compute,
context__params["catalog"] = Catalog.POLARIS.value if is_polaris else Catalog.SNOWFLAKE.value

if context__params["catalog"] == Catalog.POLARIS.value:
if compute == Compute.SNOWFLAKE.value:
logger.error("Polaris catalog doesn't support Snowflake compute. Refusing to start.")
if compute != Compute.LOCAL.value:
logger.error("Polaris catalog only supports local compute. Refusing to start.")
sys.exit(1)

adjective = "apparently" if auto_catalog_mode else ""
Expand Down

0 comments on commit 3037705

Please sign in to comment.