From d4e12f47503a6406c30ec0673c6e981c61bfa796 Mon Sep 17 00:00:00 2001 From: z3z1ma Date: Thu, 30 Mar 2023 02:47:24 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20bump=20version,=20change=20strea?= =?UTF-8?q?mlit=20demo=20link=20to=20v2=20app,=20remove=20ttl=20on=20compi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .streamlit/config.toml | 1 + README.md | 4 ++-- poetry.lock | 21 ++++++++++++--------- pyproject.toml | 6 +++--- src/dbt_osmosis/app_v2.py | 23 ----------------------- 5 files changed, 18 insertions(+), 37 deletions(-) diff --git a/.streamlit/config.toml b/.streamlit/config.toml index f858fc8..0093b9a 100644 --- a/.streamlit/config.toml +++ b/.streamlit/config.toml @@ -1,2 +1,3 @@ [runner] magicEnabled = false +fileWatcherType = "none" diff --git a/README.md b/README.md index d33ff67..1dd2c71 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![Downloads](https://pepy.tech/badge/dbt-osmosis) ![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-green.svg) ![black](https://img.shields.io/badge/code%20style-black-000000.svg) -[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://z3z1ma-dbt-osmosis-srcdbt-osmosisapp-4y67qs.streamlitapp.com/) +[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://z3z1ma-dbt-osmosis-srcdbt-osmosisapp-v2-i0ico9.streamlit.app/) [![Scc Count Badge](https://sloc.xyz/github/z3z1ma/dbt-osmosis/)](https://github.com/z3z1ma/dbt-osmosis/) @@ -84,7 +84,7 @@ I also expect there is some untapped value in the workbench that is only pending Demo the workbench 👇 -[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://z3z1ma-dbt-osmosis-srcdbt-osmosisapp-4y67qs.streamlitapp.com/) +[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://z3z1ma-dbt-osmosis-srcdbt-osmosisapp-v2-i0ico9.streamlit.app/) ```sh diff --git a/poetry.lock b/poetry.lock index d2a49fc..f56e706 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3073,18 +3073,18 @@ docs = ["ipykernel", "jupyter-client", "matplotlib", "nbconvert", "nbformat", "n [[package]] name = "streamlit" -version = "1.12.0" +version = "1.20.0" description = "The fastest way to build data apps in Python" category = "main" optional = true -python-versions = ">=3.7" +python-versions = ">=3.7, !=3.9.7" files = [ - {file = "streamlit-1.12.0-py2.py3-none-any.whl", hash = "sha256:19f58ae723afaedbc85891c3a159e9576343609036713ecbb73b219a47dfe48d"}, - {file = "streamlit-1.12.0.tar.gz", hash = "sha256:1bbb406d4eee9acb055e72627212e9f04eea8ef0332f8dfeb6745bdf256c168b"}, + {file = "streamlit-1.20.0-py2.py3-none-any.whl", hash = "sha256:41a544b8dc618ee65726da3ac76149c5b2bf3da7bde6d50625c4f7ec95e6c9e8"}, + {file = "streamlit-1.20.0.tar.gz", hash = "sha256:f6e257e033a2532ce9b37c425717a4e885fa4d0e339fa5dcdbbda8d75ec191e9"}, ] [package.dependencies] -altair = ">=3.2.0" +altair = ">=3.2.0,<5" blinker = ">=1.0.0" cachetools = ">=4.0" click = ">=7.0" @@ -3092,7 +3092,7 @@ gitpython = "!=3.1.19" importlib-metadata = ">=1.4" numpy = "*" packaging = ">=14.1" -pandas = ">=0.21.0" +pandas = ">=0.25,<2" pillow = ">=6.2.0" protobuf = ">=3.12,<4" pyarrow = ">=4.0" @@ -3103,12 +3103,15 @@ requests = ">=2.4" rich = ">=10.11.0" semver = "*" toml = "*" -tornado = ">=5.0" +tornado = ">=6.0.3" typing-extensions = ">=3.10.0.0" tzlocal = ">=1.1" validators = ">=0.2" watchdog = {version = "*", markers = "platform_system != \"Darwin\""} +[package.extras] +snowflake = ["snowflake-snowpark-python"] + [[package]] name = "streamlit-ace" version = "0.1.1" @@ -3663,5 +3666,5 @@ workbench = ["streamlit", "streamlit-ace", "ydata-profiling", "feedparser", "str [metadata] lock-version = "2.0" -python-versions = ">=3.8,<3.11" -content-hash = "8d94f74425ff8920a87a37af9ec7206ab6eb40220cfbb8e62ae365a218c341cd" +python-versions = ">=3.8,<3.9.7 || >3.9.7,<3.11" +content-hash = "60d9f37d40fcd4a2717d81ea38f804106e65654b1b877ffd5759f02b1874902e" diff --git a/pyproject.toml b/pyproject.toml index ac4fd2d..3a8987e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt-osmosis" -version = "0.11.12" +version = "0.11.13" description = "A dbt server and suite of optional developer tools to make developing with dbt delightful." authors = ["z3z1ma "] license = "Apache 2.0" @@ -21,7 +21,7 @@ documentation = "https://github.com/z3z1ma/dbt-osmosis" repository = "https://github.com/z3z1ma/dbt-osmosis" [tool.poetry.dependencies] -python = ">=3.8,<3.11" +python = ">=3.8,<3.9.7 || >3.9.7,<3.11" click = ">7" dbt-core = ">=1" "ruamel.yaml" = ">=0.17" @@ -30,7 +30,7 @@ pydantic = "<2" GitPython = ">3,<4" orjson = ">3,<4" # Streamlit Workbench Dependencies -streamlit = { version = ">=1.0.0", optional = true } +streamlit = { version = "1.20.0", optional = true } streamlit-ace = { version = ">=0.1.0", optional = true } ydata-profiling = { version = ">=3.6.0", optional = true } feedparser = { version = "^6.0.10", optional = true } diff --git a/src/dbt_osmosis/app_v2.py b/src/dbt_osmosis/app_v2.py index a84473e..23ba55a 100644 --- a/src/dbt_osmosis/app_v2.py +++ b/src/dbt_osmosis/app_v2.py @@ -2,7 +2,6 @@ import decimal import os import sys -import time from collections import OrderedDict from datetime import datetime, date from textwrap import dedent @@ -195,28 +194,6 @@ def sidebar(ctx: DbtProject) -> None: ) -def ttl_cache(wait): - """Debounce a function call.""" - - def decorator(func): - last_called = time.time() - cached_result = None - - def cached(*args, **kwargs): - nonlocal last_called, cached_result - elapsed = time.time() - last_called - if elapsed < wait and cached_result is not None: - return cached_result - cached_result = func(*args, **kwargs) - last_called = time.time() - return cached_result - - return cached - - return decorator - - -@ttl_cache(3.0) def compile(ctx: DbtProject, sql: str) -> str: """Compile SQL using dbt context.""" try: