Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package_name = "ydata-profiling"

[project]
name = "ydata-profiling"
requires-python = ">=3.7,<3.13"
requires-python = ">=3.9,<3.13"
authors = [
{name = "YData Labs Inc", email = "[email protected]"}
]
Expand Down
7 changes: 2 additions & 5 deletions src/ydata_profiling/profile_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
from typing import Any, Optional, Union

from ydata_profiling.utils.backend import is_pyspark_installed

with warnings.catch_warnings():
warnings.simplefilter("ignore")
import pkg_resources
from importlib.metadata import version

if not is_pyspark_installed():
from typing import TypeVar
Expand Down Expand Up @@ -359,7 +356,7 @@ def to_file(self, output_file: Union[str, Path], silent: bool = True) -> None:
"""
with warnings.catch_warnings():
warnings.simplefilter("ignore")
pillow_version = pkg_resources.get_distribution("Pillow").version
pillow_version = version("Pillow")
version_tuple = tuple(map(int, pillow_version.split(".")))
if version_tuple < (9, 5, 0):
warnings.warn(
Expand Down
9 changes: 1 addition & 8 deletions src/ydata_profiling/utils/versions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
try:
from importlib.metadata import version
except ImportError:
import pkg_resources

def version(pkg: str) -> str: # type: ignore
return pkg_resources.get_distribution(pkg).version

from importlib.metadata import version

def pandas_version() -> list:
return list(map(int, version("pandas").split(".")))
Expand Down