Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor pympler.asizeof #7193

Merged
merged 11 commits into from
Aug 23, 2023
1 change: 0 additions & 1 deletion lib/min-constraints-gen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pillow==7.1.0
protobuf==3.20
pyarrow==6.0
pydeck==0.8
pympler==0.9
python-dateutil==2.7.3
requests==2.18
rich==10.14.0
Expand Down
1 change: 0 additions & 1 deletion lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
# doesn't tend to break the API on major version upgrades, so we don't put an
# upper bound on it.
"pyarrow>=6.0",
"pympler>=0.9, <2",
"python-dateutil>=2.7.3, <3",
"requests>=2.18, <3",
"rich>=10.14.0, <14",
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/runtime/caching/cache_resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from typing import Any, Callable, TypeVar, cast, overload

from cachetools import TTLCache
from pympler import asizeof
from typing_extensions import TypeAlias

import streamlit as st
Expand All @@ -49,6 +48,7 @@
from streamlit.runtime.metrics_util import gather_metrics
from streamlit.runtime.scriptrunner.script_run_context import get_script_run_ctx
from streamlit.runtime.stats import CacheStat, CacheStatsProvider
from streamlit.vendor.pympler.asizeof import asizeof

_LOGGER = get_logger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/runtime/legacy_caching/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
)

from cachetools import TTLCache
from pympler.asizeof import asizeof

import streamlit as st
from streamlit import config, file_util, util
Expand All @@ -58,6 +57,7 @@
)
from streamlit.runtime.metrics_util import gather_metrics
from streamlit.runtime.stats import CacheStat, CacheStatsProvider
from streamlit.vendor.pympler.asizeof import asizeof

_LOGGER = get_logger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/runtime/state/session_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
cast,
)

from pympler.asizeof import asizeof
from typing_extensions import Final, TypeAlias

import streamlit as st
Expand All @@ -45,6 +44,7 @@
)
from streamlit.runtime.stats import CacheStat, CacheStatsProvider
from streamlit.type_util import ValueFieldName, is_array_value_field_name
from streamlit.vendor.pympler.asizeof import asizeof

if TYPE_CHECKING:
from streamlit.runtime.session_manager import SessionManager
Expand Down