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

Add "packaging" as a requirement #712

Merged
Merged
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
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ install_requires =
numpy>=1.23.5
scipy>=1.9.3
pandas>=1.5.3
packaging>=23.1
python_requires = >=3.10

[options.extras_require]
Expand Down
14 changes: 3 additions & 11 deletions skrub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,7 @@
"""
from pathlib import Path as _Path

try:
from ._check_dependencies import check_dependencies

check_dependencies()
except ModuleNotFoundError:
import warnings

warnings.warn(
"packaging is not available, dependencies versions will not be checked."
)

from ._check_dependencies import check_dependencies
from ._datetime_encoder import DatetimeEncoder
from ._deduplicate import compute_ngram_distance, deduplicate
from ._fuzzy_join import fuzzy_join
Expand All @@ -24,6 +14,8 @@
from ._table_vectorizer import SuperVectorizer, TableVectorizer
from ._target_encoder import TargetEncoder

check_dependencies()

with open(_Path(__file__).parent / "VERSION.txt") as _fh:
__version__ = _fh.read().strip()

Expand Down
Loading