-
Notifications
You must be signed in to change notification settings - Fork 50
deps: remove scikit-learn and sqlalchemy as required dependencies #1296
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7001f96
fc52332
8d0a8f4
a5bd03d
605aca0
7c487b4
3e81688
c66593a
c36fb8e
ab18fe0
ae17f8b
f0cbe9a
207a6e3
5a221ec
8f67cf7
ab352db
10e6e31
5eaeb5b
571ec91
c0b2df3
2aa51b5
3ec09cb
565cda5
2b61223
d41369a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -72,7 +72,9 @@ | |||
UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] | ||||
UNIT_TEST_DEPENDENCIES: List[str] = [] | ||||
UNIT_TEST_EXTRAS: List[str] = [] | ||||
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {"3.12": ["polars"]} | ||||
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = { | ||||
"3.12": ["polars", "scikit-learn"], | ||||
} | ||||
|
||||
# 3.10 is needed for Windows tests as it is the only version installed in the | ||||
# bigframes-windows container image. For more information, search | ||||
|
@@ -96,8 +98,13 @@ | |||
] | ||||
SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] | ||||
SYSTEM_TEST_DEPENDENCIES: List[str] = [] | ||||
SYSTEM_TEST_EXTRAS: List[str] = ["tests"] | ||||
SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} | ||||
SYSTEM_TEST_EXTRAS: List[str] = [] | ||||
SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = { | ||||
"3.9": ["tests"], | ||||
"3.10": ["tests"], | ||||
"3.12": ["tests", "scikit-learn"], | ||||
"3.13": ["tests"], | ||||
} | ||||
|
||||
LOGGING_NAME_ENV_VAR = "BIGFRAMES_PERFORMANCE_LOG_NAME" | ||||
|
||||
|
@@ -468,8 +475,7 @@ def cover(session): | |||
@nox.session(python=DEFAULT_PYTHON_VERSION) | ||||
def docs(session): | ||||
"""Build the docs for this library.""" | ||||
|
||||
session.install("-e", ".") | ||||
session.install("-e", ".[scikit-learn]") | ||||
session.install( | ||||
# We need to pin to specific versions of the `sphinxcontrib-*` packages | ||||
# which still support sphinx 4.x. | ||||
|
@@ -510,7 +516,7 @@ def docs(session): | |||
def docfx(session): | ||||
"""Build the docfx yaml files for this library.""" | ||||
|
||||
session.install("-e", ".") | ||||
session.install("-e", ".[scikit-learn]") | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm very concerned if we need to install
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if it's possible to remove this as we are calling publish_api_coverage.py, and one of the things it do is go through sklearn APIs and generate a coverage report. |
||||
session.install( | ||||
# We need to pin to specific versions of the `sphinxcontrib-*` packages | ||||
# which still support sphinx 4.x. | ||||
|
@@ -652,6 +658,8 @@ def prerelease(session: nox.sessions.Session, tests_path, extra_pytest_options=( | |||
if match.group(1) not in already_installed | ||||
] | ||||
|
||||
print(already_installed) | ||||
|
||||
# We use --no-deps to ensure that pre-release versions aren't overwritten | ||||
# by the version ranges in setup.py. | ||||
session.install(*deps) | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very concerned if we need to install
scikit-learn
just to build the docs. Please remove.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it's possible to remove this as we are calling publish_api_coverage.py, and one of the things it do is go through sklearn APIs and generate a coverage report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Thanks for clarifying.